agens-no / EllipticCurveKeyPair

Sign, verify, encrypt and decrypt using the Secure Enclave
Other
709 stars 115 forks source link

Support more algorithms (no breaking changes) #13

Closed hfossli closed 7 years ago

swizzlr commented 7 years ago

I note the RSA algorithms in allAlgorithms - is that deliberate? Do they work with an EC key?

hfossli commented 7 years ago

No, you are right, they do not work. That array is a dump of all constants for SecKeyAlgorithm and then I iterate over them to find those that are supported.

hfossli commented 7 years ago

Check the function named supportedAlgorithms in Utils.swift

swizzlr commented 7 years ago

Sorry, totally lacking coffee. Seems fine!

wuf810 commented 7 years ago

Hey, I've just checked out the latest master and getting this error:

screen shot 2017-11-15 at 10 59 20
hfossli commented 7 years ago

Thanks for letting me know. Fixing this by merging the demo project changes.

hfossli commented 7 years ago

Fixed on master. There's some breaking changes on the API level. Will have to bump major version number on next release. I hope it is easier to have control of sha method now.

hfossli commented 7 years ago

https://github.com/agens-no/EllipticCurveKeyPair/commit/fd0fe13c7843fdb93e1478abe887657571da6473#diff-e0359a9449187adbaf1fc4ec81b8ba94