Documentation ¶
Index ¶
Constants ¶
View Source
const ( PublicKeySize = modQBytes CiphertextSize = modQBytes )
View Source
const ( N = 701 Q = 8192 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey struct { PublicKey // contains filtered or unexported fields }
func GenerateKey ¶
func GenerateKey(rand io.Reader) PrivateKey
func (*PrivateKey) Decap ¶
func (priv *PrivateKey) Decap(ciphertext []byte) (sharedKey []byte, ok bool)
func (*PrivateKey) Marshal ¶
func (priv *PrivateKey) Marshal() []byte
Click to show internal directories.
Click to hide internal directories.