typelevel / bobcats

Typelevel's very own CryptoKitties!
Apache License 2.0
28 stars 9 forks source link

public/private key support? #38

Open bblfish opened 2 years ago

bblfish commented 2 years ago

Hi, I am implementing the HTTP Signature RFC from IETF over in this repo httpSig. I am extracting a lib there I wrote to work for Akka so that it can also work with http4s. The IETF spec lists the hashing and signing algorithms in section 3.3 that should be implemented.

For the moment I'd feel most comfortable if RSA worked, as I know that quite well :-) (see the code SignatureVerifier).

But I don't see any tests for public key signature nor any code Implementing it. Is that something you intend to support soon?

armanbilge commented 2 years ago

Thanks for writing up the detailed issue! I would definitely like to support RSA and other public/private key algorithms. I think we can add some traits maybe KeyGen[F], Signer[F], Verifier[F] 🤔 open to ideas here. A PR for this would be phenomenal!

bblfish commented 2 years ago

Working on this in https://github.com/typelevel/bobcats/pull/48