Documentation ¶
Overview ¶
Package xwing provides the xwing KEM using a KEM wrapper so that it obeys our KEM interfaces for Scheme, PrivateKey, PublicKey.
Index ¶
Constants ¶
View Source
const ( KeySeedSize = xwing.SeedSize CiphertextSize = xwing.CiphertextSize PublicKeySize = xwing.EncapsulationKeySize PrivateKeySize = PublicKeySize + xwing.DecapsulationKeySize )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func (*PrivateKey) Equal ¶
func (p *PrivateKey) Equal(privkey kem.PrivateKey) bool
func (*PrivateKey) MarshalBinary ¶
func (p *PrivateKey) MarshalBinary() ([]byte, error)
func (*PrivateKey) Public ¶
func (p *PrivateKey) Public() kem.PublicKey
func (*PrivateKey) Scheme ¶
func (p *PrivateKey) Scheme() kem.Scheme
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func (*PublicKey) MarshalBinary ¶
func (*PublicKey) MarshalText ¶
Click to show internal directories.
Click to hide internal directories.