Lines Matching full:hash
20 const {hash, iv} = await this.derivePkdf2(password, salt, 'SHA-256', this.iterations);
23 const key = await crypto.subtle.importKey('raw', hash, alg, false, ['encrypt']);
41 let hash, iv;
43 ({hash, iv} = this.deriveMd5(password, salt));
45 ({hash, iv} = await this.derivePkdf2(password, salt, 'SHA-256', this.iterations));
49 const key = await crypto.subtle.importKey('raw', hash, alg, false, ['decrypt']);
126 * @param {string} hash The Hash model, e.g. ["SHA-256" | "SHA-512"]
128 * @return {Promise<{hash: Uint8Array, iv: Uint8Array}>}
131 async derivePkdf2(strPassword, salt, hash, iterations) { argument
138 hash: hash, property
148 hash: buffer.slice(0, 32),
158 * @return {{iv: Uint8Array, hash: Uint8Array}}
169 hash: new Uint8Array([...D1, ...D2]),