0

I've unsigned char array data in objective-c .

I need the following:

1- Encrypt, decrypt this data with "RSA/ECB/PKCS1Padding",

2- Encrypt, decrypt this data with "AES256bit" with byte array key only (not IV),

3- Sign data with "SHA256withRSA".

Note:

  • I've certificate with public, and private key to sign.

  • I read some reference but I can't reach to the right one with example.

(RSA implementations in Objective C, Objective C AES256 Decryption, AES256 NSString Encryption in iOS,)

  • If you boost your reference with example, I'll be grateful to you.

    Thank you in advance

Modification:

I need example to encrypt, decrypt data with "RSA/ECB/PKCS1Padding", where the certificate (or public and private keys ) are Base64.

Community
  • 1
  • 1
Yasser Ajaj
  • 119
  • 1
  • 10
  • post your code which you tried and let us know where you have problem in understading. – Pawan Rai Mar 08 '17 at 07:04
  • @M.Yasser Is it that you want to combine all of that into a single operation? You certainly can do hybrid encryption along with signing the ciphertext or something like that. Have you tried that? What are your results? – Artjom B. Mar 08 '17 at 19:23
  • @ArtjomB. no, I need separated operation for every one, In general I found out the AES256, So, I need the fisrt and third point "RSA/ECB/PKCS1Padding", and sign data, Thank you for your interest – Yasser Ajaj Mar 09 '17 at 07:28

0 Answers0