law pbkdf2_hmac_sha1_rfc6070_1
import bend-osdev-crypto@0.1.0.0/LAWS.bend as LAWSimport 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
533# RFC 6070 test cases 1 and 2: PBKDF2-HMAC-SHA1, P = "password",
534# S = "salt", c = 1 and 2, dkLen = 20
535law pbkdf2_hmac_sha1_rfc6070_1:
536 {PbI.CrPbkdf2.hmac_sha1(B.Octets.of_string("password"), B.Octets.of_string("salt"), 1, 20n) == Done{B.Octets.of_list([12, 96, 200, 15, 150, 31, 14, 113, 243, 169, 181, 36, 175, 96, 18, 6, 47, 224, 55, 166])} : Result<&2, &2, Cr.CrError, B.Octets>}
Uses (7)
Used by (0)
No other definition uses this definition.