unit-tests: Added ntru entropy, retransmission and ciphertext tests

This commit is contained in:
Andreas Steffen
2013-11-27 20:21:41 +01:00
parent 802eaf3789
commit 885e699b58
3 changed files with 69 additions and 0 deletions
+5
View File
@@ -193,6 +193,11 @@ METHOD(diffie_hellman_t, set_other_public_value, void,
if (this->priv_key.len)
{
/* initiator decrypting shared secret */
if (value.len == 0)
{
DBG1(DBG_LIB, "empty NTRU ciphertext");
return;
}
this->ciphertext = chunk_clone(value);
DBG3(DBG_LIB, "NTRU ciphertext: %B", &this->ciphertext);