mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-08 09:43:42 +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(previousT);
|
||||||
t.set(info, previousT.length);
|
t.set(info, previousT.length);
|
||||||
t.set([i + 1], t.length - 1);
|
t.set([i + 1], t.length - 1);
|
||||||
const hmac = await this.cryptoFunctionService.hmac(t.buffer, prk, 'sha256');
|
previousT = new Uint8Array(await this.cryptoFunctionService.hmac(t.buffer, prk, 'sha256'));
|
||||||
previousT = new Uint8Array(hmac);
|
|
||||||
okm.set(previousT, i * hashLen);
|
okm.set(previousT, i * hashLen);
|
||||||
}
|
}
|
||||||
return okm;
|
return okm;
|
||||||
|
Loading…
Reference in New Issue
Block a user