Home
last modified time | relevance | path

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

/external/openssl/crypto/hmac/
Dhm_pmeth.c77 HMAC_PKEY_CTX *hctx; in pkey_hmac_init() local
78 hctx = OPENSSL_malloc(sizeof(HMAC_PKEY_CTX)); in pkey_hmac_init()
79 if (!hctx) in pkey_hmac_init()
81 hctx->md = NULL; in pkey_hmac_init()
82 hctx->ktmp.data = NULL; in pkey_hmac_init()
83 hctx->ktmp.length = 0; in pkey_hmac_init()
84 hctx->ktmp.flags = 0; in pkey_hmac_init()
85 hctx->ktmp.type = V_ASN1_OCTET_STRING; in pkey_hmac_init()
86 HMAC_CTX_init(&hctx->ctx); in pkey_hmac_init()
88 ctx->data = hctx; in pkey_hmac_init()
[all …]
/external/openssl/crypto/evp/
Dp5_crpt2.c87 HMAC_CTX hctx; in PKCS5_PBKDF2_HMAC() local
93 HMAC_CTX_init(&hctx); in PKCS5_PBKDF2_HMAC()
113 HMAC_Init_ex(&hctx, pass, passlen, digest, NULL); in PKCS5_PBKDF2_HMAC()
114 HMAC_Update(&hctx, salt, saltlen); in PKCS5_PBKDF2_HMAC()
115 HMAC_Update(&hctx, itmp, 4); in PKCS5_PBKDF2_HMAC()
116 HMAC_Final(&hctx, digtmp, NULL); in PKCS5_PBKDF2_HMAC()
129 HMAC_CTX_cleanup(&hctx); in PKCS5_PBKDF2_HMAC()
/external/openssl/ssl/
Dt1_lib.c1651 HMAC_CTX hctx; in tls_decrypt_ticket() local
1658 HMAC_CTX_init(&hctx); in tls_decrypt_ticket()
1664 &ctx, &hctx, 0); in tls_decrypt_ticket()
1677 HMAC_Init_ex(&hctx, tctx->tlsext_tick_hmac_key, 16, in tls_decrypt_ticket()
1685 mlen = HMAC_size(&hctx); in tls_decrypt_ticket()
1693 HMAC_Update(&hctx, etick, eticklen); in tls_decrypt_ticket()
1694 HMAC_Final(&hctx, tick_hmac, NULL); in tls_decrypt_ticket()
1695 HMAC_CTX_cleanup(&hctx); in tls_decrypt_ticket()
Dd1_srvr.c1450 HMAC_CTX hctx; in dtls1_send_newsession_ticket() local
1481 HMAC_CTX_init(&hctx); in dtls1_send_newsession_ticket()
1489 &hctx, 1) < 0) in dtls1_send_newsession_ticket()
1500 HMAC_Init_ex(&hctx, tctx->tlsext_tick_hmac_key, 16, in dtls1_send_newsession_ticket()
1521 HMAC_Update(&hctx, macstart, p - macstart); in dtls1_send_newsession_ticket()
1522 HMAC_Final(&hctx, p, &hlen); in dtls1_send_newsession_ticket()
1523 HMAC_CTX_cleanup(&hctx); in dtls1_send_newsession_ticket()
Ds3_srvr.c3059 HMAC_CTX hctx; in ssl3_send_newsession_ticket() local
3094 HMAC_CTX_init(&hctx); in ssl3_send_newsession_ticket()
3102 &hctx, 1) < 0) in ssl3_send_newsession_ticket()
3113 HMAC_Init_ex(&hctx, tctx->tlsext_tick_hmac_key, 16, in ssl3_send_newsession_ticket()
3134 HMAC_Update(&hctx, macstart, p - macstart); in ssl3_send_newsession_ticket()
3135 HMAC_Final(&hctx, p, &hlen); in ssl3_send_newsession_ticket()
3136 HMAC_CTX_cleanup(&hctx); in ssl3_send_newsession_ticket()
Dssl.h850 HMAC_CTX *hctx, int enc);
/external/openssl/apps/
Dspeed.c1536 HMAC_CTX hctx; in MAIN() local
1538 HMAC_CTX_init(&hctx); in MAIN()
1539 HMAC_Init_ex(&hctx,(unsigned char *)"This is a key...", in MAIN()
1548 HMAC_Init_ex(&hctx,NULL,0,NULL,NULL); in MAIN()
1549 HMAC_Update(&hctx,buf,lengths[j]); in MAIN()
1550 HMAC_Final(&hctx,&(hmac[0]),NULL); in MAIN()
1555 HMAC_CTX_cleanup(&hctx); in MAIN()
/external/openssl/include/openssl/
Dssl.h850 HMAC_CTX *hctx, int enc);