/external/chromium_org/third_party/boringssl/src/crypto/hmac/ |
hmac.c | 91 EVP_MD_CTX_init(&ctx->md_ctx); 97 EVP_MD_CTX_cleanup(&ctx->md_ctx); 118 if (!EVP_DigestInit_ex(&ctx->md_ctx, md, impl) || 119 !EVP_DigestUpdate(&ctx->md_ctx, key, key_len) || 120 !EVP_DigestFinal_ex(&(ctx->md_ctx), ctx->key, &ctx->key_length)) { 151 if (!EVP_MD_CTX_copy_ex(&ctx->md_ctx, &ctx->i_ctx)) { 162 return EVP_DigestUpdate(&ctx->md_ctx, data, data_len); 169 if (!EVP_DigestFinal_ex(&ctx->md_ctx, buf, &i) || 170 !EVP_MD_CTX_copy_ex(&ctx->md_ctx, &ctx->o_ctx) || 171 !EVP_DigestUpdate(&ctx->md_ctx, buf, i) | [all...] |
/external/openssl/crypto/hmac/ |
hmac.c | 107 if (!EVP_DigestInit_ex(&ctx->md_ctx,md, impl)) 109 if (!EVP_DigestUpdate(&ctx->md_ctx,key,len)) 111 if (!EVP_DigestFinal_ex(&(ctx->md_ctx),ctx->key, 142 if (!EVP_MD_CTX_copy_ex(&ctx->md_ctx,&ctx->i_ctx)) 162 return EVP_DigestUpdate(&ctx->md_ctx,data,len); 174 if (!EVP_DigestFinal_ex(&ctx->md_ctx,buf,&i)) 176 if (!EVP_MD_CTX_copy_ex(&ctx->md_ctx,&ctx->o_ctx)) 178 if (!EVP_DigestUpdate(&ctx->md_ctx,buf,i)) 180 if (!EVP_DigestFinal_ex(&ctx->md_ctx,md,len)) 191 EVP_MD_CTX_init(&ctx->md_ctx); [all...] |
hmac.h | 78 EVP_MD_CTX md_ctx; member in struct:hmac_ctx_st
|
/external/chromium_org/net/quic/test_tools/ |
crypto_test_utils_openssl.cc | 35 crypto::ScopedEVP_MD_CTX md_ctx(EVP_MD_CTX_create()); 36 if (!md_ctx || 37 EVP_DigestSignInit(md_ctx.get(), NULL, EVP_sha256(), NULL, 42 EVP_DigestUpdate(md_ctx.get(), ChannelIDVerifier::kContextStr, 44 EVP_DigestUpdate(md_ctx.get(), ChannelIDVerifier::kClientToServerStr, 46 EVP_DigestUpdate(md_ctx.get(), signed_data.data(), signed_data.size()); 49 if (!EVP_DigestSignFinal(md_ctx.get(), NULL, &sig_len)) { 54 if (!EVP_DigestSignFinal(md_ctx.get(), der_sig.get(), &sig_len)) {
|
/external/openssl/crypto/x509/ |
x509_cmp.c | 243 EVP_MD_CTX md_ctx; local 249 EVP_MD_CTX_init(&md_ctx); 250 EVP_MD_CTX_set_flags(&md_ctx, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW); 251 if (EVP_DigestInit_ex(&md_ctx, EVP_md5(), NULL) 252 && EVP_DigestUpdate(&md_ctx, x->bytes->data, x->bytes->length) 253 && EVP_DigestFinal_ex(&md_ctx,md,NULL)) 257 EVP_MD_CTX_cleanup(&md_ctx);
|
/external/chromium_org/third_party/boringssl/src/ssl/ |
s3_cbc.c | 412 EVP_MD_CTX md_ctx; local 629 EVP_MD_CTX_init(&md_ctx); 630 EVP_DigestInit_ex(&md_ctx, ctx->digest, NULL /* engine */); 636 EVP_DigestUpdate(&md_ctx, mac_secret, mac_secret_length); 637 EVP_DigestUpdate(&md_ctx, hmac_pad, sslv3_pad_length); 638 EVP_DigestUpdate(&md_ctx, mac_out, md_size); 646 EVP_DigestUpdate(&md_ctx, hmac_pad, md_block_size); 647 EVP_DigestUpdate(&md_ctx, mac_out, md_size); 649 EVP_DigestFinal(&md_ctx, md_out, &md_out_size_u); 652 EVP_MD_CTX_cleanup(&md_ctx); [all...] |
s3_enc.c | 533 /* Loop through bitso of algorithm2 field and create MD_CTX-es */ 633 EVP_MD_CTX md_ctx; local 704 EVP_MD_CTX_init(&md_ctx); 706 EVP_MD_CTX_copy_ex( &md_ctx,hash); 707 EVP_DigestUpdate(&md_ctx,mac_sec,md_size); 708 EVP_DigestUpdate(&md_ctx,ssl3_pad_1,npad); 709 EVP_DigestUpdate(&md_ctx,seq,8); 711 EVP_DigestUpdate(&md_ctx,&rec_char,1); 714 EVP_DigestUpdate(&md_ctx,md,2); 715 EVP_DigestUpdate(&md_ctx,rec->input,rec->length) [all...] |
s3_clnt.c | 1147 EVP_MD_CTX md_ctx; local 2568 EVP_MD_CTX md_ctx; local [all...] |
s3_srvr.c | 1291 EVP_MD_CTX md_ctx; local 2748 EVP_MD_CTX md_ctx; local [all...] |
/external/openssl/ssl/ |
s3_cbc.c | 427 EVP_MD_CTX md_ctx; local 684 EVP_MD_CTX_init(&md_ctx); 685 EVP_DigestInit_ex(&md_ctx, ctx->digest, NULL /* engine */); 691 EVP_DigestUpdate(&md_ctx, mac_secret, mac_secret_length); 692 EVP_DigestUpdate(&md_ctx, hmac_pad, sslv3_pad_length); 693 EVP_DigestUpdate(&md_ctx, mac_out, md_size); 701 EVP_DigestUpdate(&md_ctx, hmac_pad, md_block_size); 702 EVP_DigestUpdate(&md_ctx, mac_out, md_size); 704 EVP_DigestFinal(&md_ctx, md_out, &md_out_size_u); 707 EVP_MD_CTX_cleanup(&md_ctx); [all...] |
s3_enc.c | 606 /* Loop through bitso of algorithm2 field and create MD_CTX-es */ 716 EVP_MD_CTX md_ctx; local 787 EVP_MD_CTX_init(&md_ctx); 789 EVP_MD_CTX_copy_ex( &md_ctx,hash); 790 EVP_DigestUpdate(&md_ctx,mac_sec,md_size); 791 EVP_DigestUpdate(&md_ctx,ssl3_pad_1,npad); 792 EVP_DigestUpdate(&md_ctx,seq,8); 794 EVP_DigestUpdate(&md_ctx,&rec_char,1); 797 EVP_DigestUpdate(&md_ctx,md,2); 798 EVP_DigestUpdate(&md_ctx,rec->input,rec->length) [all...] |
d1_srvr.c | 1067 EVP_MD_CTX md_ctx; local 1069 EVP_MD_CTX_init(&md_ctx); [all...] |
s3_clnt.c | 1358 EVP_MD_CTX md_ctx; local 3637 EVP_MD_CTX md_ctx; local [all...] |
s3_srvr.c | 1642 EVP_MD_CTX md_ctx; local 3717 EVP_MD_CTX md_ctx; local [all...] |
/external/chromium_org/third_party/boringssl/src/crypto/evp/ |
example_sign.c | 106 EVP_MD_CTX md_ctx; local 108 EVP_MD_CTX_init(&md_ctx); 118 EVP_DigestSignInit(&md_ctx, NULL, EVP_sha256(), NULL, pkey) != 1 || 119 EVP_DigestSignUpdate(&md_ctx, kMsg, sizeof(kMsg)) != 1) { 123 if (EVP_DigestSignFinal(&md_ctx, NULL, &sig_len) != 1) { 136 if (EVP_DigestSignFinal(&md_ctx, sig, &sig_len) != 1) { 148 EVP_MD_CTX_cleanup(&md_ctx); 167 EVP_MD_CTX md_ctx; local 169 EVP_MD_CTX_init(&md_ctx); 178 EVP_DigestVerifyInit(&md_ctx, NULL, EVP_sha256(), NULL, pkey) != 1 | [all...] |
/external/chromium_org/third_party/boringssl/src/include/openssl/ |
hmac.h | 147 EVP_MD_CTX md_ctx; member in struct:hmac_ctx_st
|
/external/openssl/include/openssl/ |
hmac.h | 78 EVP_MD_CTX md_ctx; member in struct:hmac_ctx_st
|
/external/chromium_org/third_party/boringssl/src/crypto/x509/ |
x509_cmp.c | 247 EVP_MD_CTX md_ctx; local 253 EVP_MD_CTX_init(&md_ctx); 254 /* EVP_MD_CTX_set_flags(&md_ctx, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW); */ 255 if (EVP_DigestInit_ex(&md_ctx, EVP_md5(), NULL) 256 && EVP_DigestUpdate(&md_ctx, x->bytes->data, x->bytes->length) 257 && EVP_DigestFinal_ex(&md_ctx,md,NULL)) 261 EVP_MD_CTX_cleanup(&md_ctx);
|
/external/openssl/crypto/ecdsa/ |
ecdsatest.c | 187 EVP_MD_CTX md_ctx; local 192 EVP_MD_CTX_init(&md_ctx); 194 EVP_DigestInit(&md_ctx, EVP_ecdsa()); 195 EVP_DigestUpdate(&md_ctx, (const void*)message, 3); 196 EVP_DigestFinal(&md_ctx, digest, &dgst_len); 241 EVP_MD_CTX_cleanup(&md_ctx);
|
/external/openssl/apps/ |
dgst.c | 405 EVP_MD_CTX *md_ctx; local 406 BIO_get_md_ctx(bmd,&md_ctx); 407 EVP_MD_CTX_set_flags(md_ctx, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW);
|