summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/Makefile
diff options
context:
space:
mode:
authorbeck <>2024-12-13 00:03:57 +0000
committerbeck <>2024-12-13 00:03:57 +0000
commitc3bf83f7cf1ff567aae1e260425898b2af6bf4cc (patch)
treea9ff1c725db56dbeb46224505b3dd6fd05a21777 /src/lib/libcrypto/Makefile
parentf0b174e51673db27d4324ea95b112eb95ad05291 (diff)
downloadopenbsd-c3bf83f7cf1ff567aae1e260425898b2af6bf4cc.tar.gz
openbsd-c3bf83f7cf1ff567aae1e260425898b2af6bf4cc.tar.bz2
openbsd-c3bf83f7cf1ff567aae1e260425898b2af6bf4cc.zip
Add ML-KEM 768 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 bytesring.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/Makefile')
-rw-r--r--src/lib/libcrypto/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile
index c981a4189f..f43b09d176 100644
--- a/src/lib/libcrypto/Makefile
+++ b/src/lib/libcrypto/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.228 2024/11/16 10:38:10 tb Exp $ 1# $OpenBSD: Makefile,v 1.229 2024/12/13 00:03:57 beck Exp $
2 2
3LIB= crypto 3LIB= crypto
4LIBREBUILD=y 4LIBREBUILD=y
@@ -43,6 +43,7 @@ CFLAGS+= -I${LCRYPTO_SRC}/hidden
43CFLAGS+= -I${LCRYPTO_SRC}/hmac 43CFLAGS+= -I${LCRYPTO_SRC}/hmac
44CFLAGS+= -I${LCRYPTO_SRC}/kdf 44CFLAGS+= -I${LCRYPTO_SRC}/kdf
45CFLAGS+= -I${LCRYPTO_SRC}/lhash 45CFLAGS+= -I${LCRYPTO_SRC}/lhash
46CFLAGS+= -I${LCRYPTO_SRC}/mlkem
46CFLAGS+= -I${LCRYPTO_SRC}/modes 47CFLAGS+= -I${LCRYPTO_SRC}/modes
47CFLAGS+= -I${LCRYPTO_SRC}/ocsp 48CFLAGS+= -I${LCRYPTO_SRC}/ocsp
48CFLAGS+= -I${LCRYPTO_SRC}/pkcs12 49CFLAGS+= -I${LCRYPTO_SRC}/pkcs12
@@ -371,6 +372,9 @@ SRCS+= md4.c
371# md5/ 372# md5/
372SRCS+= md5.c 373SRCS+= md5.c
373 374
375# mlkem/
376SRCS+= mlkem768.c
377
374# modes/ 378# modes/
375SRCS+= cbc128.c 379SRCS+= cbc128.c
376SRCS+= ccm128.c 380SRCS+= ccm128.c
@@ -607,6 +611,7 @@ SRCS+= x_all.c
607 ${LCRYPTO_SRC}/lhash \ 611 ${LCRYPTO_SRC}/lhash \
608 ${LCRYPTO_SRC}/md4 \ 612 ${LCRYPTO_SRC}/md4 \
609 ${LCRYPTO_SRC}/md5 \ 613 ${LCRYPTO_SRC}/md5 \
614 ${LCRYPTO_SRC}/mlkem \
610 ${LCRYPTO_SRC}/modes \ 615 ${LCRYPTO_SRC}/modes \
611 ${LCRYPTO_SRC}/objects \ 616 ${LCRYPTO_SRC}/objects \
612 ${LCRYPTO_SRC}/ocsp \ 617 ${LCRYPTO_SRC}/ocsp \
@@ -639,6 +644,7 @@ HDRS=\
639 ${LCRYPTO_SRC}/bio/bio.h \ 644 ${LCRYPTO_SRC}/bio/bio.h \
640 ${LCRYPTO_SRC}/bn/bn.h \ 645 ${LCRYPTO_SRC}/bn/bn.h \
641 ${LCRYPTO_SRC}/buffer/buffer.h \ 646 ${LCRYPTO_SRC}/buffer/buffer.h \
647 ${LCRYPTO_SRC}/bytestring/bytestring.h \
642 ${LCRYPTO_SRC}/camellia/camellia.h \ 648 ${LCRYPTO_SRC}/camellia/camellia.h \
643 ${LCRYPTO_SRC}/cast/cast.h \ 649 ${LCRYPTO_SRC}/cast/cast.h \
644 ${LCRYPTO_SRC}/chacha/chacha.h \ 650 ${LCRYPTO_SRC}/chacha/chacha.h \
@@ -665,6 +671,7 @@ HDRS=\
665 ${LCRYPTO_SRC}/lhash/lhash.h \ 671 ${LCRYPTO_SRC}/lhash/lhash.h \
666 ${LCRYPTO_SRC}/md4/md4.h \ 672 ${LCRYPTO_SRC}/md4/md4.h \
667 ${LCRYPTO_SRC}/md5/md5.h \ 673 ${LCRYPTO_SRC}/md5/md5.h \
674 ${LCRYPTO_SRC}/mlkem/mlkem.h \
668 ${LCRYPTO_SRC}/modes/modes.h \ 675 ${LCRYPTO_SRC}/modes/modes.h \
669 ${LCRYPTO_SRC}/objects/objects.h \ 676 ${LCRYPTO_SRC}/objects/objects.h \
670 ${LCRYPTO_SRC}/ocsp/ocsp.h \ 677 ${LCRYPTO_SRC}/ocsp/ocsp.h \