OxL Reference

method sha3.sha3_256

The SHA-3-256 digest of input (32 bytes).

Example:

oxl✓ checked in CI
use std.crypto { sha3 }
use std.ser { bytesOf }

fn main() io {
  print("{sha3.sha3_256(bytesOf(&"abc")).len()}")
}
Output
32
pub(api) static fn sha3_256(input: bytes) -> bytes

Complexity. O(n) in the size of the input.

Since. 1.0.0-beta

Parameters

NameType
inputbytes

Returns

bytes

Effects

none declared (pure unless the body says otherwise)

Defined in: std/crypto/crypto.oxl:166

See also