Skip to content

Commit

Permalink
Fixed aes prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
guanzhi committed Apr 6, 2018
1 parent a7cb7fa commit 96c0c86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crypto/aes/aes_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{

Expand Down
2 changes: 1 addition & 1 deletion include/openssl/aes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 96c0c86

Please sign in to comment.