Fix key generation in Firefox

Previously broken by daa0188e.
This commit is contained in:
Daniel Huigens 2018-06-27 15:19:46 +02:00
parent 9f0f00e087
commit 160b03451f

View File

@ -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;
};