Documentation ¶
Index ¶
Constants ¶
View Source
const ( XMSS_HASH_PADDING_F = 0 XMSS_HASH_PADDING_H = 1 XMSS_HASH_PADDING_HASH = 2 XMSS_HASH_PADDING_PRF = 3 XMSS_HASH_PADDING_PRF_KEYGEN = 4 )
Variables ¶
Functions ¶
func GenerateKey ¶
GenerateKey Section 4.1.7. Algorithm 10: XMSS_keyGen - Generate an XMSS key pair Generates a XMSS key pair for a given parameter set. Format private: [(32bit) index || prvSeed || seed || pubSeed || root] Format public: [root || pubSeed]
Types ¶
type Params ¶
type Params struct {
// contains filtered or unexported fields
}
Params is a struct for parameters
type PrivateKey ¶
type PrivateKey struct {
D []byte
}
PrivateKey key
func (*PrivateKey) Equal ¶
func (priv *PrivateKey) Equal(x crypto.PrivateKey) bool
Equal reports whether priv and x have the same value.
func (*PrivateKey) PublicKey ¶
func (priv *PrivateKey) PublicKey(params *Params) *PublicKey
func (*PrivateKey) Sign ¶
func (priv *PrivateKey) Sign(params *Params, m []byte) ([]byte, error)
Sign Section 4.1.9. Algorithm 12: XMSS_sign - Generate an XMSS signature and update the XMSS private key Signs a message. Returns an array containing the signature followed by the message and an updated secret key.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.