Page: http://www.openssl.org/docs/crypto/ecdsa.html
(1)
int ret;
ECDSA_SIG *sig;
EC_KEY *eckey = EC_KEY_new();
if (eckey == NULL)
{
/* error */
}
key->group = EC_GROUP_new_by_nid(NID_secp192k1);
if (key->group == NULL)
{
/* error */
}
if (!EC_KEY_generate_key(eckey))
{
/* error */
}
"key" is undefined. This was probably supposed to be "eckey" (which does
have a "group" member).
(2)
ECDSA_verify() verifies that the signature in sig of size siglen is a valid
ECDSA signature of the hash value value dgst of size dgstlen using the
public key eckey. The parameter type is ignored.
"value value" should be "value".
Dustin
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [email protected]