Documentation ¶
Overview ¶
Package mceliece348864f implements the IND-CCA2 secure key encapsulation mechanism mceliece348864f as submitted to round 3 of the NIST PQC competition and described in
https://classic.mceliece.org/nist/mceliece-20201010.pdf
The following code is translated from the C reference implementation, and from a Rust implementation by Bernhard Berg, Lukas Prokop, Daniel Kales where direct translation from C is not applicable.
Index ¶
Constants ¶
View Source
const ( PublicKeySize = 261120 PrivateKeySize = 6492 CiphertextSize = 96 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func (*PrivateKey) Equal ¶
func (sk *PrivateKey) Equal(other kem.PrivateKey) bool
func (*PrivateKey) MarshalBinary ¶
func (sk *PrivateKey) MarshalBinary() ([]byte, error)
func (*PrivateKey) MarshalCompressedBinary ¶
func (sk *PrivateKey) MarshalCompressedBinary() []byte
MarshalCompressedBinary returns a 32-byte seed that can be used to regenerate the key pair when passed to DeriveKeyPair
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
}
func (*PublicKey) MarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.