ideawu / Objective-C-RSA

Doing RSA encryption and decryption with Objective-C on iOS
http://www.ideawu.com/blog/post/132.html
Other
1.15k stars 280 forks source link

Decryption of encrypted data not working #26

Open mihaipuscasimprezzio opened 8 years ago

mihaipuscasimprezzio commented 8 years ago

Hi, I have an issue with this RSA implementation and any help would be appreciated. The first issue is that with rsa keys fetched from server(generated on server side), the RSA encryption fails on: ' if (memcmp(&c_key[idx], seqiod, 15)) return(nil);' but if i use they key from Usage section, i get some encrypted data.

What i am missing here?

ideawu commented 8 years ago

Hi, make sure the rsa key return from server is as this form: https://github.com/ideawu/Objective-C-RSA#usage