Documentation
¶
Overview ¶
Package mldsa implements ML-DSA (Module-Lattice-based Digital Signature Algorithm) This is a stub implementation for development purposes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
PrivateKey represents an ML-DSA private key
func GenerateKey ¶
func GenerateKey(mode Mode, rand io.Reader) (*PrivateKey, error)
GenerateKey generates a new ML-DSA key pair
func PrivateKeyFromBytes ¶
func PrivateKeyFromBytes(mode Mode, data []byte) (*PrivateKey, error)
FromBytes deserializes a private key
func (*PrivateKey) Bytes ¶
func (priv *PrivateKey) Bytes() []byte
Bytes returns the serialized private key
func (*PrivateKey) Public ¶
func (priv *PrivateKey) Public() crypto.PublicKey
Public returns the public key
func (*PrivateKey) Sign ¶
func (priv *PrivateKey) Sign(rand io.Reader, message []byte, opts crypto.SignerOpts) ([]byte, error)
Sign signs a message with the private key
Click to show internal directories.
Click to hide internal directories.