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
i have got 2048 bit key and i want to sign a data.
After i sign a data with var sig = new KJUR.crypto.Signature({"alg": "SHA256withRSA"})
sig.init(keyObj)
sig.updateString(dataToSign)
var result = sig.sign()
return btoa(result)
after that when i send a request i have got error that my signature is 512 length but expected was 256
why i have this error?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i have got 2048 bit key and i want to sign a data.
After i sign a data with var sig = new KJUR.crypto.Signature({"alg": "SHA256withRSA"})
sig.init(keyObj)
sig.updateString(dataToSign)
var result = sig.sign()
return btoa(result)
after that when i send a request i have got error that my signature is 512 length but expected was 256
why i have this error?
Beta Was this translation helpful? Give feedback.
All reactions