import {int322bytesBE} from "./util.js"; import {blake2s} from "./blake.js"; const HASH_LENGTH=32; export function pbkdf2(password,salt,iterationCount,outLength){ // max BLAKE2 key length is 32B if(password.length>32){password=blake2s(password);} let blockCount=Math.ceil(outLength/HASH_LENGTH); let result=[]; for(let i=0;ib^ui[j]); } return u; }