Documentation ¶
Index ¶
- type FrodoKEM
- func (k *FrodoKEM) CipherTextLen() int
- func (k *FrodoKEM) Dencapsulate(sk []uint8, ct []uint8) (ssDec []uint8, err error)
- func (k *FrodoKEM) Encapsulate(pk []uint8) (ct []uint8, ssEnc []uint8, err error)
- func (k *FrodoKEM) Keygen() (pk []uint8, sk []uint8)
- func (k *FrodoKEM) Name() string
- func (k *FrodoKEM) OverrideRng(newRng func([]byte))
- func (k *FrodoKEM) PublicKeyLen() int
- func (k *FrodoKEM) SecretKeyLen() int
- func (k *FrodoKEM) SharedSecretLen() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FrodoKEM ¶
type FrodoKEM struct {
// contains filtered or unexported fields
}
func Frodo1344AES ¶
func Frodo1344AES() (f FrodoKEM)
Returns a new FrodoKEM 1344 AES variant (Generates 256 bits of secret)
func Frodo1344SHAKE ¶
func Frodo1344SHAKE() (f FrodoKEM)
Returns a new FrodoKEM 1344 SHAKE variant (Generates 256 bits of secret)
func Frodo640AES ¶
func Frodo640AES() (f FrodoKEM)
Returns a new FrodoKEM 640 AES variant (Generates 128 bits of secret)
func Frodo640SHAKE ¶
func Frodo640SHAKE() (f FrodoKEM)
Returns a new FrodoKEM 640 SHAKE variant (Generates 128 bits of secret)
func Frodo976AES ¶
func Frodo976AES() (f FrodoKEM)
Returns a new FrodoKEM 976 AES variant (Generates 192 bits of secret)
func Frodo976SHAKE ¶
func Frodo976SHAKE() (f FrodoKEM)
Returns a new FrodoKEM 976 SHAKE variant (Generates 192 bits of secret)
func (*FrodoKEM) CipherTextLen ¶
Returns the cipher-text length (in bytes) encapsulating the shared secret for this variant
func (*FrodoKEM) Dencapsulate ¶
Returns the shared secret by using the provided cipher-text and secret-key
func (*FrodoKEM) Encapsulate ¶
Generate a KEM returning the cipher-text and shared-secret
func (*FrodoKEM) OverrideRng ¶
Overrides the default random number generator (crypto/rand)
func (*FrodoKEM) PublicKeyLen ¶
Returns the public key length (in bytes) for this variant
func (*FrodoKEM) SecretKeyLen ¶
Returns the secret key length (in bytes) for this variant
func (*FrodoKEM) SharedSecretLen ¶
Returns the shared secret (in bytes) this variant generates