Skip to main content

Module types

Module types 

Source
Expand description

Public command, message-stream, pass-request, result, flag, and error encodings shared by the core, simulator, and FPGA shell.

Structs§

Ed25519Command
One top-level Ed25519 operation request.
Ed25519Result
Held top-level operation result and instrumentation counters.
MessageWord
One ready/valid message transfer containing up to eight bytes.
PassRequest
Request from the hash feeder for a contiguous message segment.

Constants§

ERROR_INVALID_OP
The command operation encoding is unsupported.
ERROR_MALFORMED_POINT
A compressed public key or signature point is not a canonical curve point.
ERROR_MISSING_KEY
Cached-key signing was requested before a key was cached.
ERROR_NONE
Successful operation.
ERROR_NON_CANONICAL_SCALAR
Signature scalar S is greater than or equal to the group order.
ERROR_SMALL_ORDER
A decoded public key or signature point has small order.
ERROR_STREAM_FRAMING
Message keep, last, or byte count disagrees with the requested pass.
ERROR_VERIFY_EQUATION
The strict Ed25519 verification equation does not hold.
FLAG_STRICT_VERIFY
Request strict Dalek-compatible point/scalar verification checks.
FLAG_USE_CACHED_KEY
Sign using the core’s retained expanded key instead of the command seed.
OP_CLEAR_KEY
Invalidate and zeroize the retained expanded signing key.
OP_DERIVE_PUBLIC_KEY
Derive a compressed public key from an RFC 8032 32-byte seed.
OP_SIGN
Sign a streamed message.
OP_VERIFY
Strictly verify a streamed message and signature.

Functions§

empty_command
Return a zero-initialized command suitable for an idle input.
empty_pass_request
Return a deasserted replay request.
empty_result
Return a deasserted, successful-code result with zero payload and counters.