hohl / MIHCrypto

OpenSSL wrapper for Objective-C [cryptography]
MIT License
340 stars 66 forks source link

how about OAEPWithSHA1AndMGF1Padding? #31

Open aetsyss opened 8 years ago

aetsyss commented 8 years ago

Hi! Is it possible to decode / encode data with OAEPWithSHA1AndMGF1Padding?

hohl commented 8 years ago

I'm sorry, I never tried/needed OAEPWithSHA1AndMGF1Padding. However MIHRSAPrivateKey and MIHRSAPublicKey have a property called rsaPadding (of type int) which just stores the padding flag for OpenSSL. You can try to set it to OAEPWithSHA1AndMGF1Padding and verify the output against some known implementation.