Hello! I have ECC certificate:
/// Subject Public Key Info: Public Key Algorithm: id-ecPublicKey EC Public Key: pub: 04:e0:fd:c3:07:be:0e:db:35:9c:05:c8:d7:82:36: fd:0d:97:a7:30:8f:73:89:e3:9e:66:ae:9b:f7:cf: 8a:d1:e5:78:17:f8:94:57:ed:68:6d:85:fe:57:3f: 4c:73:eb:6d ASN1 OID: prime192v1 /// and signed hash, with smart card private key. Some commercial soft validate signature correctly. If I try use openssl: /// ERR_load_EC_strings(); X509 *x = NULL; int type = 0; EVP_PKEY *key = NULL; int len = 0; EC_KEY *ec = NULL; int ret = 0; char *er; d2i_X509(&x, (const unsigned char**)&pCert->pbCertEncoded, pCert->cbCertEncoded); key = X509_PUBKEY_get(x->cert_info->key); ec = EVP_PKEY_get1_EC_KEY(key); if(ec){ ret = ECDSA_verify(0,pbyHash,dwHashLen,pbSignature,dwSigLen,ec); er = ERR_error_string(ERR_get_error(),NULL); } /// I have error "error:0D07209B:asn1 encoding routines:func(114):reason(155)" :confused: Hash - SHA1, dwHashLen = 20, dwSigLen = 48. What is wrong? -- View this message in context: http://www.nabble.com/ECC-signature-validation-failure-tp14437540p14437540.html Sent from the OpenSSL - User mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]