/openssl/crypto/ec/ |
H A D | ecdsa_sign.c | 20 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dlen, EC_KEY *eckey) in ECDSA_do_sign() argument 22 return ECDSA_do_sign_ex(dgst, dlen, NULL, NULL, eckey); in ECDSA_do_sign() 25 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dlen, in ECDSA_do_sign_ex() argument 30 return eckey->meth->sign_sig(dgst, dlen, kinv, rp, eckey); in ECDSA_do_sign_ex() 35 int ECDSA_sign(int type, const unsigned char *dgst, int dlen, unsigned char in ECDSA_sign() argument 38 return ECDSA_sign_ex(type, dgst, dlen, sig, siglen, NULL, NULL, eckey); in ECDSA_sign() 41 int ECDSA_sign_ex(int type, const unsigned char *dgst, int dlen, in ECDSA_sign_ex() argument 46 return eckey->meth->sign(type, dgst, dlen, sig, siglen, kinv, r, eckey); in ECDSA_sign_ex()
|
H A D | ecdsa_ossl.c | 35 const unsigned char *dgst, int dlen, 59 return eckey->group->meth->ecdsa_sign_sig(dgst, dgst_len, in ossl_ecdsa_sign_sig() 63 int ossl_ecdsa_verify_sig(const unsigned char *dgst, int dgst_len, in ossl_ecdsa_verify_sig() argument 85 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); in ossl_ecdsa_sign() 115 if (!ecdsa_sign_setup(eckey, NULL, &kinv, &r, dgst, dlen, in ossl_ecdsa_deterministic_sign() 119 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); in ossl_ecdsa_deterministic_sign() 134 const unsigned char *dgst, int dlen, in ecdsa_sign_setup() argument 199 if (dgst != NULL) { in ecdsa_sign_setup() 330 if (!BN_bin2bn(dgst, dgst_len, m)) { in ossl_ecdsa_simple_sign_sig() 437 ret = ECDSA_do_verify(dgst, dgst_len, s, eckey); in ossl_ecdsa_verify() [all …]
|
H A D | ecdsa_vrf.c | 26 int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, in ECDSA_do_verify() argument 30 return eckey->meth->verify_sig(dgst, dgst_len, sig, eckey); in ECDSA_do_verify() 41 int ECDSA_verify(int type, const unsigned char *dgst, int dgst_len, in ECDSA_verify() argument 45 return eckey->meth->verify(type, dgst, dgst_len, sigbuf, sig_len, in ECDSA_verify()
|
H A D | ec_kmeth.c | 229 int (*sign)(int type, const unsigned char *dgst, in EC_KEY_METHOD_set_sign() argument 236 ECDSA_SIG *(*sign_sig)(const unsigned char *dgst, in EC_KEY_METHOD_set_sign() argument 249 char *dgst, int dgst_len, in EC_KEY_METHOD_set_verify() argument 252 int (*verify_sig)(const unsigned char *dgst, in EC_KEY_METHOD_set_verify() argument 304 int (**psign)(int type, const unsigned char *dgst, in EC_KEY_METHOD_get_sign() argument 311 ECDSA_SIG *(**psign_sig)(const unsigned char *dgst, in EC_KEY_METHOD_get_sign() argument 327 char *dgst, int dgst_len, in EC_KEY_METHOD_get_verify() argument 330 int (**pverify_sig)(const unsigned char *dgst, in EC_KEY_METHOD_get_verify() argument
|
H A D | ecp_s390x_nistp.c | 125 static ECDSA_SIG *ecdsa_s390x_nistp_sign_sig(const unsigned char *dgst, in ecdsa_s390x_nistp_sign_sig() argument 168 memcpy(param + S390X_OFF_H(len) + off, dgst, len - off); in ecdsa_s390x_nistp_sign_sig() 224 static int ecdsa_s390x_nistp_verify_sig(const unsigned char *dgst, int dgstlen, in ecdsa_s390x_nistp_verify_sig() argument 265 memcpy(param + S390X_OFF_H(len) + off, dgst, len - off); in ecdsa_s390x_nistp_verify_sig() 301 char *dgst, \ 307 return ecdsa_s390x_nistp_sign_sig(dgst, dgstlen, kinv, r, eckey, \ 313 unsigned char *dgst, \ 318 return ecdsa_s390x_nistp_verify_sig(dgst, dgstlen, sig, eckey, \
|
H A D | ec_local.h | 181 ECDSA_SIG *(*ecdsa_sign_sig)(const unsigned char *dgst, int dgstlen, 184 int (*ecdsa_verify_sig)(const unsigned char *dgst, int dgstlen, 678 int (*sign)(int type, const unsigned char *dgst, int dlen, unsigned char 683 ECDSA_SIG *(*sign_sig)(const unsigned char *dgst, int dgst_len, 687 int (*verify)(int type, const unsigned char *dgst, int dgst_len, 689 int (*verify_sig)(const unsigned char *dgst, int dgst_len, 711 int ossl_ecdsa_sign(int type, const unsigned char *dgst, int dlen, 714 ECDSA_SIG *ossl_ecdsa_sign_sig(const unsigned char *dgst, int dgst_len, 717 int ossl_ecdsa_verify(int type, const unsigned char *dgst, int dgst_len, 719 int ossl_ecdsa_verify_sig(const unsigned char *dgst, int dgst_len, [all …]
|
/openssl/crypto/ocsp/ |
H A D | ocsp_lib.c | 22 OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, const X509 *subject, in OCSP_cert_to_id() argument 29 if (!dgst) in OCSP_cert_to_id() 30 dgst = EVP_sha1(); in OCSP_cert_to_id() 39 return OCSP_cert_id_new(dgst, iname, ikey, serial); in OCSP_cert_to_id() 42 OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst, in OCSP_cert_id_new() argument 58 if ((nid = EVP_MD_get_type(dgst)) == NID_undef) { in OCSP_cert_id_new() 68 if (!X509_NAME_digest(issuerName, dgst, md, &i)) in OCSP_cert_id_new() 74 if (!EVP_Digest(issuerKey->data, issuerKey->length, md, &i, dgst, NULL)) in OCSP_cert_id_new()
|
H A D | ocsp_vfy.c | 307 EVP_MD *dgst = NULL; in ocsp_match_issuerid() local 319 dgst = EVP_MD_fetch(NULL, name, NULL); in ocsp_match_issuerid() 320 if (dgst == NULL) in ocsp_match_issuerid() 321 dgst = (EVP_MD *)EVP_get_digestbyname(name); in ocsp_match_issuerid() 323 if (dgst == NULL) { in ocsp_match_issuerid() 330 mdlen = EVP_MD_get_size(dgst); in ocsp_match_issuerid() 341 if (!X509_NAME_digest(iname, dgst, md, NULL)) in ocsp_match_issuerid() 347 if (!X509_pubkey_digest(cert, dgst, md, NULL)) { in ocsp_match_issuerid() 367 EVP_MD_free(dgst); in ocsp_match_issuerid()
|
/openssl/crypto/dsa/ |
H A D | dsa_sign.c | 22 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) in DSA_do_sign() argument 24 return dsa->meth->dsa_do_sign(dgst, dlen, dsa); in DSA_do_sign() 153 int ossl_dsa_sign_int(int type, const unsigned char *dgst, int dlen, in ossl_dsa_sign_int() argument 167 s = DSA_do_sign(dgst, dlen, dsa); in ossl_dsa_sign_int() 169 s = ossl_dsa_do_sign_int(dgst, dlen, dsa, in ossl_dsa_sign_int() 180 int DSA_sign(int type, const unsigned char *dgst, int dlen, in DSA_sign() argument 183 return ossl_dsa_sign_int(type, dgst, dlen, sig, siglen, dsa, in DSA_sign() 194 int DSA_verify(int type, const unsigned char *dgst, int dgst_len, in DSA_verify() argument 212 ret = DSA_do_verify(dgst, dgst_len, s, dsa); in DSA_verify()
|
H A D | dsa_ossl.c | 28 static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); 32 BIGNUM **rp, const unsigned char *dgst, int dlen, 35 static int dsa_do_verify(const unsigned char *dgst, int dgst_len, 118 if (!dsa_sign_setup(dsa, ctx, &kinv, &ret->r, dgst, dlen, in ossl_dsa_do_sign_int() 129 if (BN_bin2bn(dgst, dlen, m) == NULL) in ossl_dsa_do_sign_int() 206 return ossl_dsa_do_sign_int(dgst, dlen, dsa, in dsa_do_sign() 219 const unsigned char *dgst, int dlen, in dsa_sign_setup() argument 270 if (dgst != NULL) { in dsa_sign_setup() 275 dgst, dlen, in dsa_sign_setup() 355 static int dsa_do_verify(const unsigned char *dgst, int dgst_len, in dsa_do_verify() argument [all …]
|
H A D | dsa_key.c | 117 unsigned char dgst[16] = {0}; in dsa_keygen_pairwise_test() local 118 unsigned int dgst_len = (unsigned int)sizeof(dgst); in dsa_keygen_pairwise_test() 129 sig = DSA_do_sign(dgst, (int)dgst_len, dsa); in dsa_keygen_pairwise_test() 133 OSSL_SELF_TEST_oncorrupt_byte(st, dgst); in dsa_keygen_pairwise_test() 135 if (DSA_do_verify(dgst, dgst_len, sig, dsa) != 1) in dsa_keygen_pairwise_test()
|
H A D | dsa_local.h | 48 DSA_SIG *(*dsa_do_sign) (const unsigned char *dgst, int dlen, DSA *dsa); 51 int (*dsa_do_verify) (const unsigned char *dgst, int dgst_len, 72 DSA_SIG *ossl_dsa_do_sign_int(const unsigned char *dgst, int dlen, DSA *dsa,
|
H A D | dsa_vrf.c | 19 int DSA_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig, in DSA_do_verify() argument 22 return dsa->meth->dsa_do_verify(dgst, dgst_len, sig, dsa); in DSA_do_verify()
|
/openssl/test/ |
H A D | ecdsatest.c | 355 unsigned char dgst[128] = { 0 }; in test_ecdsa_sig_NULL() local 362 && TEST_int_eq(ECDSA_sign(0, dgst, sizeof(dgst), NULL, &siglen0, in test_ecdsa_sig_NULL() 366 && TEST_int_eq(ECDSA_sign(0, dgst, sizeof(dgst), sig, &siglen, in test_ecdsa_sig_NULL() 370 && TEST_int_eq(ECDSA_verify(0, dgst, sizeof(dgst), sig, siglen, in test_ecdsa_sig_NULL() 373 && TEST_int_eq(ECDSA_sign_ex(0, dgst, sizeof(dgst), NULL, &siglen, in test_ecdsa_sig_NULL() 377 && TEST_int_eq(ECDSA_sign_ex(0, dgst, sizeof(dgst), sig, &siglen0, in test_ecdsa_sig_NULL() 380 && TEST_int_eq(ECDSA_verify(0, dgst, sizeof(dgst), sig, siglen, in test_ecdsa_sig_NULL()
|
/openssl/doc/man3/ |
H A D | ECDSA_sign.pod | 20 int ECDSA_sign(int type, const unsigned char *dgst, int dgstlen, 22 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dgst_len, 25 int ECDSA_verify(int type, const unsigned char *dgst, int dgstlen, 27 int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, 30 ECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dgstlen, 34 int ECDSA_sign_ex(int type, const unsigned char *dgst, int dgstlen, 54 I<dgst> using the private EC key I<eckey>. The DER encoded signatures is 66 valid ECDSA signature of the hash value I<dgst> of size I<dgstlen> using the 83 I<dgst> using the private EC key I<eckey> and the optional pre-computed values 139 if (ECDSA_sign(0, dgst, dgstlen, pp, &buf_len, eckey) == 0)
|
H A D | OCSP_cert_to_id.pod | 12 OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, 15 OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst, 33 message digest B<dgst> for certificate B<subject> with issuer B<issuer>. If 34 B<dgst> is B<NULL> then SHA1 is used. 36 OCSP_cert_id_new() creates and returns a new B<OCSP_CERTID> using B<dgst> and
|
H A D | DSA_do_sign.pod | 15 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); 17 int DSA_do_verify(const unsigned char *dgst, int dgst_len, 27 digest B<dgst> using the private key B<dsa> and returns it in a 35 message digest B<dgst> of size B<len>. B<dsa> is the signer's public
|
H A D | DSA_sign.pod | 15 int DSA_sign(int type, const unsigned char *dgst, int len, 20 int DSA_verify(int type, const unsigned char *dgst, int len, 30 digest B<dgst> using the private key B<dsa> and places its ASN.1 DER 42 matches a given message digest B<dgst> of size B<len>.
|
/openssl/include/openssl/ |
H A D | ec.h | 1384 OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, 1433 OSSL_DEPRECATEDIN_3_0 int ECDSA_sign(int type, const unsigned char *dgst, 1466 OSSL_DEPRECATEDIN_3_0 int ECDSA_verify(int type, const unsigned char *dgst, 1501 int (*sign)(int type, const unsigned char *dgst, 1508 ECDSA_SIG *(*sign_sig)(const unsigned char *dgst, 1517 char *dgst, int dgst_len, 1520 int (*verify_sig)(const unsigned char *dgst, 1545 int (**psign)(int type, const unsigned char *dgst, 1552 ECDSA_SIG *(**psign_sig)(const unsigned char *dgst, 1561 char *dgst, int dgst_len, [all …]
|
H A D | dsa.h | 118 OSSL_DEPRECATEDIN_3_0 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, 120 OSSL_DEPRECATEDIN_3_0 int DSA_do_verify(const unsigned char *dgst, int dgst_len, 141 OSSL_DEPRECATEDIN_3_0 int DSA_sign(int type, const unsigned char *dgst, 144 OSSL_DEPRECATEDIN_3_0 int DSA_verify(int type, const unsigned char *dgst,
|
/openssl/include/crypto/ |
H A D | sm2.h | 53 int ossl_sm2_internal_sign(const unsigned char *dgst, int dgstlen, 60 int ossl_sm2_internal_verify(const unsigned char *dgst, int dgstlen,
|
/openssl/doc/man1/ |
H A D | openssl-cmds.pod.in | 15 dgst, 72 view the manual page for the B<openssl dgst> command, type C<man openssl-dgst>. 96 L<openssl-dgst(1)>,
|
/openssl/apps/ |
H A D | ca.c | 95 const char *dgst, 107 const char *dgst, 117 X509 *x509, const char *dgst, 282 char *dgst = NULL, *policy = NULL, *keyfile = NULL; in ca_main() local 378 dgst = opt_arg(); in ca_main() 804 dgst = NULL; in ca_main() 805 } else if (dgst == NULL in ca_main() 815 dgst = def_dgst; in ca_main() 1336 const char *dgst, in certify() argument 1394 const char *dgst, in certify_cert() argument [all …]
|
H A D | enc.c | 124 EVP_MD *dgst = NULL; in enc_main() local 340 if (!opt_md(digestname, &dgst)) in enc_main() 343 if (dgst == NULL) in enc_main() 344 dgst = (EVP_MD *)EVP_sha256(); in enc_main() 567 iter, dgst, iklen+ivlen, tmpkeyiv)) { in enc_main() 578 if (!EVP_BytesToKey(cipher, dgst, sptr, in enc_main() 725 EVP_MD_free(dgst); in enc_main()
|
/openssl/crypto/pkcs7/ |
H A D | pk7_lib.c | 340 const EVP_MD *dgst) in PKCS7_SIGNER_INFO_set() argument 366 if (!X509_ALGOR_set0(p7i->digest_alg, OBJ_nid2obj(EVP_MD_get_type(dgst)), in PKCS7_SIGNER_INFO_set() 389 const EVP_MD *dgst) in PKCS7_add_signature() argument 393 if (dgst == NULL) { in PKCS7_add_signature() 397 dgst = EVP_get_digestbynid(def_nid); in PKCS7_add_signature() 398 if (dgst == NULL) { in PKCS7_add_signature() 406 if (PKCS7_SIGNER_INFO_set(si, x509, pkey, dgst) <= 0) in PKCS7_add_signature()
|