Documentation
¶
Overview ¶
Package SEEC implments the Static-Ephemeral Entropy Combination (SEEC) scheme abstract interface and some predefined implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenKey ¶
GenKey is a SEEC instance constructor, that takes an entropy source and a security parameter (lambda).
type GenRand ¶
GenRand is a keyed SEEC instance, that takes a length and returns the random entropy (using a randomly sampled r).
func GenKeyPRFTupleHash ¶
GenKeyPRFTupleHash constructs a new SEEC-PRF instance, backed by the provided entropy source, using TupleHash as the PRF, and lambda as the security strength in bits. If `rng` is nil, `crypto/rand.Reader` will be used.
func GenKeyPRPAES ¶
GenKeyPRPAES constructs a new SEEC-PRP instance, backed by the provided entropy source, using AES as the PRP, and lambda as the security strength in bits. If `rng` is nil, `crypto/rand.Reader` will be used.
Warning: This uses EME (ECB-Mix-ECB) under the hood and requires that the output length of each GenRand call be a multiple of the AES block size.