Documentation ¶
Index ¶
- Variables
- type PrivateKey
- type PublicKey
- type Scheme
- func (sch *Scheme) CiphertextSize() int
- func (sch *Scheme) Decapsulate(sk kem.PrivateKey, ct []byte) ([]byte, error)
- func (sch *Scheme) DeriveKeyPair(seed []byte) (kem.PublicKey, kem.PrivateKey)
- func (sch *Scheme) Encapsulate(pk kem.PublicKey) (ct, ss []byte, err error)
- func (sch *Scheme) EncapsulateDeterministically(publicKey kem.PublicKey, seed []byte) (ct, ss []byte, err error)
- func (sch *Scheme) GenerateKeyPair() (kem.PublicKey, kem.PrivateKey, error)
- func (sch *Scheme) Name() string
- func (sch *Scheme) PrivateKeySize() int
- func (sch *Scheme) PublicKeySize() int
- func (sch *Scheme) SeedSize() int
- func (sch *Scheme) SharedKeySize() int
- func (sch *Scheme) UnmarshalBinaryPrivateKey(buf []byte) (kem.PrivateKey, error)
- func (sch *Scheme) UnmarshalBinaryPublicKey(buf []byte) (kem.PublicKey, error)
- func (a *Scheme) UnmarshalTextPrivateKey(text []byte) (kem.PrivateKey, error)
- func (a *Scheme) UnmarshalTextPublicKey(text []byte) (kem.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUninitialized = errors.New("public or private key not initialized")
)
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
Private key of a hybrid KEM.
func (*PrivateKey) Equal ¶
func (sk *PrivateKey) Equal(other kem.PrivateKey) bool
func (*PrivateKey) MarshalBinary ¶
func (sk *PrivateKey) MarshalBinary() ([]byte, error)
func (*PrivateKey) Public ¶
func (sk *PrivateKey) Public() kem.PublicKey
func (*PrivateKey) Scheme ¶
func (sk *PrivateKey) Scheme() kem.Scheme
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
Public key of a hybrid KEM.
func (*PublicKey) MarshalBinary ¶
func (*PublicKey) MarshalText ¶ added in v0.0.3
type Scheme ¶
type Scheme struct {
// contains filtered or unexported fields
}
Scheme for a hybrid KEM.
func (*Scheme) CiphertextSize ¶
func (*Scheme) Decapsulate ¶
func (*Scheme) DeriveKeyPair ¶
func (*Scheme) Encapsulate ¶
func (*Scheme) EncapsulateDeterministically ¶
func (*Scheme) GenerateKeyPair ¶
func (*Scheme) PrivateKeySize ¶
func (*Scheme) PublicKeySize ¶
func (*Scheme) SharedKeySize ¶
func (*Scheme) UnmarshalBinaryPrivateKey ¶
func (sch *Scheme) UnmarshalBinaryPrivateKey(buf []byte) (kem.PrivateKey, error)
func (*Scheme) UnmarshalBinaryPublicKey ¶
func (*Scheme) UnmarshalTextPrivateKey ¶ added in v0.0.4
func (a *Scheme) UnmarshalTextPrivateKey(text []byte) (kem.PrivateKey, error)
Click to show internal directories.
Click to hide internal directories.