I'm using the encryption method in the CryptoExercise sample app
(specifically, SecKeyWrapper.cs's method wrapSymmetricKey). I've
imported the public key onto the Keychain from a certificate. After
encryption, I convert everything to base-64 to send down to an
ASP.NET Web application. In that application, I get a "Bad Data"
CryptographicException.
Microsoft's RSA implementation uses either PKCS #1 1.5 or OAEP
padding, neither of which seem to be available for SecKeyEncrypt.
Do you know what specific API call is failing on the server? Are you
sure the web app is expecting the encrypted data to be just the raw
symmetric-key bytes, instead of something more structured (like some
kind of BER encoding containing more data like the algorithm used)?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden