Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

about CommonCrypto on iphone SDK.. Can it generate RSA keys and encrypt/decrypt?

I'm trying to know if I can generate RSA keypair from CommonCrypto on iphone. Is there any good guide or doc on commonCrypto somewhere? Does anybody can tell me what is possible to do with CommonCrypto? Does anybody can tell what else I am suppose to use to create RSA keypair and encrypt something on iphone?

like image 344
Fabien Avatar asked Jun 08 '11 09:06

Fabien


1 Answers

The official Security Overview documentation is a good starting point to get a picture what's possible with iOS SDK.

Have a look at CryptoExercise, an Apple iOS example app:

This sample demonstrates the use of the two main Cryptographic API sets on the iPhone OS SDK. Asymmetric Key Encryption and random nonce generation is handled through the Security framework API set, whereas, Symmetric Key Encryption and Digest generation is handled by the CommonCrypto API set. The CryptoExercise sample brings both of these APIs together through a network service, discoverable via Bonjour, that performs a "dummy" cryptographic protocol between devices found on the same subnet.

like image 67
Nick Weaver Avatar answered Nov 02 '22 03:11

Nick Weaver