mirror of
https://github.com/bitwarden/browser
synced 2025-01-30 04:54:55 +01:00
hmac directly into array
This commit is contained in:
parent
4bce071498
commit
6e89b503f2
@ -609,8 +609,7 @@ export class CryptoService implements CryptoServiceAbstraction {
|
||||
t.set(previousT);
|
||||
t.set(info, previousT.length);
|
||||
t.set([i + 1], t.length - 1);
|
||||
const hmac = await this.cryptoFunctionService.hmac(t.buffer, prk, 'sha256');
|
||||
previousT = new Uint8Array(hmac);
|
||||
previousT = new Uint8Array(await this.cryptoFunctionService.hmac(t.buffer, prk, 'sha256'));
|
||||
okm.set(previousT, i * hashLen);
|
||||
}
|
||||
return okm;
|
||||
|
Loading…
x
Reference in New Issue
Block a user