law pbkdf2_hmac_sha256_rfc7914_1

bend-osdev-crypto@0.1.0.0 · LAWS.bend:541

import bend-osdev-crypto@0.1.0.0/LAWS.bend as LAWS
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-crypto@0.1.0.0/crypto.bend as Cr
import bend-osdev-crypto@0.1.0.0/inst_pbkdf2.bend as PbI

541# RFC 7914, section 11: PBKDF2-HMAC-SHA256, P = "passwd", S = "salt",
542# c = 1: the first 32 of its 64 bytes (a shorter output is a prefix of a
543# longer, pbkdf2_stream_prefix; all 64 bytes, two blocks, run past
544# --verdict's kernel fuel, and check.bend computes them)
545law pbkdf2_hmac_sha256_rfc7914_1:
546  {PbI.CrPbkdf2.hmac_sha256(B.Octets.of_string("passwd"), B.Octets.of_string("salt"), 1, 32n) == Done{B.Octets.of_list([85, 172, 4, 110, 86, 227, 8, 159, 236, 22, 145, 194, 37, 68, 182, 5, 249, 65, 133, 33, 109, 222, 4, 101, 230, 139, 157, 87, 194, 13, 172, 188])} : Result<&2, &2, Cr.CrError, B.Octets>}

Uses (7)

Used by (0)

No other definition uses this definition.