unit-tests: Added ntru wrong ciphertext test

This commit is contained in:
Andreas Steffen
2013-11-27 20:21:41 +01:00
parent 885e699b58
commit 9013973cc8
2 changed files with 37 additions and 0 deletions
+1
View File
@@ -177,6 +177,7 @@ METHOD(diffie_hellman_t, get_shared_secret, status_t,
{
if (!this->computed || !this->shared_secret.len)
{
*secret = chunk_empty;
return FAILED;
}
*secret = chunk_clone(this->shared_secret);