Objective c RSA with OAEP padding sha256 prior ios 10
I am working on an encryption method in the iPhone with the RSA encryption method, so far i could achieve getting the encryption string with this method, the string is successfully decrypted by the server. SecKeyRef keyRef = [self addPublicKey:pubKey]; SecKeyAlgorithm algorithm = kSecKeyAlgorithmRSAEncryptionOAEPSHA256; if (!keyRef) { return nil; } BOOL canEncrypt = SecKeyIsAlgorithmSupported(keyRef, kSecKeyOperationTypeEncrypt, algorithm); if (canEncrypt) { CFErrorRef error = NULL; NSData *encryptedData = (NSData *)CFBridgingRelease( SecKeyCreateEncryptedData(keyRef, algorithm, (__bridge