crypto icon indicating copy to clipboard operation
crypto copied to clipboard

Implementing EC Signature

Open sethladd opened this issue 10 years ago • 4 comments

Customer request.

sethladd avatar Oct 08 '15 21:10 sethladd

@sethladd Can you add more detail about these requests, like links to the relevant specifications?

nex3 avatar Jan 13 '16 01:01 nex3

@mpcomplete needed this a while ago, but we've since worked around it (I think by using some crypto package from pub?)

Here's a quick result: https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm

@mpcomplete any other specifics that would you have needed, or might still need? Thanks!

sethladd avatar Jan 13 '16 01:01 sethladd

Thanks! Similar links for the other requests would also be really helpful.

nex3 avatar Jan 13 '16 01:01 nex3

I'm using 2 third-party libraries for this: asn1lib and cipher. The things I need from each are:

  • all of asn1lib (for parsing DER-encoded ASN.1 objects generated by openssl).
  • from cipher: ECSignature, ECPublicKey, ECPrivateKey, Signer("SHA-256/ECDSA"), ECDomainParameters("prime256v1"), SecureRandom, and a SHA-256 hashing function.

Github links:

  • https://github.com/wstrange/asn1lib
  • https://github.com/izaera/cipher

mpcomplete avatar Jan 13 '16 19:01 mpcomplete