[#1722] Test with static key

This commit is contained in:
Alexandre Savard
2010-01-14 13:34:58 -05:00
parent 308683a703
commit 050b0b1c37

View File

@ -111,7 +111,7 @@ void AudioSrtpSession::initializeLocalMasterKey(void)
if((err = RAND_bytes(random_key, _localMasterKeyLength)) != 1) if((err = RAND_bytes(random_key, _localMasterKeyLength)) != 1)
_debug("Error occured while generating cryptographically strong pseudo-random key"); _debug("Error occured while generating cryptographically strong pseudo-random key");
memcpy(_localMasterKey, random_key, _localMasterKeyLength); memcpy(_localMasterKey, mk, _localMasterKeyLength);
return; return;
} }
@ -129,7 +129,7 @@ void AudioSrtpSession::initializeLocalMasterSalt(void)
if((err = RAND_bytes(random_key, _localMasterSaltLength)) != 1) if((err = RAND_bytes(random_key, _localMasterSaltLength)) != 1)
_debug("Error occured while generating cryptographically strong pseudo-random key"); _debug("Error occured while generating cryptographically strong pseudo-random key");
memcpy(_localMasterSalt, random_key, _localMasterSaltLength); memcpy(_localMasterSalt, ms, _localMasterSaltLength);
return; return;