Documentation ¶
Index ¶
- Constants
- type Ciphertext4591761
- type PrivateKey4591761
- type PublicKey4591761
- type Scheme4591761
- func (s Scheme4591761) CiphertextSize() int
- func (s Scheme4591761) Decapsulate(ss *kem.Secret256, priv *PrivateKey4591761, ctext []byte) error
- func (s Scheme4591761) DerivePublic(priv *PrivateKey4591761) (pub PublicKey4591761)
- func (s Scheme4591761) Encapsulate(ss *kem.Secret256, ctext []byte, pk *PublicKey4591761, seed *kem.Seed) error
- func (s Scheme4591761) Generate(rng io.Reader) (PublicKey4591761, PrivateKey4591761, error)
- func (s Scheme4591761) MarshalPrivate(dst []byte, priv *PrivateKey4591761)
- func (s Scheme4591761) MarshalPublic(dst []byte, x *PublicKey4591761)
- func (s Scheme4591761) ParsePrivate(x []byte) (PrivateKey4591761, error)
- func (s Scheme4591761) ParsePublic(x []byte) (PublicKey4591761, error)
- func (s Scheme4591761) PrivateKeySize() int
- func (s Scheme4591761) PublicKeySize() int
Constants ¶
View Source
const ( PrivateKey4591761Size = ntru.PrivateKeySize PublicKey4591761Size = ntru.PublicKeySize Ciphertext4591761Size = ntru.CiphertextSize )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ciphertext4591761 ¶
type Ciphertext4591761 = ntru.Ciphertext
type PrivateKey4591761 ¶
type PrivateKey4591761 = ntru.PrivateKey
type PublicKey4591761 ¶
type Scheme4591761 ¶
type Scheme4591761 struct{}
func New4591761 ¶
func New4591761() Scheme4591761
func (Scheme4591761) CiphertextSize ¶
func (s Scheme4591761) CiphertextSize() int
func (Scheme4591761) Decapsulate ¶
func (s Scheme4591761) Decapsulate(ss *kem.Secret256, priv *PrivateKey4591761, ctext []byte) error
func (Scheme4591761) DerivePublic ¶
func (s Scheme4591761) DerivePublic(priv *PrivateKey4591761) (pub PublicKey4591761)
func (Scheme4591761) Encapsulate ¶
func (s Scheme4591761) Encapsulate(ss *kem.Secret256, ctext []byte, pk *PublicKey4591761, seed *kem.Seed) error
func (Scheme4591761) Generate ¶
func (s Scheme4591761) Generate(rng io.Reader) (PublicKey4591761, PrivateKey4591761, error)
func (Scheme4591761) MarshalPrivate ¶
func (s Scheme4591761) MarshalPrivate(dst []byte, priv *PrivateKey4591761)
func (Scheme4591761) MarshalPublic ¶
func (s Scheme4591761) MarshalPublic(dst []byte, x *PublicKey4591761)
func (Scheme4591761) ParsePrivate ¶
func (s Scheme4591761) ParsePrivate(x []byte) (PrivateKey4591761, error)
func (Scheme4591761) ParsePublic ¶
func (s Scheme4591761) ParsePublic(x []byte) (PublicKey4591761, error)
func (Scheme4591761) PrivateKeySize ¶
func (s Scheme4591761) PrivateKeySize() int
func (Scheme4591761) PublicKeySize ¶
func (s Scheme4591761) PublicKeySize() int
Click to show internal directories.
Click to hide internal directories.