method sha3.sha3_256
The SHA-3-256 digest of input (32 bytes).
Example:
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) -> bytesComplexity. O(n) in the size of the input.
Since. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
input | bytes |
Returns
bytes
Effects
none declared (pure unless the body says otherwise)
Defined in: std/crypto/crypto.oxl:166