mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-24 14:35:51 +00:00
Minor [skip ci]
Co-authored-by: Daniel Huigens <d.huigens@protonmail.com>
This commit is contained in:
parent
b2570bb960
commit
2edb96e9e0
@ -259,8 +259,8 @@ async function nodeSign(curve, hashAlgo, message, privateKey) {
|
|||||||
const len = curve.payloadSize;
|
const len = curve.payloadSize;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
r: signature.slice(0, len),
|
r: signature.subarray(0, len),
|
||||||
s: signature.slice(len, len << 1)
|
s: signature.subarray(len, len << 1)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user