I'm trying to implement Json Web Encryption aka
JWE
byJOSE
standards.
I have tried encryption with CommonCrypto lib available in iOS but it doesn't support OAEP-256 padding.
I can't use iOS Security framework since it's classes like SecKeyAlgorithm
and encryption modes like rsaEncryptionOAEPSHA256AESGCM
are available only iOS 10 onward. Else libraries like JOSESwift (https://github.com/airsidemobile/JOSESwift) would have helped.
I can't write my own encryption since I'm not a security expert (hence not recommended).
Other questions on SO & google searches don't help either: Objective c RSA with OAEP padding sha256 prior ios 10
What is the any possible way of doing it on iOS? Any help is appreciated.