vapor / open-crypto

🔑 Hashing (BCrypt, SHA2, HMAC), encryption (AES), public-key (RSA), and random data generation.
MIT License
134 stars 34 forks source link

add ECDSA support #73

Closed tanner0101 closed 4 years ago

phlebotinum commented 6 years ago

This would be greatly appreciated!

jonblatho commented 5 years ago

Any update on plans for this? I'd be happy to help where I can as a good number of projects (including some of mine) seem to await some Linux-supporting implementation of ECDSA mostly for interacting with Apple's services.

tanner0101 commented 5 years ago

There's a working implementation here that we could use for reference: https://github.com/vapor-community/apns/blob/master/Sources/APNS/Extensions/JWT%2BES256.swift

tanner0101 commented 5 years ago

Another implementation here: https://github.com/kylebrowning/swift-nio-http2-apns/blob/master/Sources/NIOAPNS/DataSigner.swift

dougreid72 commented 5 years ago

The new JWTKit 4.0 alpha now includes this functionality. This issue could be closed or attached to JWTKit. Unless you intend to add the functionality for Vapor 3 also.

0xTim commented 4 years ago

Closing as Swift Crypto is now used instead of this library