Skip to content

Commit

Permalink
adding double octet string encoding to ed25519 and ed448 as rfc8410
Browse files Browse the repository at this point in the history
Signed-off-by: feventura <[email protected]>
  • Loading branch information
feventura committed Aug 27, 2024
1 parent e6b21ad commit d05fe79
Show file tree
Hide file tree
Showing 8 changed files with 3,899 additions and 2,263 deletions.
167 changes: 110 additions & 57 deletions oqsprov/oqs_decode_der2key.c

Large diffs are not rendered by default.

820 changes: 443 additions & 377 deletions oqsprov/oqs_encode_key2any.c

Large diffs are not rendered by default.

734 changes: 387 additions & 347 deletions oqsprov/oqs_kmgmt.c

Large diffs are not rendered by default.

2,621 changes: 1,819 additions & 802 deletions oqsprov/oqs_prov.h

Large diffs are not rendered by default.

719 changes: 466 additions & 253 deletions oqsprov/oqsprov.c

Large diffs are not rendered by default.

762 changes: 488 additions & 274 deletions oqsprov/oqsprov_capabilities.c

Large diffs are not rendered by default.

261 changes: 147 additions & 114 deletions oqsprov/oqsprov_keys.c

Large diffs are not rendered by default.

78 changes: 39 additions & 39 deletions test/oqs_test_evp_pkey_params.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,52 +17,52 @@

/** \brief List of hybrid signature algorithms. */
const char *kHybridSignatureAlgorithms[] = {
"p256_dilithium2","rsa3072_dilithium2","p384_dilithium3","p521_dilithium5","p256_mldsa44","rsa3072_mldsa44","p384_mldsa65","p521_mldsa87","p256_falcon512","rsa3072_falcon512","p256_falconpadded512","rsa3072_falconpadded512","p521_falcon1024","p521_falconpadded1024","p256_sphincssha2128fsimple","rsa3072_sphincssha2128fsimple","p256_sphincssha2128ssimple","rsa3072_sphincssha2128ssimple","p384_sphincssha2192fsimple","p256_sphincsshake128fsimple","rsa3072_sphincsshake128fsimple","p256_mayo1","p256_mayo2","p384_mayo3","p521_mayo5",
NULL,
"p256_dilithium2",
"rsa3072_dilithium2",
"p384_dilithium3",
"p521_dilithium5",
"p256_mldsa44",
"rsa3072_mldsa44",
"p384_mldsa65",
"p521_mldsa87",
"p256_falcon512",
"rsa3072_falcon512",
"p256_falconpadded512",
"rsa3072_falconpadded512",
"p521_falcon1024",
"p521_falconpadded1024",
"p256_sphincssha2128fsimple",
"rsa3072_sphincssha2128fsimple",
"p256_sphincssha2128ssimple",
"rsa3072_sphincssha2128ssimple",
"p384_sphincssha2192fsimple",
"p256_sphincsshake128fsimple",
"rsa3072_sphincsshake128fsimple",
"p256_mayo1",
"p256_mayo2",
"p384_mayo3",
"p521_mayo5",
NULL,
};
///// OQS_TEMPLATE_FRAGMENT_HYBRID_SIG_ALGS_END

///// OQS_TEMPLATE_FRAGMENT_HYBRID_KEM_ALGS_START

/** \brief List of hybrid KEMs. */
const char *kHybridKEMAlgorithms[] = {
"p256_frodo640aes",
"x25519_frodo640aes",
"p256_frodo640shake",
"x25519_frodo640shake",
"p384_frodo976aes",
"x448_frodo976aes",
"p384_frodo976shake",
"x448_frodo976shake",
"p521_frodo1344aes",
"p521_frodo1344shake",
"p256_kyber512",
"x25519_kyber512",
"p384_kyber768",
"x448_kyber768",
"x25519_kyber768",
"p256_kyber768",
"p521_kyber1024",
"p256_mlkem512",
"x25519_mlkem512",
"p384_mlkem768",
"x448_mlkem768",
"x25519_mlkem768",
"p256_mlkem768",
"p521_mlkem1024",
"p384_mlkem1024",
"p256_bikel1",
"x25519_bikel1",
"p384_bikel3",
"x448_bikel3",
"p521_bikel5",
"p256_hqc128",
"x25519_hqc128",
"p384_hqc192",
"x448_hqc192",
"p521_hqc256",
NULL,
};///// OQS_TEMPLATE_FRAGMENT_HYBRID_KEM_ALGS_END
"p256_frodo640aes", "x25519_frodo640aes", "p256_frodo640shake",
"x25519_frodo640shake", "p384_frodo976aes", "x448_frodo976aes",
"p384_frodo976shake", "x448_frodo976shake", "p521_frodo1344aes",
"p521_frodo1344shake", "p256_kyber512", "x25519_kyber512",
"p384_kyber768", "x448_kyber768", "x25519_kyber768",
"p256_kyber768", "p521_kyber1024", "p256_mlkem512",
"x25519_mlkem512", "p384_mlkem768", "x448_mlkem768",
"x25519_mlkem768", "p256_mlkem768", "p521_mlkem1024",
"p384_mlkem1024", "p256_bikel1", "x25519_bikel1",
"p384_bikel3", "x448_bikel3", "p521_bikel5",
"p256_hqc128", "x25519_hqc128", "p384_hqc192",
"x448_hqc192", "p521_hqc256", NULL,
}; ///// OQS_TEMPLATE_FRAGMENT_HYBRID_KEM_ALGS_END

/** \brief Indicates if a string is in a given list of strings.
*
Expand Down

0 comments on commit d05fe79

Please sign in to comment.