Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm int
Algorithm represents post-quantum cryptographic algorithm types
const ( // AlgoClassical represents traditional ECDSA (secp256k1) AlgoClassical Algorithm = iota // ML-DSA (Module-Lattice-Based Digital Signature Algorithm) - FIPS 204 AlgoMLDSA44 // ML-DSA-44 (128-bit security) AlgoMLDSA65 // ML-DSA-65 (192-bit security) AlgoMLDSA87 // ML-DSA-87 (256-bit security) // ML-KEM (Module-Lattice-Based Key Encapsulation Mechanism) - FIPS 203 AlgoMLKEM512 // ML-KEM-512 (128-bit security) AlgoMLKEM768 // ML-KEM-768 (192-bit security) AlgoMLKEM1024 // ML-KEM-1024 (256-bit security) // SLH-DSA (Stateless Hash-Based Digital Signature Algorithm) - FIPS 205 AlgoSLHDSA128s // SLH-DSA-128s (128-bit security, small) AlgoSLHDSA192s // SLH-DSA-192s (192-bit security, small) AlgoSLHDSA256s // SLH-DSA-256s (256-bit security, small) // Hybrid modes combining classical and post-quantum AlgoHybridSecp256k1MLDSA // Hybrid: secp256k1 + ML-DSA AlgoHybridSecp256k1MLKEM // Hybrid: secp256k1 + ML-KEM )
type MLKEMKey ¶ added in v1.16.39
type MLKEMKey struct {
PublicKey MLKEMPublicKey
PrivateKey []byte
}
MLKEMKey represents an ML-KEM key pair
type MLKEMPublicKey ¶ added in v1.16.39
type MLKEMPublicKey struct {
// contains filtered or unexported fields
}
MLKEMPublicKey represents an ML-KEM public key
func (*MLKEMPublicKey) Bytes ¶ added in v1.16.39
func (pk *MLKEMPublicKey) Bytes() []byte
Bytes returns the public key bytes
type PQSigner ¶
type PQSigner struct {
// contains filtered or unexported fields
}
PQSigner provides post-quantum cryptographic signing capabilities
func NewPQSigner ¶
NewPQSigner creates a new post-quantum signer with the specified algorithm
func (*PQSigner) Decapsulate ¶
Decapsulate performs key decapsulation (KEM) if supported
Click to show internal directories.
Click to hide internal directories.