Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListSigners ¶
func ListSigners() []string
ListSigners returns the names of all registered signers
func RegisterSigner ¶
RegisterSigner registers a new signer implementation by name
func SetActiveSigner ¶
SetActiveSigner sets the active signer by name
Types ¶
type ECDSASigner ¶
type ECDSASigner struct{}
func NewECDSASigner ¶
func NewECDSASigner() *ECDSASigner
func (*ECDSASigner) GenerateKey ¶
func (e *ECDSASigner) GenerateKey() ([]byte, []byte)
func (*ECDSASigner) Name ¶
func (e *ECDSASigner) Name() string
type KeyPair ¶
KeyPair holds a Dilithium public and private key in hex encoding.
func GenerateDilithium2KeyPair ¶
GenerateDilithium2KeyPair generates a quantum-resistant Dilithium2 key pair.
type Signer ¶
type Signer interface {
GenerateKey() ([]byte, []byte) // private, public
Sign(privateKey []byte, message []byte) []byte
Verify(publicKey []byte, message []byte, signature []byte) bool
Name() string
}
Signer defines the interface for cryptographic signing algorithms Features (e.g., quantum_signing) should implement this interface and register their signer at runtime.
Click to show internal directories.
Click to hide internal directories.