Skip to content
Prev Previous commit
Next Next commit
crypto: fix IV buffer length
  • Loading branch information
Ian Carroll committed Jul 9, 2017
commit b7abe64573c2240ed1155318f23137343871d367
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3424,7 +3424,7 @@ void CipherBase::Init(const char* cipher_type,
}

unsigned char key[EVP_MAX_KEY_LENGTH];
unsigned char iv[EVP_MAX_KEY_LENGTH];
unsigned char iv[EVP_MAX_IV_LENGTH];

int key_len = EVP_BytesToKey(cipher_,
EVP_md5(),
Expand Down