oa::cryptography
cryptography module in the OA Crypto public surface.
MdRust public API
Public Types
Public Functions
Function Documentation
Build a materialized Merkle tree.
Compute the canonical 32-byte SHAKE-256 digest.
Combine two Merkle nodes as SHAKE-256(left || right).
Apply the 24-round Keccak-f[1600] permutation in place.
Compute KMAC-256 according to NIST SP 800-185. Errors Returns an error when a bit length, encoded length, or allocation size overflows the platform or SP 800-185 u64 encoding.
Construct the inclusion proof for one leaf. Errors Returns an error for an empty tree or an out-of-range leaf index.
Compute the Merkle root, duplicating the final node of each odd level.
Produce SHAKE-128 output of exactly output.len() bytes.
Produce SHAKE-256 output of exactly output.len() bytes.
Verify one Merkle inclusion proof against root.