mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
hmac implementation for web crypto
This commit is contained in:
@@ -25,6 +25,10 @@ export class NodeCryptoFunctionService implements CryptoFunctionService {
|
||||
return hash.digest().buffer;
|
||||
}
|
||||
|
||||
async hmac(value: ArrayBuffer, key: ArrayBuffer, algorithm: 'sha1' | 'sha256' | 'sha512'): Promise<ArrayBuffer> {
|
||||
return new Uint8Array([]).buffer;
|
||||
}
|
||||
|
||||
private toNodeValue(value: string | ArrayBuffer): string | Buffer {
|
||||
let nodeValue: string | Buffer;
|
||||
if (typeof (value) === 'string') {
|
||||
|
||||
Reference in New Issue
Block a user