subprocess

package
v0.0.0-...-928146c Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: GPL-2.0, BSD-3-Clause, ISC, + 2 more Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subprocess

type Subprocess struct {
	// contains filtered or unexported fields
}

Subprocess is a "middle" layer that interacts with a FIPS module via running a command and speaking a simple protocol over stdin/stdout.

func New

func New(path string) (*Subprocess, error)

New returns a new Subprocess middle layer that runs the given binary.

func NewWithIO

func NewWithIO(cmd *exec.Cmd, in io.WriteCloser, out io.ReadCloser) *Subprocess

NewWithIO returns a new Subprocess middle layer with the given ReadCloser and WriteCloser. The returned Subprocess will call Wait on the Cmd when closed.

func (*Subprocess) Close

func (m *Subprocess) Close()

Close signals the child process to exit and waits for it to complete.

func (*Subprocess) Config

func (m *Subprocess) Config() ([]byte, error)

Config returns a JSON blob that describes the supported primitives. The format of the blob is defined by ACVP. See http://usnistgov.github.io/ACVP/artifacts/draft-fussell-acvp-spec-00.html#rfc.section.11.15.2.1

func (*Subprocess) Process

func (m *Subprocess) Process(algorithm string, vectorSet []byte) ([]byte, error)

Process runs a set of test vectors and returns the result.

Jump to

Keyboard shortcuts

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