Archived Forum Post

Index of archived forum posts

Question:

iOS RSA Encryption Using OAEP SHA512

Feb 25 '15 at 15:12

I am interested in encrypting using RSA with OAEP padding and SHA512 as the hash/mask algorithm. I'm pretty sure I ready OAEP is supported, but I didn't see anything about changing the internal hash/mask algorithm to SHA512. I assume it is using SHA1 by default.

See this question for more background:

http://stackoverflow.com/questions/28724696/ios-seckeyencrypt-oaep-sha512


Accepted Answer

Thanks, I'll add an OaepHash property that allows for it to be controlled. Internally it can already handle any of the supported hash algorithms, so it's just a matter of specifying it from the public API. I'll post a download link when it's ready..