Documentation
¶
Overview ¶
Package wots implements the Winternitz One-time Signature (WOTS) Scheme.
There are two parameters:
-n which determines the security level (given in bytes) -w which allows a trade-off between signature size and computation costs.
The implementation only allows n = {32, 64} at the moment and uses SHA256 resp. SHA512 to provide a (classical) security level of 256-bit resp. 512-bit.
A secret key MUST only be used to sign ONE message.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyGen ¶
func KeyGen(masterkey []byte, params Wotsparams) (sk []byte, pk []byte)
KeyGen generates the secret key (sk) / public key (pk) pair for WOTS from a master key. The master key MUST be chosen uniformly at random.
Types ¶
type Wotsparams ¶
type Wotsparams struct {
// contains filtered or unexported fields
}
Wotsparams holds all parameters needed for computing signatures with WOTS.
Click to show internal directories.
Click to hide internal directories.