Home GnuPG

Add secp256k1 curve.
019e0e9e8c77Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
gniibeAuthored on Jan 12 2014, 1:54 PM
Parents
rC43376891c01f: Fix constant division for AMD64 assembly on Solaris/x86
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rC019e0e9e8c77: Add secp256k1 curve. (authored by NIIBE Yutaka <gniibe@fsij.org>).Jan 12 2014, 1:54 PM