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 ¶
This section is empty.
Functions ¶
func GetNameByOid ¶
func GetOidByName ¶
Types ¶
type Params ¶
type Params struct {
// contains filtered or unexported fields
}
Params is a struct for parameters
func NewParamsWithName ¶
func NewParamsWithOid ¶
type PrivateKey ¶
PrivateKey key
func GenerateKey ¶
func GenerateKey(oid uint32) (*PrivateKey, error)
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]
func (*PrivateKey) Equal ¶
func (priv *PrivateKey) Equal(x crypto.PrivateKey) bool
Equal reports whether priv and x have the same value.
func (*PrivateKey) Public ¶
func (priv *PrivateKey) Public() crypto.PublicKey
Public returns the public key corresponding to priv.
Click to show internal directories.
Click to hide internal directories.