JSONWebToken.swift icon indicating copy to clipboard operation
JSONWebToken.swift copied to clipboard

Support ECDSA signatures

Open kylef opened this issue 9 years ago • 10 comments

kylef avatar Apr 05 '15 03:04 kylef

Is there any possibility of making use of OpenSSL or LibreSSL for this?

ColtonProvias avatar Apr 07 '16 22:04 ColtonProvias

@ColtonProvias I wouldn't be against it. It would be nice to use a known security library under the hood. Providing we can 1) make installation simple, 2) support all Apple platforms, Linux, fBSD.

kylef avatar Dec 02 '16 21:12 kylef

@kylef I'm attempting to add support for ES256, using Apple's built in SecKeyRawSign (for Secure Enclave). Fair warning, the API doesn't work with MacOS, but works with all other platforms (iOS, tvOS and watchOS).

Would you like me to submit a PR?

benaubin avatar Jan 16 '17 00:01 benaubin

@penne12 Do you think you think we could support ES256 on iOS, tvOS and watchOS using SecKeyRawSign and fallback to the current behaviour by not supporting ES256 on other platforms, this will keep the current support on Linux and macOS. If so I'd love a pull request.

kylef avatar Jan 16 '17 12:01 kylef

@kylef I could add in a build directive, maybe?

Not sure, I'm fairly new to the language (and I haven't worked with compiled languages in a while, either)

benaubin avatar Jan 16 '17 17:01 benaubin

@penne12 yes that would work. Sounds great!

kylef avatar Jan 16 '17 17:01 kylef

@penne12 If you hit any problems, feel free to make a PR with your work in progress and I can give you pointers if you get stuck with anything.

kylef avatar Jan 16 '17 17:01 kylef

@kylef Sounds good.

benaubin avatar Jan 16 '17 17:01 benaubin

@kylef, @benaubin any progress on this? ES256 is what I need to use.

darer avatar May 02 '17 09:05 darer

@benaubin Just a re-request for ES256 support, if you've got it working. Thanks!

bengottlieb avatar Jul 05 '17 23:07 bengottlieb