Kitura / BlueRSA

RSA public/private key encryption, private key signing and public key verification in Swift using the Swift Package Manager. Works on iOS, macOS, and Linux (work in progress).
Apache License 2.0
132 stars 57 forks source link

what is error code -50? #62

Open MohsenMoghimi opened 4 years ago

MohsenMoghimi commented 4 years ago

getting this error when trying to decrypt.

Error Domain=NSOSStatusErrorDomain Code=-50 "RSA-WRAP too short input data" UserInfo={NSDescription=RSA-WRAP too short input data}

how should I resolve it????

aeslami commented 2 years ago

Having the same issue here

MohsenMoghimi commented 2 years ago

@aeslami I found it, for some reason public key and private key was not valid. if you test with a valid keys it will work.

JarnoRFB commented 1 year ago

@MohsenMoghimi what exactly do you mean by the key not being valid. I just got a private key from a third party and it works in a different application. In which way could this be invalid?