Minor fixes to resolve build issue with example when using --enable-opensslextra.
parent
1ba591f2dd
commit
ae7c43ce7e
|
@ -1,6 +1,6 @@
|
|||
How to use aes-file-encrypt.c
|
||||
|
||||
1) a. Compile wolfSSL with ./configure --enable-pwdbased --enable-dtls, run
|
||||
1) a. Compile wolfSSL with ./configure --enable-pwdbased, run
|
||||
'make', and then install by typing 'sudo make install'.
|
||||
b. In the crypto/aes directory run the Makefile by typing 'make'.
|
||||
2) Make a file to encode. Can be any file (ex. .txt .in .out .file etc.)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue