golden

package
v0.0.0-...-5b6a054 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package golden implements test vectors for OAE2 STREAM.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL