You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm having a little trouble converting my data to use in the RSA.signPSS function. I've worked out that the signature parameter should be a base64 string, but I can't work out how to encode the message parameter when trying to sign arbitrary Uint8Array data. I've tried Buffer.from(messageBytes).toString() and B64js.fromByteArray(messageBytes) but neither seem to work.
TL;DR Could someone help me with handling signing of Uint8Array messages?
The text was updated successfully, but these errors were encountered:
@jerson@elliotsayes Uint8Array type should be supported by default when signing - calculation of message offset in both signPSS and signPKCS1v15 is based on flatbuffer instance with createString method, which accepts and processes Uint8Array correctly - in my case just passing it to function returned correct signing to me, the only change which is required there to make it work properly is to just add Uint8Array type to message parameter.
Hi, I'm having a little trouble converting my data to use in the
RSA.signPSS
function. I've worked out that thesignature
parameter should be a base64 string, but I can't work out how to encode themessage
parameter when trying to sign arbitraryUint8Array
data. I've triedBuffer.from(messageBytes).toString()
andB64js.fromByteArray(messageBytes)
but neither seem to work.TL;DR Could someone help me with handling signing of
Uint8Array
messages?The text was updated successfully, but these errors were encountered: