Searched refs:hmac_ctx (Results 1 - 7 of 7) sorted by relevance

/external/srtp/crypto/ae_xfm/
H A Dxfm.c31 hmac_ctx_t hmac_ctx; local
52 status = hmac_init(&hmac_ctx, key, KEY_LEN);
54 status = hmac_compute(&hmac_ctx, "ENC", 3, ENC_KEY_LEN, enc_key);
57 status = hmac_init(&hmac_ctx, key, KEY_LEN);
59 status = hmac_compute(&hmac_ctx, "MAC", 3, MAC_KEY_LEN, mac_key);
79 status = hmac_init(&hmac_ctx, mac_key, MAC_KEY_LEN);
82 status = hmac_start(&hmac_ctx);
85 status = hmac_update(&hmac_ctx, clear, clear_len);
88 status = hmac_compute(&hmac_ctx, opaque, *opaque_len, TAG_LEN, auth_tag);
105 hmac_ctx_t hmac_ctx; local
191 hmac_ctx_t hmac_ctx; local
302 hmac_ctx_t hmac_ctx; local
[all...]
/external/openssh/
H A Dmac.h39 struct ssh_hmac_ctx *hmac_ctx; member in struct:sshmac
H A Dmac.c118 if ((mac->hmac_ctx = ssh_hmac_start(macalg->alg)) == NULL)
154 if (mac->hmac_ctx == NULL ||
155 ssh_hmac_init(mac->hmac_ctx, mac->key, mac->key_len) < 0)
189 if (ssh_hmac_init(mac->hmac_ctx, NULL, 0) < 0 ||
190 ssh_hmac_update(mac->hmac_ctx, b, sizeof(b)) < 0 ||
191 ssh_hmac_update(mac->hmac_ctx, data, datalen) < 0 ||
192 ssh_hmac_final(mac->hmac_ctx, u.m, sizeof(u.m)) < 0)
225 } else if (mac->hmac_ctx != NULL)
226 ssh_hmac_free(mac->hmac_ctx);
227 mac->hmac_ctx
[all...]
/external/boringssl/src/crypto/cipher/
H A De_tls.c33 HMAC_CTX hmac_ctx; member in struct:__anon432
48 HMAC_CTX_cleanup(&tls_ctx->hmac_ctx);
82 HMAC_CTX_init(&tls_ctx->hmac_ctx);
92 !HMAC_Init_ex(&tls_ctx->hmac_ctx, key, mac_key_len, md, NULL)) {
149 HMAC_CTX hmac_ctx; local
150 HMAC_CTX_init(&hmac_ctx);
151 if (!HMAC_CTX_copy_ex(&hmac_ctx, &tls_ctx->hmac_ctx) ||
152 !HMAC_Update(&hmac_ctx, ad, ad_len) ||
153 !HMAC_Update(&hmac_ctx, ad_extr
327 HMAC_CTX hmac_ctx; local
[all...]
/external/boringssl/include/openssl/
H A Dtls1.h334 * In both modes, |ctx| and |hmac_ctx| will already have been initialized with
336 * configures |hmac_ctx| with an HMAC digest and key, and configures |ctx|
355 EVP_CIPHER_CTX *ctx, HMAC_CTX *hmac_ctx,
/external/boringssl/src/include/openssl/
H A Dtls1.h334 * In both modes, |ctx| and |hmac_ctx| will already have been initialized with
336 * configures |hmac_ctx| with an HMAC digest and key, and configures |ctx|
355 EVP_CIPHER_CTX *ctx, HMAC_CTX *hmac_ctx,
/external/boringssl/src/ssl/
H A Ds3_lib.c609 EVP_CIPHER_CTX *ctx, HMAC_CTX *hmac_ctx,
607 SSL_CTX_set_tlsext_ticket_key_cb( SSL_CTX *ctx, int (*callback)(SSL *ssl, uint8_t *key_name, uint8_t *iv, EVP_CIPHER_CTX *ctx, HMAC_CTX *hmac_ctx, int encrypt)) argument

Completed in 4414 milliseconds