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

method hmac.sha384

HMAC-SHA-384 of input under key (48 bytes).

Example:

oxl✓ проверяется в CI
use std.crypto { hmac }
use std.ser { bytesOf }

fn main() io {
  print("{hmac.sha384(bytesOf(&"key"), bytesOf(&"message")).len()}")
}
Вывод
48
pub(api) static fn sha384(key: bytes, input: bytes) -> bytes

Сложность. O(n) in the size of the input.

С версии. 1.0.0-beta

Параметры

ИмяТип
keybytes
inputbytes

Возвращает

bytes

Эффекты

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

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

См. также