From e1119606080ff3b1fff0b28343646c7d96e0eea5 Mon Sep 17 00:00:00 2001 From: Stephan Mueller Date: Wed, 13 Dec 2023 08:29:42 +0100 Subject: [PATCH] fix test vector Signed-off-by: Stephan Mueller --- kem/tests/kyber_kem_x25519_tester.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kem/tests/kyber_kem_x25519_tester.c b/kem/tests/kyber_kem_x25519_tester.c index 75b60fec..4a1793e6 100644 --- a/kem/tests/kyber_kem_x25519_tester.c +++ b/kem/tests/kyber_kem_x25519_tester.c @@ -138,13 +138,7 @@ static const struct lc_kyber_x25519_pk kyber_pk_exp = { } }; static const struct lc_kyber_x25519_sk kyber_sk_exp = { - .pk.pk = { - 0x3c, 0xbc, 0x53, 0x8d, 0xa4, 0x54, 0x2c, 0xea, - 0x83, 0xa2, 0x19, 0x6a, 0x1d, 0x2c, 0x2f, 0x6e, - 0xdb, 0xce, 0xd0, 0x32, 0xb2, 0xf1, 0xc1, 0x13, - 0xd4, 0x90, 0x01, 0xc2, 0x81, 0x80, 0xa2, 0x93 - }, - .sk_x25519.sk = { + .sk.sk = { 0x3c, 0xbc, 0x53, 0x8d, 0xa4, 0x54, 0x2c, 0xea, 0x83, 0xa2, 0x19, 0x6a, 0x1d, 0x2c, 0x2f, 0x6e, 0xdb, 0xce, 0xd0, 0x32, 0xb2, 0xf1, 0xc1, 0x13, @@ -349,6 +343,12 @@ static const struct lc_kyber_x25519_sk kyber_sk_exp = { 0x10, 0x3c, 0xfb, 0x0a, 0xee, 0xfd, 0x2a, 0x68, 0x6e, 0x01, 0xfa, 0x4a, 0x58, 0xe8, 0xa3, 0x63, 0x9c, 0xa8, 0xa1, 0xe3, 0xf9, 0xae, 0x57, 0xe2, + }, + .sk_x25519.sk = { + 0x35, 0xb8, 0xcc, 0x87, 0x3c, 0x23, 0xdc, 0x62, + 0xb8, 0xd2, 0x60, 0x16, 0x9a, 0xfa, 0x2f, 0x75, + 0xab, 0x91, 0x6a, 0x58, 0xd9, 0x74, 0x91, 0x88, + 0x35, 0xd2, 0x5e, 0x6a, 0x43, 0x50, 0x85, 0xb2 } }; static const uint8_t ss_exp[] = {