rsa - IPhone Decryption with private key -Data Encrypted in Java -


Can anyone help with decrypting with a private key, on the server side, they can use the OEP encryption method are using it. Decrypt using the private key, but the decrypted text is tap, I get the error code 9-989 as the decryption code result.

When you say" with private key ", I believe that for the simetric encryption, instead of a commoncryptor instead of asymmetric encryption, SecKeyDecrypt () are using it.

SecKeyDecrypt () does not support OAEP, it only supports PKCS1 v1.5 padding ( kSecPaddingPKCS1 ), it is technically ASN. 1 padding + PKCS1 can handle padding technically, but it is not generally relevant to decryption. When you passed the second-padding parameter, then you should take care of it

This error number is errSSLCrypto which is a normal "something went wrong in the crypto" message.

Comments