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()}")
}Вывод
32
pub(api) static fn sha3_256(input: bytes) -> bytesСложность. O(n) in the size of the input.
С версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
input | bytes |
Возвращает
bytes
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/crypto/crypto.oxl:166