Adjust how error message is caught and displayed

This commit is contained in:
NI
2019-09-14 21:30:49 +08:00
parent 6b5c444f45
commit d9d0170d1a
8 changed files with 94 additions and 60 deletions

View File

@@ -33,7 +33,7 @@ export async function hmac512(secret, data) {
["sign", "verify"]
);
return crypto.subtle.sign("HMAC", key, data);
return crypto.subtle.sign(key.algorithm, key, data);
}
export const GCMNonceSize = 12;