Add secp256k1 curve.
authorNIIBE Yutaka <gniibe@fsij.org>
Sun, 12 Jan 2014 12:54:57 +0000 (21:54 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Sun, 12 Jan 2014 12:54:57 +0000 (21:54 +0900)
commit019e0e9e8c77a2edf283745e05e9301673ea6a0a
tree42a21bd135bdc25755fd536f16519b2af690b31a
parent43376891c01f4aff1fbfb23beafebb5adfd0868c
Add secp256k1 curve.

* cipher/ecc-curves.c (curve_aliases): Add secp256k1 and its OID.
(domain_parms): Add secp256k1's domain paramerter.

* tests/basic.c (check_pubkey): Add a key of secp256k1.

* tests/curves.c (N_CURVES): Updated.

--

The key in check_pubkey is from "Test vector 1" of following page.
    https://en.bitcoin.it/wiki/BIP_0032_TestVectors

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
cipher/ecc-curves.c
tests/basic.c
tests/curves.c