From 96c0c86cd45b69c2ae15005f706c4d354d49018f Mon Sep 17 00:00:00 2001 From: Zhi Guan Date: Fri, 6 Apr 2018 17:07:12 +0800 Subject: [PATCH] Fixed aes prototype --- crypto/aes/aes_core.c | 2 +- include/openssl/aes.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/aes/aes_core.c b/crypto/aes/aes_core.c index d9f9ca815..bd5c7793b 100644 --- a/crypto/aes/aes_core.c +++ b/crypto/aes/aes_core.c @@ -629,7 +629,7 @@ static const u32 rcon[] = { /** * Expand the cipher key into the encryption key schedule. */ -int AES_set_encrypt_key(const unsigned char *userKey, int bits, +int AES_set_encrypt_key(const unsigned char *userKey, const int bits, AES_KEY *key) { diff --git a/include/openssl/aes.h b/include/openssl/aes.h index a2dff58f1..245c552ab 100644 --- a/include/openssl/aes.h +++ b/include/openssl/aes.h @@ -40,7 +40,7 @@ typedef struct aes_key_st AES_KEY; const char *AES_options(void); -int AES_set_encrypt_key(const unsigned char *userKey, const unsigned int bits, +int AES_set_encrypt_key(const unsigned char *userKey, const int bits, AES_KEY *key); int AES_set_decrypt_key(const unsigned char *userKey, const int bits, AES_KEY *key);