Merge pull request #109 from dgarske/aesfixes

Minor fixes to resolve build issue with AES example
pull/149/head
Kaleb Himes 2019-04-30 13:03:51 -06:00 committed by GitHub
commit 1de1a23dc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ int GenerateKey(RNG* rng, byte* key, int size, byte* salt, int pad)
/* stretches key */
ret = wc_PBKDF2(key, key, strlen((const char*)key), salt, SALT_SIZE, 4096,
size, SHA256);
size, WC_SHA256);
if (ret != 0)
return -1030;
@ -182,7 +182,7 @@ int AesDecrypt(Aes* aes, byte* key, int size, FILE* inFile, FILE* outFile)
/* replicates old key if keys match */
ret = wc_PBKDF2(key, key, strlen((const char*)key), salt, SALT_SIZE, 4096,
size, SHA256);
size, WC_SHA256);
if (ret != 0)
return -1050;