Documentation ¶
Index ¶
- Variables
- func New(name string, first sign.Scheme, second sign.Scheme) sign.Scheme
- type PrivateKey
- func (p *PrivateKey) Equal(key crypto.PrivateKey) bool
- func (p *PrivateKey) MarshalBinary() ([]byte, error)
- func (p *PrivateKey) Public() crypto.PublicKey
- func (p *PrivateKey) Scheme() sign.Scheme
- func (p *PrivateKey) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error)
- func (p *PrivateKey) UnmarshalBinary(b []byte) error
- type PublicKey
- type Scheme
- func (s *Scheme) DeriveKey(seed []byte) (sign.PublicKey, sign.PrivateKey)
- func (s *Scheme) GenerateKey() (sign.PublicKey, sign.PrivateKey, error)
- func (s *Scheme) Name() string
- func (s *Scheme) PrivateKeySize() int
- func (s *Scheme) PublicKeySize() int
- func (s *Scheme) SeedSize() int
- func (s *Scheme) Sign(sk sign.PrivateKey, message []byte, opts *sign.SignatureOpts) []byte
- func (s *Scheme) SignatureSize() int
- func (s *Scheme) SupportsContext() bool
- func (s *Scheme) UnmarshalBinaryPrivateKey(b []byte) (sign.PrivateKey, error)
- func (s *Scheme) UnmarshalBinaryPublicKey(b []byte) (sign.PublicKey, error)
- func (s *Scheme) Verify(pk sign.PublicKey, message []byte, signature []byte, opts *sign.SignatureOpts) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var Ed25519Sphincs = New("Ed25519 Sphincs+", ed25519.Scheme(), sphincsplus.Scheme())
View Source
var Ed448Sphincs = New("Ed448-Sphincs+", ed448.Scheme(), sphincsplus.Scheme())
Functions ¶
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
PrivateKey is the private key in hybrid signature scheme.
func (*PrivateKey) Equal ¶
func (p *PrivateKey) Equal(key crypto.PrivateKey) bool
func (*PrivateKey) MarshalBinary ¶
func (p *PrivateKey) MarshalBinary() ([]byte, error)
func (*PrivateKey) Public ¶
func (p *PrivateKey) Public() crypto.PublicKey
func (*PrivateKey) Scheme ¶
func (p *PrivateKey) Scheme() sign.Scheme
func (*PrivateKey) Sign ¶
func (p *PrivateKey) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error)
func (*PrivateKey) UnmarshalBinary ¶ added in v0.0.11
func (p *PrivateKey) UnmarshalBinary(b []byte) error
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
PublicKey is the public key in hybrid signature scheme.
func (*PublicKey) MarshalBinary ¶
func (*PublicKey) MarshalText ¶ added in v0.0.10
type Scheme ¶
type Scheme struct {
// contains filtered or unexported fields
}
Scheme is for hybrid signature schemes.
func (*Scheme) GenerateKey ¶
func (*Scheme) PrivateKeySize ¶
func (*Scheme) PublicKeySize ¶
func (*Scheme) Sign ¶
func (s *Scheme) Sign(sk sign.PrivateKey, message []byte, opts *sign.SignatureOpts) []byte
func (*Scheme) SignatureSize ¶
func (*Scheme) SupportsContext ¶
func (*Scheme) UnmarshalBinaryPrivateKey ¶
func (s *Scheme) UnmarshalBinaryPrivateKey(b []byte) (sign.PrivateKey, error)
func (*Scheme) UnmarshalBinaryPublicKey ¶
Click to show internal directories.
Click to hide internal directories.