/external/chromium_org/third_party/boringssl/src/crypto/evp/ |
D | example_sign.c | 106 EVP_MD_CTX md_ctx; in example_EVP_DigestSignInit() local 108 EVP_MD_CTX_init(&md_ctx); in example_EVP_DigestSignInit() 118 EVP_DigestSignInit(&md_ctx, NULL, EVP_sha256(), NULL, pkey) != 1 || in example_EVP_DigestSignInit() 119 EVP_DigestSignUpdate(&md_ctx, kMsg, sizeof(kMsg)) != 1) { in example_EVP_DigestSignInit() 123 if (EVP_DigestSignFinal(&md_ctx, NULL, &sig_len) != 1) { in example_EVP_DigestSignInit() 136 if (EVP_DigestSignFinal(&md_ctx, sig, &sig_len) != 1) { in example_EVP_DigestSignInit() 148 EVP_MD_CTX_cleanup(&md_ctx); in example_EVP_DigestSignInit() 167 EVP_MD_CTX md_ctx; in example_EVP_DigestVerifyInit() local 169 EVP_MD_CTX_init(&md_ctx); in example_EVP_DigestVerifyInit() 178 EVP_DigestVerifyInit(&md_ctx, NULL, EVP_sha256(), NULL, pkey) != 1 || in example_EVP_DigestVerifyInit() [all …]
|
/external/chromium_org/third_party/boringssl/src/crypto/hmac/ |
D | hmac.c | 91 EVP_MD_CTX_init(&ctx->md_ctx); in HMAC_CTX_init() 97 EVP_MD_CTX_cleanup(&ctx->md_ctx); in HMAC_CTX_cleanup() 118 if (!EVP_DigestInit_ex(&ctx->md_ctx, md, impl) || in HMAC_Init_ex() 119 !EVP_DigestUpdate(&ctx->md_ctx, key, key_len) || in HMAC_Init_ex() 120 !EVP_DigestFinal_ex(&(ctx->md_ctx), ctx->key, &ctx->key_length)) { in HMAC_Init_ex() 151 if (!EVP_MD_CTX_copy_ex(&ctx->md_ctx, &ctx->i_ctx)) { in HMAC_Init_ex() 162 return EVP_DigestUpdate(&ctx->md_ctx, data, data_len); in HMAC_Update() 169 if (!EVP_DigestFinal_ex(&ctx->md_ctx, buf, &i) || in HMAC_Final() 170 !EVP_MD_CTX_copy_ex(&ctx->md_ctx, &ctx->o_ctx) || in HMAC_Final() 171 !EVP_DigestUpdate(&ctx->md_ctx, buf, i) || in HMAC_Final() [all …]
|
/external/openssl/crypto/hmac/ |
D | hmac.c | 107 if (!EVP_DigestInit_ex(&ctx->md_ctx,md, impl)) in HMAC_Init_ex() 109 if (!EVP_DigestUpdate(&ctx->md_ctx,key,len)) in HMAC_Init_ex() 111 if (!EVP_DigestFinal_ex(&(ctx->md_ctx),ctx->key, in HMAC_Init_ex() 142 if (!EVP_MD_CTX_copy_ex(&ctx->md_ctx,&ctx->i_ctx)) in HMAC_Init_ex() 162 return EVP_DigestUpdate(&ctx->md_ctx,data,len); in HMAC_Update() 174 if (!EVP_DigestFinal_ex(&ctx->md_ctx,buf,&i)) in HMAC_Final() 176 if (!EVP_MD_CTX_copy_ex(&ctx->md_ctx,&ctx->o_ctx)) in HMAC_Final() 178 if (!EVP_DigestUpdate(&ctx->md_ctx,buf,i)) in HMAC_Final() 180 if (!EVP_DigestFinal_ex(&ctx->md_ctx,md,len)) in HMAC_Final() 191 EVP_MD_CTX_init(&ctx->md_ctx); in HMAC_CTX_init() [all …]
|
D | hmac.h | 78 EVP_MD_CTX md_ctx; member
|
/external/chromium_org/net/quic/test_tools/ |
D | crypto_test_utils_openssl.cc | 35 crypto::ScopedEVP_MD_CTX md_ctx(EVP_MD_CTX_create()); in Sign() local 36 if (!md_ctx || in Sign() 37 EVP_DigestSignInit(md_ctx.get(), NULL, EVP_sha256(), NULL, in Sign() 42 EVP_DigestUpdate(md_ctx.get(), ChannelIDVerifier::kContextStr, in Sign() 44 EVP_DigestUpdate(md_ctx.get(), ChannelIDVerifier::kClientToServerStr, in Sign() 46 EVP_DigestUpdate(md_ctx.get(), signed_data.data(), signed_data.size()); in Sign() 49 if (!EVP_DigestSignFinal(md_ctx.get(), NULL, &sig_len)) { in Sign() 54 if (!EVP_DigestSignFinal(md_ctx.get(), der_sig.get(), &sig_len)) { in Sign()
|
/external/chromium_org/third_party/boringssl/src/ssl/ |
D | s3_enc.c | 633 EVP_MD_CTX md_ctx; in n_ssl3_mac() local 704 EVP_MD_CTX_init(&md_ctx); in n_ssl3_mac() 706 EVP_MD_CTX_copy_ex( &md_ctx,hash); in n_ssl3_mac() 707 EVP_DigestUpdate(&md_ctx,mac_sec,md_size); in n_ssl3_mac() 708 EVP_DigestUpdate(&md_ctx,ssl3_pad_1,npad); in n_ssl3_mac() 709 EVP_DigestUpdate(&md_ctx,seq,8); in n_ssl3_mac() 711 EVP_DigestUpdate(&md_ctx,&rec_char,1); in n_ssl3_mac() 714 EVP_DigestUpdate(&md_ctx,md,2); in n_ssl3_mac() 715 EVP_DigestUpdate(&md_ctx,rec->input,rec->length); in n_ssl3_mac() 716 EVP_DigestFinal_ex( &md_ctx,md,NULL); in n_ssl3_mac() [all …]
|
D | s3_cbc.c | 412 EVP_MD_CTX md_ctx; in ssl3_cbc_digest_record() local 629 EVP_MD_CTX_init(&md_ctx); in ssl3_cbc_digest_record() 630 EVP_DigestInit_ex(&md_ctx, ctx->digest, NULL /* engine */); in ssl3_cbc_digest_record() 636 EVP_DigestUpdate(&md_ctx, mac_secret, mac_secret_length); in ssl3_cbc_digest_record() 637 EVP_DigestUpdate(&md_ctx, hmac_pad, sslv3_pad_length); in ssl3_cbc_digest_record() 638 EVP_DigestUpdate(&md_ctx, mac_out, md_size); in ssl3_cbc_digest_record() 646 EVP_DigestUpdate(&md_ctx, hmac_pad, md_block_size); in ssl3_cbc_digest_record() 647 EVP_DigestUpdate(&md_ctx, mac_out, md_size); in ssl3_cbc_digest_record() 649 EVP_DigestFinal(&md_ctx, md_out, &md_out_size_u); in ssl3_cbc_digest_record() 652 EVP_MD_CTX_cleanup(&md_ctx); in ssl3_cbc_digest_record()
|
D | s3_clnt.c | 1147 EVP_MD_CTX md_ctx; in ssl3_get_server_key_exchange() local 1230 EVP_MD_CTX_init(&md_ctx); in ssl3_get_server_key_exchange() 1507 EVP_DigestInit_ex(&md_ctx, in ssl3_get_server_key_exchange() 1509 EVP_DigestUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in ssl3_get_server_key_exchange() 1510 EVP_DigestUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in ssl3_get_server_key_exchange() 1511 EVP_DigestUpdate(&md_ctx, CBS_data(¶meter), CBS_len(¶meter)); in ssl3_get_server_key_exchange() 1512 EVP_DigestFinal_ex(&md_ctx, q, &digest_len); in ssl3_get_server_key_exchange() 1527 EVP_VerifyInit_ex(&md_ctx, md, NULL); in ssl3_get_server_key_exchange() 1528 EVP_VerifyUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in ssl3_get_server_key_exchange() 1529 EVP_VerifyUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in ssl3_get_server_key_exchange() [all …]
|
D | s3_srvr.c | 1291 EVP_MD_CTX md_ctx; in ssl3_send_server_key_exchange() local 1293 EVP_MD_CTX_init(&md_ctx); in ssl3_send_server_key_exchange() 1580 EVP_DigestInit_ex(&md_ctx, in ssl3_send_server_key_exchange() 1582 EVP_DigestUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in ssl3_send_server_key_exchange() 1583 EVP_DigestUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in ssl3_send_server_key_exchange() 1584 EVP_DigestUpdate(&md_ctx,d,n); in ssl3_send_server_key_exchange() 1585 EVP_DigestFinal_ex(&md_ctx,q, in ssl3_send_server_key_exchange() 1618 EVP_SignInit_ex(&md_ctx, md, NULL); in ssl3_send_server_key_exchange() 1619 EVP_SignUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in ssl3_send_server_key_exchange() 1620 EVP_SignUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in ssl3_send_server_key_exchange() [all …]
|
/external/openssl/crypto/x509/ |
D | x509_cmp.c | 243 EVP_MD_CTX md_ctx; in X509_NAME_hash_old() local 249 EVP_MD_CTX_init(&md_ctx); in X509_NAME_hash_old() 250 EVP_MD_CTX_set_flags(&md_ctx, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW); in X509_NAME_hash_old() 251 if (EVP_DigestInit_ex(&md_ctx, EVP_md5(), NULL) in X509_NAME_hash_old() 252 && EVP_DigestUpdate(&md_ctx, x->bytes->data, x->bytes->length) in X509_NAME_hash_old() 253 && EVP_DigestFinal_ex(&md_ctx,md,NULL)) in X509_NAME_hash_old() 257 EVP_MD_CTX_cleanup(&md_ctx); in X509_NAME_hash_old()
|
/external/openssl/ssl/ |
D | s3_enc.c | 716 EVP_MD_CTX md_ctx; in n_ssl3_mac() local 787 EVP_MD_CTX_init(&md_ctx); in n_ssl3_mac() 789 EVP_MD_CTX_copy_ex( &md_ctx,hash); in n_ssl3_mac() 790 EVP_DigestUpdate(&md_ctx,mac_sec,md_size); in n_ssl3_mac() 791 EVP_DigestUpdate(&md_ctx,ssl3_pad_1,npad); in n_ssl3_mac() 792 EVP_DigestUpdate(&md_ctx,seq,8); in n_ssl3_mac() 794 EVP_DigestUpdate(&md_ctx,&rec_char,1); in n_ssl3_mac() 797 EVP_DigestUpdate(&md_ctx,md,2); in n_ssl3_mac() 798 EVP_DigestUpdate(&md_ctx,rec->input,rec->length); in n_ssl3_mac() 799 EVP_DigestFinal_ex( &md_ctx,md,NULL); in n_ssl3_mac() [all …]
|
D | s3_cbc.c | 427 EVP_MD_CTX md_ctx; in ssl3_cbc_digest_record() local 684 EVP_MD_CTX_init(&md_ctx); in ssl3_cbc_digest_record() 685 EVP_DigestInit_ex(&md_ctx, ctx->digest, NULL /* engine */); in ssl3_cbc_digest_record() 691 EVP_DigestUpdate(&md_ctx, mac_secret, mac_secret_length); in ssl3_cbc_digest_record() 692 EVP_DigestUpdate(&md_ctx, hmac_pad, sslv3_pad_length); in ssl3_cbc_digest_record() 693 EVP_DigestUpdate(&md_ctx, mac_out, md_size); in ssl3_cbc_digest_record() 701 EVP_DigestUpdate(&md_ctx, hmac_pad, md_block_size); in ssl3_cbc_digest_record() 702 EVP_DigestUpdate(&md_ctx, mac_out, md_size); in ssl3_cbc_digest_record() 704 EVP_DigestFinal(&md_ctx, md_out, &md_out_size_u); in ssl3_cbc_digest_record() 707 EVP_MD_CTX_cleanup(&md_ctx); in ssl3_cbc_digest_record()
|
D | d1_srvr.c | 1067 EVP_MD_CTX md_ctx; in dtls1_send_server_key_exchange() local 1069 EVP_MD_CTX_init(&md_ctx); in dtls1_send_server_key_exchange() 1393 EVP_DigestInit_ex(&md_ctx,(num == 2) in dtls1_send_server_key_exchange() 1395 EVP_DigestUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in dtls1_send_server_key_exchange() 1396 EVP_DigestUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in dtls1_send_server_key_exchange() 1397 EVP_DigestUpdate(&md_ctx,&(d[DTLS1_HM_HEADER_LENGTH]),n); in dtls1_send_server_key_exchange() 1398 EVP_DigestFinal_ex(&md_ctx,q, in dtls1_send_server_key_exchange() 1418 EVP_SignInit_ex(&md_ctx,EVP_dss1(), NULL); in dtls1_send_server_key_exchange() 1419 EVP_SignUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in dtls1_send_server_key_exchange() 1420 EVP_SignUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in dtls1_send_server_key_exchange() [all …]
|
D | s3_clnt.c | 1358 EVP_MD_CTX md_ctx; in ssl3_get_key_exchange() local 1444 EVP_MD_CTX_init(&md_ctx); in ssl3_get_key_exchange() 1993 EVP_MD_CTX_set_flags(&md_ctx, in ssl3_get_key_exchange() 1995 EVP_DigestInit_ex(&md_ctx,(num == 2) in ssl3_get_key_exchange() 1997 EVP_DigestUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in ssl3_get_key_exchange() 1998 EVP_DigestUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in ssl3_get_key_exchange() 1999 EVP_DigestUpdate(&md_ctx,param,param_len); in ssl3_get_key_exchange() 2000 EVP_DigestFinal_ex(&md_ctx,q,&size); in ssl3_get_key_exchange() 2023 EVP_VerifyInit_ex(&md_ctx, md, NULL); in ssl3_get_key_exchange() 2024 EVP_VerifyUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in ssl3_get_key_exchange() [all …]
|
D | s3_srvr.c | 1642 EVP_MD_CTX md_ctx; in ssl3_send_server_key_exchange() local 1644 EVP_MD_CTX_init(&md_ctx); in ssl3_send_server_key_exchange() 2006 EVP_MD_CTX_set_flags(&md_ctx, in ssl3_send_server_key_exchange() 2008 EVP_DigestInit_ex(&md_ctx,(num == 2) in ssl3_send_server_key_exchange() 2010 EVP_DigestUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in ssl3_send_server_key_exchange() 2011 EVP_DigestUpdate(&md_ctx,&(s->s3->server_random[0]),SSL3_RANDOM_SIZE); in ssl3_send_server_key_exchange() 2012 EVP_DigestUpdate(&md_ctx,&(d[4]),n); in ssl3_send_server_key_exchange() 2013 EVP_DigestFinal_ex(&md_ctx,q, in ssl3_send_server_key_exchange() 2048 EVP_SignInit_ex(&md_ctx, md, NULL); in ssl3_send_server_key_exchange() 2049 EVP_SignUpdate(&md_ctx,&(s->s3->client_random[0]),SSL3_RANDOM_SIZE); in ssl3_send_server_key_exchange() [all …]
|
/external/chromium_org/third_party/boringssl/src/crypto/x509/ |
D | x509_cmp.c | 247 EVP_MD_CTX md_ctx; in X509_NAME_hash_old() local 253 EVP_MD_CTX_init(&md_ctx); in X509_NAME_hash_old() 255 if (EVP_DigestInit_ex(&md_ctx, EVP_md5(), NULL) in X509_NAME_hash_old() 256 && EVP_DigestUpdate(&md_ctx, x->bytes->data, x->bytes->length) in X509_NAME_hash_old() 257 && EVP_DigestFinal_ex(&md_ctx,md,NULL)) in X509_NAME_hash_old() 261 EVP_MD_CTX_cleanup(&md_ctx); in X509_NAME_hash_old()
|
/external/openssl/crypto/ecdsa/ |
D | ecdsatest.c | 187 EVP_MD_CTX md_ctx; in x9_62_test_internal() local 192 EVP_MD_CTX_init(&md_ctx); in x9_62_test_internal() 194 EVP_DigestInit(&md_ctx, EVP_ecdsa()); in x9_62_test_internal() 195 EVP_DigestUpdate(&md_ctx, (const void*)message, 3); in x9_62_test_internal() 196 EVP_DigestFinal(&md_ctx, digest, &dgst_len); in x9_62_test_internal() 241 EVP_MD_CTX_cleanup(&md_ctx); in x9_62_test_internal()
|
/external/openssl/include/openssl/ |
D | hmac.h | 78 EVP_MD_CTX md_ctx; member
|
/external/chromium_org/third_party/boringssl/src/include/openssl/ |
D | hmac.h | 147 EVP_MD_CTX md_ctx; member
|
/external/openssl/patches/ |
D | 0004-channelid.patch | 166 + EVP_MD_CTX md_ctx; 199 + EVP_MD_CTX_init(&md_ctx); 225 + if (EVP_DigestSignInit(&md_ctx, NULL, EVP_sha256(), NULL, 232 + if (!tls1_channel_id_hash(&md_ctx, s)) 235 + if (!EVP_DigestSignFinal(&md_ctx, NULL, &sig_len)) 248 + if (!EVP_DigestSignFinal(&md_ctx, der_sig, &sig_len)) 278 + EVP_MD_CTX_cleanup(&md_ctx); 556 + EVP_MD_CTX md_ctx; 559 + EVP_MD_CTX_init(&md_ctx); 560 + EVP_DigestInit_ex(&md_ctx, EVP_sha256(), NULL); [all …]
|
D | 0011-ecdhe_psk.patch | 45 EVP_MD_CTX_init(&md_ctx); 684 EVP_MD_CTX_init(&md_ctx);
|
/external/openssl/apps/ |
D | dgst.c | 405 EVP_MD_CTX *md_ctx; in MAIN() local 406 BIO_get_md_ctx(bmd,&md_ctx); in MAIN() 407 EVP_MD_CTX_set_flags(md_ctx, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW); in MAIN()
|