When doing ECDSA sign/verify test:
I generated 100 private & public key pairs, and 100 hash values.
Then sign 100 times with the same private & public key pair and hash value, to generate 100 signatures.
Totally 10000 signatures is generated.
Then verify the signature with the corresponding public key and hash value, 50 times out of 10000 verification will fail.
Can you help confirm if libtomcrypt problem?
the ECC curve is y^2 = x^3 - 3x + b, ECC length 384bits,
the math lib is gmp on cygwin.
If you need the test code, I can upload it.
The curve parameters is as follow:
{
size: 48,
name: "ECC-384",
prime: "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF",
B: "B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF",
order of the curve: "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973",
Gx: "AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7",
Gy: "3617DE4A96262C6F5D9E98BF9292DC29F8F41DBD289A147CE9DA3113B5F0B8C00A60B1CE1D7E819D7A431D7C90EA0E5F",
},