Documentation
¶
Overview ¶
Package signing holds the ML-DSA-65 signature keys of grants and tokens.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteNewKey ¶
WriteNewKey makes an ML-DSA-65 key, writes its PEM to out and its public key to publicPath. publicPath is a new file or a device such as /dev/fd/3 or /dev/stderr, so the public key reaches a log and the private key a secret store, and no key touches a disk. It refuses to write a private key to a terminal, and it never replaces a file.
Types ¶
type Private ¶
type Private struct {
// contains filtered or unexported fields
}
Private signs.
func ParsePrivate ¶
ParsePrivate reads a PKCS#8 PEM block of an ML-DSA-65 key. Any other text is refused.
type Public ¶
type Public struct {
// contains filtered or unexported fields
}
Public verifies. The zero value verifies nothing.
func ParsePublic ¶
ParsePublic reads the standard base64 of a raw ML-DSA-65 public key of 1952 bytes. Any other key is refused.