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