Skip to content

Commit

Permalink
moved pqdsa to fipsmodule
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemas committed Dec 4, 2024
1 parent 066c700 commit f9eff24
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 19 deletions.
6 changes: 3 additions & 3 deletions crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ if(ENABLE_DILITHIUM)
set(
DILITHIUM_SOURCES

dilithium/pqdsa.c
dilithium/p_pqdsa.c
dilithium/p_pqdsa_asn1.c
fipsmodule/pqdsa/pqdsa.c
fipsmodule/evp/p_pqdsa.c
evp_extra/p_pqdsa_asn1.c
dilithium/ml_dsa.c
)
endif()
Expand Down
2 changes: 1 addition & 1 deletion crypto/dilithium/p_pqdsa_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <vector>
#include "../fipsmodule/evp/internal.h"
#include "../internal.h"
#include "internal.h"
#include "../fipsmodule/pqdsa/internal.h"

#ifdef ENABLE_DILITHIUM

Expand Down
2 changes: 1 addition & 1 deletion crypto/evp_extra/evp_asn1.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
#include "../bytestring/internal.h"
#include "../internal.h"
#include "internal.h"
#include "../dilithium/internal.h"
#include "../fipsmodule/pqdsa/internal.h"

// parse_key_type takes the algorithm cbs sequence |cbs| and extracts the OID.
// The OID is then searched against ASN.1 methods for a method with that OID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
#include <openssl/err.h>
#include <openssl/mem.h>

#include "../evp_extra/internal.h"
#include "../fipsmodule/evp/internal.h"
#include "../internal.h"
#include "ml_dsa.h"
#include "internal.h"
#include "../fipsmodule/evp/internal.h"
#include "../crypto/fipsmodule/pqdsa/internal.h"
#include "../crypto/internal.h"
#include "../dilithium/ml_dsa.h"

static void pqdsa_free(EVP_PKEY *pkey) {
PQDSA_KEY_free(pkey->pkey.pqdsa_key);
Expand Down
2 changes: 1 addition & 1 deletion crypto/evp_extra/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

#ifdef ENABLE_DILITHIUM
#include "../dilithium/ml_dsa.h"
#include "../dilithium/internal.h"
#include "../fipsmodule/pqdsa/internal.h"
#endif


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
#include <openssl/err.h>
#include <openssl/mem.h>

#include "../crypto/dilithium/ml_dsa.h"
#include "../crypto/evp_extra/internal.h"
#include "../crypto/internal.h"
#include "../fipsmodule/evp/internal.h"
#include "../evp_extra/internal.h"
#include "ml_dsa.h"
#include "internal.h"
#include "../pqdsa/internal.h"

// PQDSA PKEY functions

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions crypto/dilithium/pqdsa.c → crypto/fipsmodule/pqdsa/pqdsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#include <openssl/mem.h>

#include <openssl/base.h>
#include "../evp_extra/internal.h"
#include "../fipsmodule/delocate.h"
#include "../../evp_extra/internal.h"
#include "../delocate.h"
#include "internal.h"
#include "ml_dsa.h"
#include "../crypto/dilithium/ml_dsa.h"

// ML-DSA OIDs as defined within:
// https://csrc.nist.gov/projects/computer-security-objects-register/algorithm-registration
Expand Down
2 changes: 1 addition & 1 deletion crypto/x509/algorithm.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#include <openssl/evp.h>
#include <openssl/obj.h>

#include "../dilithium/internal.h"
#include "../fipsmodule/pqdsa/internal.h"
#include "../fipsmodule/evp/internal.h"
#include "internal.h"

Expand Down
2 changes: 1 addition & 1 deletion crypto/x509/x509_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include "../evp_extra/internal.h"
#include "../internal.h"
#include "../test/test_util.h"
#include "../dilithium/internal.h"
#include "../fipsmodule/pqdsa/internal.h"

#if defined(OPENSSL_THREADS)
#include <thread>
Expand Down

0 comments on commit f9eff24

Please sign in to comment.