HomeSort by relevance Sort by last modified time
    Searched defs:md_ctx (Results 1 - 13 of 13) sorted by null

  /external/boringssl/src/include/openssl/
hmac.h 160 EVP_MD_CTX md_ctx; member in struct:hmac_ctx_st
  /external/fsverity-utils/
hash_algs.c 26 EVP_MD_CTX *md_ctx; member in struct:openssl_hash_ctx
34 if (EVP_DigestInit_ex(ctx->md_ctx, ctx->md, NULL) != 1)
44 if (EVP_DigestUpdate(ctx->md_ctx, data, size) != 1)
53 if (EVP_DigestFinal_ex(ctx->md_ctx, digest, NULL) != 1)
67 EVP_MD_CTX_destroy(ctx->md_ctx);
87 ctx->md_ctx = EVP_MD_CTX_create();
88 if (!ctx->md_ctx)
sign.c 120 EVP_MD_CTX md_ctx; local
126 EVP_MD_CTX_init(&md_ctx);
140 if (!EVP_DigestSignInit(&md_ctx, NULL, md, NULL, pkey)) {
147 if (!EVP_DigestSign(&md_ctx, sig, &sig_len, data_to_sign, data_size)) {
206 EVP_MD_CTX_cleanup(&md_ctx);
  /external/grpc-grpc/src/core/lib/security/credentials/jwt/
json_token.cc 253 EVP_MD_CTX* md_ctx = nullptr; local
259 md_ctx = EVP_MD_CTX_create();
260 if (md_ctx == nullptr) {
261 gpr_log(GPR_ERROR, "Could not create MD_CTX");
265 if (EVP_DigestSignInit(md_ctx, nullptr, md, nullptr, key) != 1) {
269 if (EVP_DigestSignUpdate(md_ctx, to_sign, strlen(to_sign)) != 1) {
273 if (EVP_DigestSignFinal(md_ctx, nullptr, &sig_len) != 1) {
278 if (EVP_DigestSignFinal(md_ctx, sig, &sig_len) != 1) {
286 if (md_ctx != nullptr) EVP_MD_CTX_destroy(md_ctx);
    [all...]
jwt_verifier.cc 603 EVP_MD_CTX* md_ctx = EVP_MD_CTX_create(); local
608 if (md_ctx == nullptr) {
612 if (EVP_DigestVerifyInit(md_ctx, nullptr, md, nullptr, key) != 1) {
616 if (EVP_DigestVerifyUpdate(md_ctx, GRPC_SLICE_START_PTR(signed_data),
621 if (EVP_DigestVerifyFinal(md_ctx, GRPC_SLICE_START_PTR(signature),
629 EVP_MD_CTX_destroy(md_ctx);
  /external/tensorflow/tensorflow/core/platform/cloud/
oauth_client_test.cc 157 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,
172 EVP_MD_CTX_destroy(md_ctx);
  /external/boringssl/src/crypto/evp/
evp_extra_test.cc 379 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/
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);
x509_test.cc 1153 bssl::ScopedEVP_MD_CTX md_ctx; local
1177 bssl::ScopedEVP_MD_CTX md_ctx; local
    [all...]
  /external/boringssl/src/crypto/cipher_extra/
tls_cbc.c 471 EVP_MD_CTX md_ctx; local
472 EVP_MD_CTX_init(&md_ctx);
473 if (!EVP_DigestInit_ex(&md_ctx, md, NULL /* engine */)) {
474 EVP_MD_CTX_cleanup(&md_ctx);
483 EVP_DigestUpdate(&md_ctx, hmac_pad, md_block_size);
484 EVP_DigestUpdate(&md_ctx, mac_out, md_size);
486 EVP_DigestFinal(&md_ctx, md_out, &md_out_size_u);
488 EVP_MD_CTX_cleanup(&md_ctx);
  /external/grpc-grpc/test/core/security/
json_token_test.cc 332 EVP_MD_CTX* md_ctx = EVP_MD_CTX_create(); local
339 GPR_ASSERT(md_ctx != nullptr);
344 EVP_DigestVerifyInit(md_ctx, nullptr, EVP_sha256(), nullptr, key) == 1);
345 GPR_ASSERT(EVP_DigestVerifyUpdate(md_ctx, signed_data, signed_data_size) ==
347 GPR_ASSERT(EVP_DigestVerifyFinal(md_ctx, GRPC_SLICE_START_PTR(sig),
352 if (md_ctx != nullptr) EVP_MD_CTX_destroy(md_ctx);
  /external/u-boot/tools/
mxsimage.c 178 EVP_MD_CTX *md_ctx; member in struct:sb_image_ctx
311 EVP_MD_CTX *md_ctx = ictx->md_ctx; local
317 EVP_DigestUpdate(md_ctx, sb_header_ptr, sizeof(*sb_header));
322 EVP_MD_CTX *md_ctx = ictx->md_ctx; local
334 EVP_DigestUpdate(md_ctx, sb_sections_header_ptr, size);
342 EVP_MD_CTX *md_ctx = ictx->md_ctx; local
346 EVP_DigestUpdate(md_ctx, &ictx->sb_dict_key, sizeof(ictx->sb_dict_key))
351 EVP_MD_CTX *md_ctx = ictx->md_ctx; local
361 EVP_MD_CTX *md_ctx = ictx->md_ctx; local
1358 EVP_MD_CTX *md_ctx; local
1658 EVP_MD_CTX *md_ctx; local
1799 EVP_MD_CTX *md_ctx = ictx->md_ctx; local
    [all...]
  /external/wpa_supplicant_8/src/common/
dpp.c 4503 EVP_MD_CTX *md_ctx = NULL; local
5473 EVP_MD_CTX *md_ctx = NULL; local
    [all...]

Completed in 923 milliseconds