Skip to content

Commit

Permalink
Generate oqs_headers
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-314159 authored Oct 10, 2024
1 parent d3ab1f9 commit 0599bb5
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.json
Original file line number Diff line number Diff line change
Expand Up @@ -1041,5 +1041,10 @@
"rust/bssl-crypto/src/*.rs",
"rust/bssl-crypto/src/*/*.rs"
]
},
"oqs": {
"hdrs": [
"oqs/include/oqs/*.h"
]
}
}
27 changes: 27 additions & 0 deletions gen/sources.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,33 @@ fuzz_sources = [
"fuzz/verify_name_match_verifynameinsubtree_fuzzer.cc",
]

oqs_headers = [
"oqs/include/oqs/aes_ops.h",
"oqs/include/oqs/common.h",
"oqs/include/oqs/kem.h",
"oqs/include/oqs/kem_bike.h",
"oqs/include/oqs/kem_classic_mceliece.h",
"oqs/include/oqs/kem_frodokem.h",
"oqs/include/oqs/kem_hqc.h",
"oqs/include/oqs/kem_kyber.h",
"oqs/include/oqs/kem_ml_kem.h",
"oqs/include/oqs/kem_ntruprime.h",
"oqs/include/oqs/oqs.h",
"oqs/include/oqs/oqsconfig.h",
"oqs/include/oqs/rand.h",
"oqs/include/oqs/sha2_ops.h",
"oqs/include/oqs/sha3_ops.h",
"oqs/include/oqs/sha3x4_ops.h",
"oqs/include/oqs/sig.h",
"oqs/include/oqs/sig_cross.h",
"oqs/include/oqs/sig_dilithium.h",
"oqs/include/oqs/sig_falcon.h",
"oqs/include/oqs/sig_mayo.h",
"oqs/include/oqs/sig_ml_dsa.h",
"oqs/include/oqs/sig_sphincs.h",
"oqs/include/oqs/sig_stfl.h",
]

pki_sources = [
"pki/cert_error_id.cc",
"pki/cert_error_params.cc",
Expand Down
29 changes: 29 additions & 0 deletions gen/sources.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,35 @@ set(
fuzz/verify_name_match_verifynameinsubtree_fuzzer.cc
)

set(
OQS_HEADERS

oqs/include/oqs/aes_ops.h
oqs/include/oqs/common.h
oqs/include/oqs/kem.h
oqs/include/oqs/kem_bike.h
oqs/include/oqs/kem_classic_mceliece.h
oqs/include/oqs/kem_frodokem.h
oqs/include/oqs/kem_hqc.h
oqs/include/oqs/kem_kyber.h
oqs/include/oqs/kem_ml_kem.h
oqs/include/oqs/kem_ntruprime.h
oqs/include/oqs/oqs.h
oqs/include/oqs/oqsconfig.h
oqs/include/oqs/rand.h
oqs/include/oqs/sha2_ops.h
oqs/include/oqs/sha3_ops.h
oqs/include/oqs/sha3x4_ops.h
oqs/include/oqs/sig.h
oqs/include/oqs/sig_cross.h
oqs/include/oqs/sig_dilithium.h
oqs/include/oqs/sig_falcon.h
oqs/include/oqs/sig_mayo.h
oqs/include/oqs/sig_ml_dsa.h
oqs/include/oqs/sig_sphincs.h
oqs/include/oqs/sig_stfl.h
)

set(
PKI_SOURCES

Expand Down
29 changes: 29 additions & 0 deletions gen/sources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ crypto_sources = [
"crypto/evp/p_ed25519.c",
"crypto/evp/p_ed25519_asn1.c",
"crypto/evp/p_hkdf.c",
"crypto/evp/p_oqs.c",
"crypto/evp/p_oqs_asn1.c",
"crypto/evp/p_rsa.c",
"crypto/evp/p_rsa_asn1.c",
"crypto/evp/p_x25519.c",
Expand Down Expand Up @@ -1089,6 +1091,33 @@ fuzz_sources = [
"fuzz/verify_name_match_verifynameinsubtree_fuzzer.cc",
]

oqs_headers = [
"oqs/include/oqs/aes_ops.h",
"oqs/include/oqs/common.h",
"oqs/include/oqs/kem.h",
"oqs/include/oqs/kem_bike.h",
"oqs/include/oqs/kem_classic_mceliece.h",
"oqs/include/oqs/kem_frodokem.h",
"oqs/include/oqs/kem_hqc.h",
"oqs/include/oqs/kem_kyber.h",
"oqs/include/oqs/kem_ml_kem.h",
"oqs/include/oqs/kem_ntruprime.h",
"oqs/include/oqs/oqs.h",
"oqs/include/oqs/oqsconfig.h",
"oqs/include/oqs/rand.h",
"oqs/include/oqs/sha2_ops.h",
"oqs/include/oqs/sha3_ops.h",
"oqs/include/oqs/sha3x4_ops.h",
"oqs/include/oqs/sig.h",
"oqs/include/oqs/sig_cross.h",
"oqs/include/oqs/sig_dilithium.h",
"oqs/include/oqs/sig_falcon.h",
"oqs/include/oqs/sig_mayo.h",
"oqs/include/oqs/sig_ml_dsa.h",
"oqs/include/oqs/sig_sphincs.h",
"oqs/include/oqs/sig_stfl.h",
]

pki_sources = [
"pki/cert_error_id.cc",
"pki/cert_error_params.cc",
Expand Down
28 changes: 28 additions & 0 deletions gen/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,34 @@
"fuzz/verify_name_match_verifynameinsubtree_fuzzer.cc"
]
},
"oqs": {
"hdrs": [
"oqs/include/oqs/aes_ops.h",
"oqs/include/oqs/common.h",
"oqs/include/oqs/kem.h",
"oqs/include/oqs/kem_bike.h",
"oqs/include/oqs/kem_classic_mceliece.h",
"oqs/include/oqs/kem_frodokem.h",
"oqs/include/oqs/kem_hqc.h",
"oqs/include/oqs/kem_kyber.h",
"oqs/include/oqs/kem_ml_kem.h",
"oqs/include/oqs/kem_ntruprime.h",
"oqs/include/oqs/oqs.h",
"oqs/include/oqs/oqsconfig.h",
"oqs/include/oqs/rand.h",
"oqs/include/oqs/sha2_ops.h",
"oqs/include/oqs/sha3_ops.h",
"oqs/include/oqs/sha3x4_ops.h",
"oqs/include/oqs/sig.h",
"oqs/include/oqs/sig_cross.h",
"oqs/include/oqs/sig_dilithium.h",
"oqs/include/oqs/sig_falcon.h",
"oqs/include/oqs/sig_mayo.h",
"oqs/include/oqs/sig_ml_dsa.h",
"oqs/include/oqs/sig_sphincs.h",
"oqs/include/oqs/sig_stfl.h"
]
},
"pki": {
"srcs": [
"pki/cert_error_id.cc",
Expand Down

0 comments on commit 0599bb5

Please sign in to comment.