oa::FnHash
FnHash namespace in the OA Crypto public surface.
NsC++ public headers
Public Functions
Function Documentation
Batch Keccak-f[1600] permutation. input/output [N, 200] bytes (25 lanes × u64 per state). out-of-place.
Parameters
inAconst Matrix &—
Returns
MatrixThe declared return value.
Merkle root by GPU SHAKE-256 pair reduction. input [N, 32] leaf hashes, N a power of two; output [1, 32] root. Bit-identical to oa::merkleRoot for power-of-two leaf counts. Use oa::merkleRoot (CPU) for arbitrary counts, and oa::verifyMerkleProof (CPU) for inclusion proofs.
Parameters
inAconst Matrix &—
Returns
MatrixThe declared return value.
SHAKE-128 batch XOF. input [N, msgLen] bytes; output [N, ceil(outLen/8)*8] bytes (16-byte default). Row i = SHAKE128(message i).
Parameters
inAconst Matrix &—
inOutputLengthoa::U32Default: 16
Returns
MatrixThe declared return value.
SHAKE-256 batch XOF. input [N, msgLen] bytes; output [N, ceil(outLen/8)*8] bytes (32-byte default). Row i = SHAKE256(message i).
Parameters
inAconst Matrix &—
inOutputLengthoa::U32Default: 32
Returns
MatrixThe declared return value.