Message ID | 1445326444-11019-7-git-send-email-clabbe.montjoie@gmail.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Herbert Xu |
Headers | show |
On Tue, Oct 20, 2015 at 09:34:02AM +0200, LABBE Corentin wrote: > All cryptoAPI setkey function set the key parameter as const u8 *. > This patch make the crypto_akcipher_setkey parameters like others. > > Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com> This patch no longer applies.
diff --git a/include/crypto/akcipher.h b/include/crypto/akcipher.h index 0c9fa68..ade053b 100644 --- a/include/crypto/akcipher.h +++ b/include/crypto/akcipher.h @@ -330,7 +330,8 @@ static inline int crypto_akcipher_verify(struct akcipher_request *req) * * Return: zero on success; error code in case of error */ -static inline int crypto_akcipher_setkey(struct crypto_akcipher *tfm, void *key, +static inline int crypto_akcipher_setkey(struct crypto_akcipher *tfm, + const u8 *key, unsigned int keylen) { struct akcipher_alg *alg = crypto_akcipher_alg(tfm);
All cryptoAPI setkey function set the key parameter as const u8 *. This patch make the crypto_akcipher_setkey parameters like others. Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com> --- include/crypto/akcipher.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)