Documentation ¶ Overview ¶ Package golden implements test vectors for OAE2 STREAM. Index ¶ func CSPRNG(seed []byte) (io.Reader, error) type Vector func NewVector(seed, plaintext []byte) (Vector, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CSPRNG ¶ func CSPRNG(seed []byte) (io.Reader, error) CSPRNG returns an AES-CTR based CSPRNG. Types ¶ type Vector ¶ type Vector struct { // Seed is the seed for the AES-CTR-based CSPRNG used to // generate the salt and nonce prefix. Seed []byte // Plaintext is the input. Plaintext []byte // Ciphertext is the output. Ciphertext []byte } Vector is a test vector. func NewVector ¶ func NewVector(seed, plaintext []byte) (Vector, error) NewVector creates a test vector with the provided plaintext. Source Files ¶ View all Source files golden.go Click to show internal directories. Click to hide internal directories.