Is there any framework or functions for ECDSA in iOS?

Is there any framework or functions for ECDSA in iOS?
I can not find this information in documentation. Please, can you show me if it is possible to implement ECDSA using some native framework. I can implement it using OpenSSL but Apple has deprecated it. Therefore, I think Apple could provide some other ways. Also I need some other information if it is possible:

  • could I use different hash functions (for example SHA256)
  • do I have an ability to recover public key by data hash and signature
  • what curve types could I use


Thank you for reply.

Konstantin

Replies

Is there any framework or functions for ECDSA in iOS?

Are you trying to implement ECDSA as part of TLS? Or ECDSA in some other context?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thank you for respose.


> Are you trying to implement ECDSA as part of TLS?

No, I am not. I am trying to use ECDSA to sign and verify encrypted user messages, so it is not a part of TLS context

I believe you can do this using the new ‘unified’ crypto API. Take a look at all the new-in-iOS 10 stuff in

<Security/SecKey.h>
. I’ve used this stuff for RSA and it worked really well (see the CryptoCompatibility sample code) but I haven’t yet had a chance to try out the ECDSA stuff.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"