ecc enc/dec offset init fix

This commit is contained in:
toddouska 2013-11-19 11:17:23 -08:00
parent 321d215e57
commit e92860bda7

View File

@ -3734,7 +3734,7 @@ int ecc_encrypt(ecc_key* privKey, ecc_key* pubKey, const byte* msg,
int keysLen;
int encKeySz;
int ivSz;
int offset; /* keys offset if doing msg exchange */
int offset = 0; /* keys offset if doing msg exchange */
byte* encKey;
byte* encIv;
byte* macKey;
@ -3855,7 +3855,7 @@ int ecc_decrypt(ecc_key* privKey, ecc_key* pubKey, const byte* msg,
int keysLen;
int encKeySz;
int ivSz;
int offset; /* in case using msg exchange */
int offset = 0; /* in case using msg exchange */
byte* encKey;
byte* encIv;
byte* macKey;