![]() |
Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
|
DEMO |
Dilithium-3 digital signature scheme (NIST FIPS 204 / ML-DSA-65). More...
#include <post_quantum.hpp>
Classes | |
| struct | SignKeyPair |
| Dilithium-3 signing keypair: public key for verification, secret key for signing. More... | |
Static Public Member Functions | |
| static expected< SignKeyPair > | generate_keypair () |
| Generate a Dilithium-3 signing keypair. | |
| static expected< std::vector< uint8_t > > | sign (const uint8_t *message, size_t msg_size, const uint8_t *secret_key, size_t sk_size) |
| Sign a message with the secret key. | |
| static expected< bool > | verify (const uint8_t *message, size_t msg_size, const uint8_t *signature, size_t sig_size, const uint8_t *public_key, size_t pk_size) |
| Verify a signature against a message and public key. | |
Static Public Attributes | |
| static constexpr size_t | PUBLIC_KEY_SIZE = 1952 |
| Dilithium-3 public key size (stub default). | |
| static constexpr size_t | SECRET_KEY_SIZE = 4000 |
| Dilithium-3 secret key size (stub default). | |
| static constexpr size_t | SIGNATURE_MAX_SIZE = 3293 |
| Maximum Dilithium-3 signature size (stub default). | |
Dilithium-3 digital signature scheme (NIST FIPS 204 / ML-DSA-65).
Used to sign Parquet file footers for tamper detection. Provides approximately 192-bit post-quantum security for digital signatures.
Two modes of operation:
SIGNET_ALLOW_STUB_PQ is explicitly defined.SIGNET_HAS_LIBOQS): Real NIST-standardized Dilithium-3.Definition at line 1004 of file post_quantum.hpp.
|
inlinestatic |
Generate a Dilithium-3 signing keypair.
Definition at line 1046 of file post_quantum.hpp.
|
inlinestatic |
Sign a message with the secret key.
| message | Pointer to the message bytes to sign. |
| msg_size | Message length in bytes. |
| secret_key | Pointer to the Dilithium-3 secret key. |
| sk_size | Must equal SECRET_KEY_SIZE. |
Definition at line 1132 of file post_quantum.hpp.
|
inlinestatic |
Verify a signature against a message and public key.
| message | Pointer to the original message bytes. |
| msg_size | Message length in bytes. |
| signature | Pointer to the signature bytes. |
| sig_size | Signature length (must be <= SIGNATURE_MAX_SIZE). |
| public_key | Pointer to the Dilithium-3 public key. |
| pk_size | Must equal PUBLIC_KEY_SIZE. |
Definition at line 1234 of file post_quantum.hpp.
|
staticconstexpr |
Dilithium-3 public key size (stub default).
Definition at line 1015 of file post_quantum.hpp.
|
staticconstexpr |
Dilithium-3 secret key size (stub default).
Definition at line 1016 of file post_quantum.hpp.
|
staticconstexpr |
Maximum Dilithium-3 signature size (stub default).
Definition at line 1017 of file post_quantum.hpp.