/external/boringssl/src/crypto/hmac/ |
H A D | hmac.c | 93 EVP_MD_CTX_init(&ctx->md_ctx); 99 EVP_MD_CTX_cleanup(&ctx->md_ctx); 126 if (!EVP_DigestInit_ex(&ctx->md_ctx, md, impl) || 127 !EVP_DigestUpdate(&ctx->md_ctx, key, key_len) || 128 !EVP_DigestFinal_ex(&ctx->md_ctx, key_block, &key_block_len)) { 160 if (!EVP_MD_CTX_copy_ex(&ctx->md_ctx, &ctx->i_ctx)) { 168 return EVP_DigestUpdate(&ctx->md_ctx, data, data_len); 177 if (!EVP_DigestFinal_ex(&ctx->md_ctx, buf, &i) || 178 !EVP_MD_CTX_copy_ex(&ctx->md_ctx, &ctx->o_ctx) || 179 !EVP_DigestUpdate(&ctx->md_ctx, bu [all...] |
/external/boringssl/src/crypto/cipher/ |
H A D | e_ssl3.c | 32 EVP_MD_CTX md_ctx; member in struct:__anon700 38 size_t md_size = EVP_MD_CTX_size(&ssl3_ctx->md_ctx); 47 EVP_MD_CTX md_ctx; local 48 EVP_MD_CTX_init(&md_ctx); 53 if (!EVP_MD_CTX_copy_ex(&md_ctx, &ssl3_ctx->md_ctx) || 54 !EVP_DigestUpdate(&md_ctx, pad, pad_len) || 55 !EVP_DigestUpdate(&md_ctx, ad, ad_len) || 56 !EVP_DigestUpdate(&md_ctx, ad_extra, sizeof(ad_extra)) || 57 !EVP_DigestUpdate(&md_ctx, i [all...] |
H A D | tls_cbc.c | 296 EVP_MD_CTX md_ctx; local 477 EVP_MD_CTX_init(&md_ctx); 478 if (!EVP_DigestInit_ex(&md_ctx, md, NULL /* engine */)) { 479 EVP_MD_CTX_cleanup(&md_ctx); 488 EVP_DigestUpdate(&md_ctx, hmac_pad, md_block_size); 489 EVP_DigestUpdate(&md_ctx, mac_out, md_size); 490 EVP_DigestFinal(&md_ctx, md_out, &md_out_size_u); 492 EVP_MD_CTX_cleanup(&md_ctx);
|
/external/boringssl/src/crypto/digest/ |
H A D | digests.c | 225 static void md5_sha1_init(EVP_MD_CTX *md_ctx) { argument 226 MD5_SHA1_CTX *ctx = md_ctx->md_data; 230 static void md5_sha1_update(EVP_MD_CTX *md_ctx, const void *data, argument 232 MD5_SHA1_CTX *ctx = md_ctx->md_data; 237 static void md5_sha1_final(EVP_MD_CTX *md_ctx, uint8_t *out) { argument 238 MD5_SHA1_CTX *ctx = md_ctx->md_data;
|
/external/boringssl/include/openssl/ |
H A D | hmac.h | 150 EVP_MD_CTX md_ctx; member in struct:hmac_ctx_st
|
/external/boringssl/src/include/openssl/ |
H A D | hmac.h | 150 EVP_MD_CTX md_ctx; member in struct:hmac_ctx_st
|
/external/boringssl/src/crypto/x509/ |
H A D | x509_cmp.c | 249 EVP_MD_CTX md_ctx; local 255 EVP_MD_CTX_init(&md_ctx); 256 /* EVP_MD_CTX_set_flags(&md_ctx, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW); */ 257 if (EVP_DigestInit_ex(&md_ctx, EVP_md5(), NULL) 258 && EVP_DigestUpdate(&md_ctx, x->bytes->data, x->bytes->length) 259 && EVP_DigestFinal_ex(&md_ctx,md,NULL)) 263 EVP_MD_CTX_cleanup(&md_ctx);
|
/external/boringssl/src/crypto/evp/ |
H A D | evp_extra_test.cc | 456 ScopedEVP_MD_CTX md_ctx; local 458 !EVP_DigestSignInit(md_ctx.get(), NULL, EVP_sha256(), NULL, pkey.get()) || 459 !EVP_DigestSignUpdate(md_ctx.get(), kMsg, sizeof(kMsg))) { 464 if (!EVP_DigestSignFinal(md_ctx.get(), NULL, &sig_len)) { 475 if (!EVP_DigestSignFinal(md_ctx.get(), sig.data(), &sig_len)) { 481 md_ctx.Reset(); 482 if (!EVP_DigestVerifyInit(md_ctx.get(), NULL, EVP_sha256(), NULL, 484 !EVP_DigestVerifyUpdate(md_ctx.get(), kMsg, sizeof(kMsg)) || 485 !EVP_DigestVerifyFinal(md_ctx.get(), sig.data(), sig_len)) { 494 ScopedEVP_MD_CTX md_ctx; local 508 TestAlgorithmRoundtrip(EVP_MD_CTX *md_ctx, EVP_PKEY *pkey) argument 553 ScopedEVP_MD_CTX md_ctx; local 649 ScopedEVP_MD_CTX md_ctx; local 671 ScopedEVP_MD_CTX md_ctx; local [all...] |
/external/boringssl/src/ssl/ |
H A D | s3_clnt.c | 1061 EVP_MD_CTX md_ctx; local 1105 EVP_MD_CTX_init(&md_ctx); 1264 if (!EVP_DigestVerifyInit(&md_ctx, NULL, md, NULL, pkey) || 1265 !EVP_DigestVerifyUpdate(&md_ctx, ssl->s3->client_random, 1267 !EVP_DigestVerifyUpdate(&md_ctx, ssl->s3->server_random, 1269 !EVP_DigestVerifyUpdate(&md_ctx, CBS_data(¶meter), 1271 !EVP_DigestVerifyFinal(&md_ctx, CBS_data(&signature), 1289 EVP_MD_CTX_cleanup(&md_ctx); 1299 EVP_MD_CTX_cleanup(&md_ctx);
|
H A D | s3_srvr.c | 1324 EVP_MD_CTX md_ctx; local 1325 EVP_MD_CTX_init(&md_ctx); 1327 EVP_DigestInit_ex(&md_ctx, md, NULL) && 1328 EVP_DigestUpdate(&md_ctx, ssl->s3->client_random, SSL3_RANDOM_SIZE) && 1329 EVP_DigestUpdate(&md_ctx, ssl->s3->server_random, SSL3_RANDOM_SIZE) && 1330 EVP_DigestUpdate(&md_ctx, CBB_data(&cbb), params_len) && 1331 EVP_DigestFinal_ex(&md_ctx, digest, &digest_len); 1332 EVP_MD_CTX_cleanup(&md_ctx);
|