Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1251358
| From | LABBE Corentin <clabbe.montjoie@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 6/8] crypto: akcipher: the key parameter must be const u8 * |
| Date | 2015-10-20 09:40 +0200 |
| Message-ID | <qlzGy-5pm-35@gated-at.bofh.it> (permalink) |
| References | <qlzGx-5pm-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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(-)
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);
--
2.4.10
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2] crypto: add precalculated hash for zero message length LABBE Corentin <clabbe.montjoie@gmail.com> - 2015-10-20 09:40 +0200 [PATCH 6/8] crypto: akcipher: the key parameter must be const u8 * LABBE Corentin <clabbe.montjoie@gmail.com> - 2015-10-20 09:40 +0200 [PATCH 7/8] crypto: testmgr: Constify tested key/iv/plaintext/digest LABBE Corentin <clabbe.montjoie@gmail.com> - 2015-10-20 09:40 +0200
csiph-web