OxL Справочник OxL
РусскийEnglish

method sha3.sha3_256

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

Example:

oxl✓ проверяется в CI
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

Параметры

ИмяТип
inputbytes

Возвращает

bytes

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/crypto/crypto.oxl:166

См. также