/external/openssl/crypto/hmac/ |
D | hm_pmeth.c | 150 static int hmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) in hmac_signctx_init() argument 153 HMAC_CTX_set_flags(&hctx->ctx, mctx->flags & ~EVP_MD_CTX_FLAG_NO_INIT); in hmac_signctx_init() 154 EVP_MD_CTX_set_flags(mctx, EVP_MD_CTX_FLAG_NO_INIT); in hmac_signctx_init() 155 mctx->update = int_update; in hmac_signctx_init() 160 EVP_MD_CTX *mctx) in hmac_signctx() argument 164 int l = EVP_MD_CTX_size(mctx); in hmac_signctx()
|
/external/openssl/crypto/cmac/ |
D | cm_pmeth.c | 109 static int cmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) in cmac_signctx_init() argument 111 EVP_MD_CTX_set_flags(mctx, EVP_MD_CTX_FLAG_NO_INIT); in cmac_signctx_init() 112 mctx->update = int_update; in cmac_signctx_init() 117 EVP_MD_CTX *mctx) in cmac_signctx() argument
|
/external/openssl/apps/ |
D | req.c | 1798 EVP_MD_CTX mctx; local 1799 EVP_MD_CTX_init(&mctx); 1800 rv = do_sign_init(err, &mctx, pkey, md, sigopts); 1802 rv = X509_sign_ctx(x, &mctx); 1803 EVP_MD_CTX_cleanup(&mctx); 1812 EVP_MD_CTX mctx; local 1813 EVP_MD_CTX_init(&mctx); 1814 rv = do_sign_init(err, &mctx, pkey, md, sigopts); 1816 rv = X509_REQ_sign_ctx(x, &mctx); 1817 EVP_MD_CTX_cleanup(&mctx); [all …]
|
D | dgst.c | 420 EVP_MD_CTX *mctx = NULL; in MAIN() local 423 if (!BIO_get_md_ctx(bmd, &mctx)) in MAIN() 430 r = EVP_DigestVerifyInit(mctx, &pctx, md, e, sigkey); in MAIN() 432 r = EVP_DigestSignInit(mctx, &pctx, md, e, sigkey); in MAIN()
|
/external/openssl/crypto/pkcs7/ |
D | pk7_doit.c | 703 static int do_pkcs7_signed_attrib(PKCS7_SIGNER_INFO *si, EVP_MD_CTX *mctx) in do_pkcs7_signed_attrib() argument 720 if (!EVP_DigestFinal_ex(mctx, md_data,&md_len)) in do_pkcs7_signed_attrib() 902 EVP_MD_CTX mctx; in PKCS7_SIGNER_INFO_sign() local 913 EVP_MD_CTX_init(&mctx); in PKCS7_SIGNER_INFO_sign() 914 if (EVP_DigestSignInit(&mctx, &pctx, md,NULL, si->pkey) <= 0) in PKCS7_SIGNER_INFO_sign() 928 if (EVP_DigestSignUpdate(&mctx,abuf,alen) <= 0) in PKCS7_SIGNER_INFO_sign() 931 if (EVP_DigestSignFinal(&mctx, NULL, &siglen) <= 0) in PKCS7_SIGNER_INFO_sign() 936 if (EVP_DigestSignFinal(&mctx, abuf, &siglen) <= 0) in PKCS7_SIGNER_INFO_sign() 946 EVP_MD_CTX_cleanup(&mctx); in PKCS7_SIGNER_INFO_sign() 955 EVP_MD_CTX_cleanup(&mctx); in PKCS7_SIGNER_INFO_sign()
|
/external/openssl/crypto/pem/ |
D | pvkfmt.c | 711 EVP_MD_CTX mctx; in derive_pvk_key() local 713 EVP_MD_CTX_init(&mctx); in derive_pvk_key() 714 if (!EVP_DigestInit_ex(&mctx, EVP_sha1(), NULL) in derive_pvk_key() 715 || !EVP_DigestUpdate(&mctx, salt, saltlen) in derive_pvk_key() 716 || !EVP_DigestUpdate(&mctx, pass, passlen) in derive_pvk_key() 717 || !EVP_DigestFinal_ex(&mctx, key, NULL)) in derive_pvk_key() 720 EVP_MD_CTX_cleanup(&mctx); in derive_pvk_key()
|
/external/openssl/crypto/evp/ |
D | evp_locl.h | 320 int (*signctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx); 322 EVP_MD_CTX *mctx); 324 int (*verifyctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx); 326 EVP_MD_CTX *mctx);
|
D | pmeth_lib.c | 544 int (*signctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), in EVP_PKEY_meth_set_signctx() argument 546 EVP_MD_CTX *mctx)) in EVP_PKEY_meth_set_signctx() 553 int (*verifyctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), in EVP_PKEY_meth_set_verifyctx() argument 555 EVP_MD_CTX *mctx)) in EVP_PKEY_meth_set_verifyctx()
|
D | evp.h | 1218 int (*signctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), 1220 EVP_MD_CTX *mctx)); 1223 int (*verifyctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), 1225 EVP_MD_CTX *mctx));
|
/external/openssl/include/openssl/ |
D | evp.h | 1218 int (*signctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), 1220 EVP_MD_CTX *mctx)); 1223 int (*verifyctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), 1225 EVP_MD_CTX *mctx));
|
/external/openssl/ssl/ |
D | s3_clnt.c | 2990 EVP_MD_CTX mctx; in ssl3_send_client_verify() local 2995 EVP_MD_CTX_init(&mctx); in ssl3_send_client_verify() 3037 if (!EVP_SignInit_ex(&mctx, md, NULL) in ssl3_send_client_verify() 3038 || !EVP_SignUpdate(&mctx, hdata, hdatalen) in ssl3_send_client_verify() 3039 || !EVP_SignFinal(&mctx, p + 2, &u, pkey)) in ssl3_send_client_verify() 3133 EVP_MD_CTX_cleanup(&mctx); in ssl3_send_client_verify() 3137 EVP_MD_CTX_cleanup(&mctx); in ssl3_send_client_verify()
|
D | s3_srvr.c | 2918 EVP_MD_CTX mctx; in ssl3_get_cert_verify() local 2919 EVP_MD_CTX_init(&mctx); in ssl3_get_cert_verify() 3050 if (!EVP_VerifyInit_ex(&mctx, md, NULL) in ssl3_get_cert_verify() 3051 || !EVP_VerifyUpdate(&mctx, hdata, hdatalen)) in ssl3_get_cert_verify() 3058 if (EVP_VerifyFinal(&mctx, p , i, pkey) <= 0) in ssl3_get_cert_verify() 3162 EVP_MD_CTX_cleanup(&mctx); in ssl3_get_cert_verify()
|