mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-11-24 06:25:50 +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;
|
||||
|
||||
return {
|
||||
r: signature.slice(0, len),
|
||||
s: signature.slice(len, len << 1)
|
||||
r: signature.subarray(0, len),
|
||||
s: signature.subarray(len, len << 1)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user