Searched defs:md_ctx (Results 1 - 12 of 12) sorted by relevance

/external/boringssl/include/openssl/
H A Dhmac.h160 EVP_MD_CTX md_ctx; member in struct:hmac_ctx_st
/external/boringssl/src/include/openssl/
H A Dhmac.h160 EVP_MD_CTX md_ctx; member in struct:hmac_ctx_st
/external/boringssl/src/crypto/fipsmodule/digest/
H A Ddigests.c251 static void md5_sha1_init(EVP_MD_CTX *md_ctx) { argument
252 MD5_SHA1_CTX *ctx = md_ctx->md_data;
256 static void md5_sha1_update(EVP_MD_CTX *md_ctx, const void *data, argument
258 MD5_SHA1_CTX *ctx = md_ctx->md_data;
263 static void md5_sha1_final(EVP_MD_CTX *md_ctx, uint8_t *out) { argument
264 MD5_SHA1_CTX *ctx = md_ctx->md_data;
/external/tensorflow/tensorflow/core/platform/cloud/
H A Doauth_client_test.cc157 auto md_ctx = EVP_MD_CTX_create(); local
160 ASSERT_EQ(1, EVP_DigestVerifyInit(md_ctx, nullptr, md, nullptr, key));
161 ASSERT_EQ(1, EVP_DigestVerifyUpdate(md_ctx, header_dot_claim.c_str(),
165 md_ctx,
169 EVP_MD_CTX_cleanup(md_ctx);
173 EVP_MD_CTX_destroy(md_ctx);
/external/boringssl/src/crypto/evp/
H A Devp_extra_test.cc379 bssl::ScopedEVP_MD_CTX md_ctx; local
381 EVP_DigestSignInit(md_ctx.get(), NULL, EVP_sha256(), NULL, pkey.get()));
382 ASSERT_TRUE(EVP_DigestSignUpdate(md_ctx.get(), kMsg, sizeof(kMsg)));
386 ASSERT_TRUE(EVP_DigestSignFinal(md_ctx.get(), NULL, &sig_len));
393 ASSERT_TRUE(EVP_DigestSignFinal(md_ctx.get(), sig.data(), &sig_len));
397 md_ctx.Reset();
399 EVP_DigestVerifyInit(md_ctx.get(), NULL, EVP_sha256(), NULL, pkey.get()));
400 ASSERT_TRUE(EVP_DigestVerifyUpdate(md_ctx.get(), kMsg, sizeof(kMsg)));
401 ASSERT_TRUE(EVP_DigestVerifyFinal(md_ctx.get(), sig.data(), sig_len));
406 bssl::ScopedEVP_MD_CTX md_ctx; local
[all...]
/external/boringssl/src/crypto/x509/
H A Dx509_cmp.c249 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);
H A Dx509_test.cc750 static bool SignatureRoundTrips(EVP_MD_CTX *md_ctx, EVP_PKEY *pkey) { argument
751 // Make a certificate like signed with |md_ctx|'s settings.'
753 if (!cert || !X509_sign_ctx(cert.get(), md_ctx)) {
758 // settings in |md_ctx| must have been serialized appropriately.
766 bssl::ScopedEVP_MD_CTX md_ctx; local
768 EVP_DigestSignInit(md_ctx.get(), NULL, EVP_sha256(), NULL, pkey.get()));
769 ASSERT_TRUE(SignatureRoundTrips(md_ctx.get(), pkey.get()));
772 md_ctx.Reset();
774 ASSERT_TRUE(EVP_DigestSignInit(md_ctx.get(), &pkey_ctx, EVP_sha256(), NULL,
778 ASSERT_TRUE(SignatureRoundTrips(md_ctx
790 bssl::ScopedEVP_MD_CTX md_ctx; local
[all...]
/external/boringssl/src/crypto/cipher_extra/
H A De_ssl3.c34 EVP_MD_CTX md_ctx; member in struct:__anon925
40 size_t md_size = EVP_MD_CTX_size(&ssl3_ctx->md_ctx);
49 EVP_MD_CTX md_ctx; local
50 EVP_MD_CTX_init(&md_ctx);
55 if (!EVP_MD_CTX_copy_ex(&md_ctx, &ssl3_ctx->md_ctx) ||
56 !EVP_DigestUpdate(&md_ctx, pad, pad_len) ||
57 !EVP_DigestUpdate(&md_ctx, ad, ad_len) ||
58 !EVP_DigestUpdate(&md_ctx, ad_extra, sizeof(ad_extra)) ||
59 !EVP_DigestUpdate(&md_ctx, i
[all...]
H A Dtls_cbc.c462 EVP_MD_CTX md_ctx; local
463 EVP_MD_CTX_init(&md_ctx);
464 if (!EVP_DigestInit_ex(&md_ctx, md, NULL /* engine */)) {
465 EVP_MD_CTX_cleanup(&md_ctx);
474 EVP_DigestUpdate(&md_ctx, hmac_pad, md_block_size);
475 EVP_DigestUpdate(&md_ctx, mac_out, md_size);
477 EVP_DigestFinal(&md_ctx, md_out, &md_out_size_u);
479 EVP_MD_CTX_cleanup(&md_ctx);
/external/wpa_supplicant_8/hostapd/src/common/
H A Ddpp.c3069 EVP_MD_CTX *md_ctx = NULL; local
3155 md_ctx = EVP_MD_CTX_create();
3156 if (!md_ctx)
3160 if (EVP_DigestSignInit(md_ctx, NULL, sign_md, NULL,
3166 if (EVP_DigestSignUpdate(md_ctx, signed1, signed1_len) != 1 ||
3167 EVP_DigestSignUpdate(md_ctx, dot, 1) != 1 ||
3168 EVP_DigestSignUpdate(md_ctx, signed2, signed2_len) != 1) {
3173 if (EVP_DigestSignFinal(md_ctx, NULL, &signature_len) != 1) {
3181 if (EVP_DigestSignFinal(md_ctx, signature, &signature_len) != 1) {
3232 EVP_MD_CTX_destroy(md_ctx);
3966 EVP_MD_CTX *md_ctx = NULL; local
[all...]
/external/wpa_supplicant_8/src/common/
H A Ddpp.c3069 EVP_MD_CTX *md_ctx = NULL; local
3155 md_ctx = EVP_MD_CTX_create();
3156 if (!md_ctx)
3160 if (EVP_DigestSignInit(md_ctx, NULL, sign_md, NULL,
3166 if (EVP_DigestSignUpdate(md_ctx, signed1, signed1_len) != 1 ||
3167 EVP_DigestSignUpdate(md_ctx, dot, 1) != 1 ||
3168 EVP_DigestSignUpdate(md_ctx, signed2, signed2_len) != 1) {
3173 if (EVP_DigestSignFinal(md_ctx, NULL, &signature_len) != 1) {
3181 if (EVP_DigestSignFinal(md_ctx, signature, &signature_len) != 1) {
3232 EVP_MD_CTX_destroy(md_ctx);
3966 EVP_MD_CTX *md_ctx = NULL; local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/common/
H A Ddpp.c3069 EVP_MD_CTX *md_ctx = NULL; local
3155 md_ctx = EVP_MD_CTX_create();
3156 if (!md_ctx)
3160 if (EVP_DigestSignInit(md_ctx, NULL, sign_md, NULL,
3166 if (EVP_DigestSignUpdate(md_ctx, signed1, signed1_len) != 1 ||
3167 EVP_DigestSignUpdate(md_ctx, dot, 1) != 1 ||
3168 EVP_DigestSignUpdate(md_ctx, signed2, signed2_len) != 1) {
3173 if (EVP_DigestSignFinal(md_ctx, NULL, &signature_len) != 1) {
3181 if (EVP_DigestSignFinal(md_ctx, signature, &signature_len) != 1) {
3232 EVP_MD_CTX_destroy(md_ctx);
3966 EVP_MD_CTX *md_ctx = NULL; local
[all...]

Completed in 374 milliseconds