summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/hidden/openssl
diff options
context:
space:
mode:
authorbeck <>2024-12-13 00:17:18 +0000
committerbeck <>2024-12-13 00:17:18 +0000
commitee07c6bc022a26df0601ff3acffd488777cb32fa (patch)
tree96342312b2f330ea5c3d02d4c28c8c50ece4ee37 /src/lib/libcrypto/hidden/openssl
parent6d94ba19b3aad3bfdeca665a771586c1a68a3f66 (diff)
downloadopenbsd-ee07c6bc022a26df0601ff3acffd488777cb32fa.tar.gz
openbsd-ee07c6bc022a26df0601ff3acffd488777cb32fa.tar.bz2
openbsd-ee07c6bc022a26df0601ff3acffd488777cb32fa.zip
Add ML-KEM 1024 from BoringSSL
Changes include conversion from C++, basic KNF, then adaptation to use our sha3 functions for sha3 and shake instead of the BorinSSL version. This Adds units tests to run against BoringSSL and NIST test vectors. The future public API is the same as Boring's - but is not yet exposed pending making bytestring.h public (which will happen separately) and a minor bump Currently this will just ensure we build and run regress. ok tb@ to get it into the tree and massage from there.
Diffstat (limited to 'src/lib/libcrypto/hidden/openssl')
-rw-r--r--src/lib/libcrypto/hidden/openssl/mlkem.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libcrypto/hidden/openssl/mlkem.h b/src/lib/libcrypto/hidden/openssl/mlkem.h
index 01ac28cffd..103144d1a1 100644
--- a/src/lib/libcrypto/hidden/openssl/mlkem.h
+++ b/src/lib/libcrypto/hidden/openssl/mlkem.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: mlkem.h,v 1.1 2024/12/13 00:03:57 beck Exp $ */ 1/* $OpenBSD: mlkem.h,v 1.2 2024/12/13 00:17:17 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2024 Bob Beck <beck@obtuse.com> 3 * Copyright (c) 2024 Bob Beck <beck@obtuse.com>
4 * 4 *
@@ -35,6 +35,14 @@ LCRYPTO_USED(MLKEM768_marshal_public_key);
35LCRYPTO_USED(MLKEM768_parse_public_key); 35LCRYPTO_USED(MLKEM768_parse_public_key);
36LCRYPTO_USED(MLKEM768_private_key_from_seed); 36LCRYPTO_USED(MLKEM768_private_key_from_seed);
37LCRYPTO_USED(MLKEM768_parse_private_key); 37LCRYPTO_USED(MLKEM768_parse_private_key);
38LCRYPTO_USED(MLKEM1024_generate_key);
39LCRYPTO_USED(MLKEM1024_public_from_private);
40LCRYPTO_USED(MLKEM1024_encap);
41LCRYPTO_USED(MLKEM1024_decap);
42LCRYPTO_USED(MLKEM1024_marshal_public_key);
43LCRYPTO_USED(MLKEM1024_parse_public_key);
44LCRYPTO_USED(MLKEM1024_private_key_from_seed);
45LCRYPTO_USED(MLKEM1024_parse_private_key);
38#endif 46#endif
39 47
40#endif /* _LIBCRYPTO_MLKEM_H */ 48#endif /* _LIBCRYPTO_MLKEM_H */