Home
last modified time | relevance | path

Searched refs:hmac_ctx (Results 1 – 8 of 8) sorted by relevance

/external/boringssl/src/crypto/cipher_extra/
De_tls.c35 HMAC_CTX hmac_ctx; member
60 HMAC_CTX_cleanup(&tls_ctx->hmac_ctx); in aead_tls_cleanup()
85 HMAC_CTX_init(&tls_ctx->hmac_ctx); in aead_tls_init()
94 !HMAC_Init_ex(&tls_ctx->hmac_ctx, key, mac_key_len, md, NULL)) { in aead_tls_init()
108 const size_t hmac_len = HMAC_size(&tls_ctx->hmac_ctx); in aead_tls_tag_len()
169 if (!HMAC_Init_ex(&tls_ctx->hmac_ctx, NULL, 0, NULL, NULL) || in aead_tls_seal_scatter()
170 !HMAC_Update(&tls_ctx->hmac_ctx, ad, ad_len) || in aead_tls_seal_scatter()
171 !HMAC_Update(&tls_ctx->hmac_ctx, ad_extra, sizeof(ad_extra)) || in aead_tls_seal_scatter()
172 !HMAC_Update(&tls_ctx->hmac_ctx, in, in_len) || in aead_tls_seal_scatter()
173 !HMAC_Final(&tls_ctx->hmac_ctx, mac, &mac_len)) { in aead_tls_seal_scatter()
[all …]
/external/openssh/
Dmac.c120 if ((mac->hmac_ctx = ssh_hmac_start(macalg->alg)) == NULL) in mac_setup_by_alg()
156 if (mac->hmac_ctx == NULL || in mac_init()
157 ssh_hmac_init(mac->hmac_ctx, mac->key, mac->key_len) < 0) in mac_init()
192 if (ssh_hmac_init(mac->hmac_ctx, NULL, 0) < 0 || in mac_compute()
193 ssh_hmac_update(mac->hmac_ctx, b, sizeof(b)) < 0 || in mac_compute()
194 ssh_hmac_update(mac->hmac_ctx, data, datalen) < 0 || in mac_compute()
195 ssh_hmac_final(mac->hmac_ctx, u.m, sizeof(u.m)) < 0) in mac_compute()
246 } else if (mac->hmac_ctx != NULL) in mac_clear()
247 ssh_hmac_free(mac->hmac_ctx); in mac_clear()
248 mac->hmac_ctx = NULL; in mac_clear()
Dmac.h39 struct ssh_hmac_ctx *hmac_ctx; member
/external/boringssl/src/ssl/
Dt1_lib.cc3432 Array<uint8_t> *out, EVP_CIPHER_CTX *cipher_ctx, HMAC_CTX *hmac_ctx, in decrypt_ticket_with_cipher_ctx() argument
3438 size_t mac_len = HMAC_size(hmac_ctx); in decrypt_ticket_with_cipher_ctx()
3446 HMAC_Update(hmac_ctx, ticket.data(), ticket.size()); in decrypt_ticket_with_cipher_ctx()
3447 HMAC_Final(hmac_ctx, mac, NULL); in decrypt_ticket_with_cipher_ctx()
3490 ScopedHMAC_CTX hmac_ctx; in ssl_decrypt_ticket_with_cb() local
3498 const_cast<uint8_t *>(iv.data()), cipher_ctx.get(), hmac_ctx.get(), in ssl_decrypt_ticket_with_cb()
3509 return decrypt_ticket_with_cipher_ctx(out, cipher_ctx.get(), hmac_ctx.get(), in ssl_decrypt_ticket_with_cb()
3530 ScopedHMAC_CTX hmac_ctx; in ssl_decrypt_ticket_with_ticket_keys() local
3541 if (!HMAC_Init_ex(hmac_ctx.get(), key->hmac_key, sizeof(key->hmac_key), in ssl_decrypt_ticket_with_ticket_keys()
3548 return decrypt_ticket_with_cipher_ctx(out, cipher_ctx.get(), hmac_ctx.get(), in ssl_decrypt_ticket_with_ticket_keys()
Dssl_test.cc2248 EVP_CIPHER_CTX *ctx, HMAC_CTX *hmac_ctx, in RenewTicketCallback() argument
2259 if (!HMAC_Init_ex(hmac_ctx, kZeros, sizeof(kZeros), EVP_sha256(), NULL) || in RenewTicketCallback()
Dssl_lib.cc1858 EVP_CIPHER_CTX *ctx, HMAC_CTX *hmac_ctx, in SSL_CTX_set_tlsext_ticket_key_cb() argument
/external/boringssl/src/ssl/test/
Dtest_config.cc518 EVP_CIPHER_CTX *ctx, HMAC_CTX *hmac_ctx, in TicketKeyCallback() argument
539 if (!HMAC_Init_ex(hmac_ctx, kZeros, sizeof(kZeros), EVP_sha256(), NULL) || in TicketKeyCallback()
/external/boringssl/src/include/openssl/
Dssl.h2103 EVP_CIPHER_CTX *ctx, HMAC_CTX *hmac_ctx,