* tests/t-kem.c (test_kem_sntrup761, test_kem_mceliece6688128f) (test_kem_mlkem512, test_kem_mlkem768, test_kem_mlkem1024, test_kem_raw_x25519) (test_kem_dhkem_x25519): Add 'Checking <algo>' info print. --
Signed-off-by: Jussi Kivilinna <[email protected]> --- tests/t-kem.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/t-kem.c b/tests/t-kem.c index dee879a0..4e215b0f 100644 --- a/tests/t-kem.c +++ b/tests/t-kem.c @@ -43,6 +43,8 @@ test_kem_sntrup761 (int testno) uint8_t key1[GCRY_KEM_SNTRUP761_SHARED_LEN]; uint8_t key2[GCRY_KEM_SNTRUP761_SHARED_LEN]; + info (" Checking SNTRUP761.\n"); + err = gcry_kem_genkey (GCRY_KEM_SNTRUP761, pubkey, GCRY_KEM_SNTRUP761_PUBKEY_LEN, seckey, GCRY_KEM_SNTRUP761_SECKEY_LEN, @@ -102,6 +104,8 @@ test_kem_mceliece6688128f (int testno) uint8_t key1[GCRY_KEM_CM6688128F_SHARED_LEN]; uint8_t key2[GCRY_KEM_CM6688128F_SHARED_LEN]; + info (" Checking CM6688128F.\n"); + err = gcry_kem_genkey (GCRY_KEM_CM6688128F, pubkey, GCRY_KEM_CM6688128F_PUBKEY_LEN, seckey, GCRY_KEM_CM6688128F_SECKEY_LEN, @@ -162,6 +166,8 @@ test_kem_mlkem512 (int testno) uint8_t key1[GCRY_KEM_MLKEM512_SHARED_LEN]; uint8_t key2[GCRY_KEM_MLKEM512_SHARED_LEN]; + info (" Checking MLKEM512.\n"); + err = gcry_kem_genkey (GCRY_KEM_MLKEM512, pubkey, GCRY_KEM_MLKEM512_PUBKEY_LEN, seckey, GCRY_KEM_MLKEM512_SECKEY_LEN, @@ -220,6 +226,8 @@ test_kem_mlkem768 (int testno) uint8_t key1[GCRY_KEM_MLKEM768_SHARED_LEN]; uint8_t key2[GCRY_KEM_MLKEM768_SHARED_LEN]; + info (" Checking MLKEM768.\n"); + err = gcry_kem_genkey (GCRY_KEM_MLKEM768, pubkey, GCRY_KEM_MLKEM768_PUBKEY_LEN, seckey, GCRY_KEM_MLKEM768_SECKEY_LEN, @@ -278,6 +286,8 @@ test_kem_mlkem1024 (int testno) uint8_t key1[GCRY_KEM_MLKEM1024_SHARED_LEN]; uint8_t key2[GCRY_KEM_MLKEM1024_SHARED_LEN]; + info (" Checking MLKEM1024.\n"); + err = gcry_kem_genkey (GCRY_KEM_MLKEM1024, pubkey, GCRY_KEM_MLKEM1024_PUBKEY_LEN, seckey, GCRY_KEM_MLKEM1024_SECKEY_LEN, @@ -338,6 +348,8 @@ test_kem_raw_x25519 (int testno) uint8_t key1[GCRY_KEM_RAW_X25519_SHARED_LEN]; uint8_t key2[GCRY_KEM_RAW_X25519_SHARED_LEN]; + info (" Checking X25519.\n"); + err = gcry_kem_genkey (GCRY_KEM_RAW_X25519, pubkey, GCRY_KEM_ECC_X25519_PUBKEY_LEN, seckey, GCRY_KEM_ECC_X25519_SECKEY_LEN, @@ -406,6 +418,8 @@ test_kem_dhkem_x25519 (int testno) uint8_t key1[GCRY_KEM_DHKEM25519_SHARED_LEN]; uint8_t key2[GCRY_KEM_DHKEM25519_SHARED_LEN]; + info (" Checking DHKEM25519.\n"); + err = gcry_kem_genkey (GCRY_KEM_DHKEM25519, pubkey, GCRY_KEM_DHKEM25519_PUBKEY_LEN, seckey, GCRY_KEM_DHKEM25519_SECKEY_LEN, -- 2.48.1 _______________________________________________ Gcrypt-devel mailing list [email protected] https://lists.gnupg.org/mailman/listinfo/gcrypt-devel
