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);