Fix key generation in Firefox
Previously broken by daa0188e.
This commit is contained in:
parent
9f0f00e087
commit
160b03451f
|
@ -197,8 +197,9 @@ Signature.prototype.sign = async function (key, data) {
|
|||
|
||||
this.signedHashValue = stream.slice(stream.clone(hash), 0, 2);
|
||||
|
||||
const params = key.params;
|
||||
this.signature = stream.fromAsync(async () => crypto.signature.sign(
|
||||
publicKeyAlgorithm, hashAlgorithm, key.params, toHash, await stream.readToEnd(hash)
|
||||
publicKeyAlgorithm, hashAlgorithm, params, toHash, await stream.readToEnd(hash)
|
||||
));
|
||||
return true;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user