Fixed aes prototype

This commit is contained in:
Zhi Guan
2018-04-06 17:07:12 +08:00
parent a7cb7fa004
commit 96c0c86cd4
2 changed files with 2 additions and 2 deletions

View File

@@ -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)
{

View File

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