def pbkdf2.words

bend-kit-crypto@0.2.2.2 · crypto.bend:35

import bend-kit-crypto@0.2.2.2/crypto.bend as Crypto
import Base

35# PBKDF2 (RFC 8018 §5.2) with HMAC over alg: n octets from pass and salt. Fails with EINVAL when iters or n is 0.
36def pbkdf2.words(alg: String, plen: U32, pass: Array<U32>, slen: U32, salt: Array<U32>, iters: U32, n: U32) ->
37  IO(Result<&1, &1, U32 & String, U32 & Array<U32>>):
38  import "./effs/crypto.c"
39  import "./effs/crypto.js"

Uses (6)

Used by (1)