diff --git a/crypto/newhope/newhope_test.c b/crypto/newhope/newhope_test.c index cb0fcca0..ff6aa83a 100644 --- a/crypto/newhope/newhope_test.c +++ b/crypto/newhope/newhope_test.c @@ -77,8 +77,8 @@ static int test_invalid_sk_a() { return 0; } - /* Overwrite the secret key */ - newhope_poly_getnoise(sk); + /* Corrupt the secret key */ + NEWHOPE_keygen(servermsg /* not used below */, sk); /* Alice uses Bob's response to get her secret key */ if (!NEWHOPE_server_compute_key(server_key, sk, clientmsg,