Searched refs:hctx (Results 1 - 15 of 15) sorted by relevance

/freebsd-11.0-release/crypto/openssl/crypto/hmac/
H A Dhm_pmeth.c77 HMAC_PKEY_CTX *hctx; local
78 hctx = OPENSSL_malloc(sizeof(HMAC_PKEY_CTX));
79 if (!hctx)
81 hctx->md = NULL;
82 hctx->ktmp.data = NULL;
83 hctx->ktmp.length = 0;
84 hctx->ktmp.flags = 0;
85 hctx->ktmp.type = V_ASN1_OCTET_STRING;
86 HMAC_CTX_init(&hctx->ctx);
88 ctx->data = hctx;
115 HMAC_PKEY_CTX *hctx = ctx->data; local
129 HMAC_PKEY_CTX *hctx = ctx->data; local
142 HMAC_PKEY_CTX *hctx = ctx->pctx->data; local
150 HMAC_PKEY_CTX *hctx = ctx->data; local
161 HMAC_PKEY_CTX *hctx = ctx->data; local
178 HMAC_PKEY_CTX *hctx = ctx->data; local
[all...]
/freebsd-11.0-release/contrib/ntp/lib/isc/
H A Dhash.c146 isc_hash_t *hctx; local
164 hctx = isc_mem_get(mctx, sizeof(isc_hash_t));
165 if (hctx == NULL)
178 result = isc_mutex_init(&hctx->lock);
185 hctx->magic = HASH_MAGIC;
186 hctx->mctx = NULL;
187 isc_mem_attach(mctx, &hctx->mctx);
188 hctx->initialized = ISC_FALSE;
189 result = isc_refcount_init(&hctx->refcnt, 1);
192 hctx
242 isc_hash_ctxinit(isc_hash_t *hctx) argument
292 isc_hash_ctxattach(isc_hash_t *hctx, isc_hash_t **hctxp) argument
302 isc_hash_t *hctx; local
336 isc_hash_t *hctx; local
362 hash_calc(isc_hash_t *hctx, const unsigned char *key, unsigned int keylen, isc_boolean_t case_sensitive) argument
387 isc_hash_ctxcalc(isc_hash_t *hctx, const unsigned char *key, unsigned int keylen, isc_boolean_t case_sensitive) argument
[all...]
/freebsd-11.0-release/contrib/ntp/lib/isc/include/isc/
H A Dhash.h86 isc_hash_t **hctx);
106 isc_hash_ctxattach(isc_hash_t *hctx, isc_hash_t **hctxp);
134 isc_hash_ctxinit(isc_hash_t *hctx);
158 isc_hash_ctxcalc(isc_hash_t *hctx, const unsigned char *key,
/freebsd-11.0-release/crypto/openssl/crypto/evp/
H A Dp5_crpt2.c89 HMAC_CTX hctx_tpl, hctx; local
119 if (!HMAC_CTX_copy(&hctx, &hctx_tpl)) {
123 if (!HMAC_Update(&hctx, salt, saltlen)
124 || !HMAC_Update(&hctx, itmp, 4)
125 || !HMAC_Final(&hctx, digtmp, NULL)) {
127 HMAC_CTX_cleanup(&hctx);
130 HMAC_CTX_cleanup(&hctx);
133 if (!HMAC_CTX_copy(&hctx, &hctx_tpl)) {
137 if (!HMAC_Update(&hctx, digtmp, mdlen)
138 || !HMAC_Final(&hctx, digtm
[all...]
/freebsd-11.0-release/crypto/heimdal/kuser/
H A Dkdigest.c275 EVP_MD_CTX *hctx, *ctx; local
291 hctx = EVP_MD_CTX_create();
292 EVP_DigestInit_ex(hctx, EVP_md4(), NULL);
295 EVP_DigestUpdate(hctx, &password[i], 1);
296 EVP_DigestUpdate(hctx, &password[len], 1);
298 EVP_DigestFinal_ex(hctx, hmd, NULL);
311 EVP_DigestInit_ex(hctx, EVP_md4(), NULL);
312 EVP_DigestUpdate(hctx, hmd, sizeof(hmd));
313 EVP_DigestFinal_ex(hctx, hmd, NULL);
353 EVP_MD_CTX_destroy(hctx);
[all...]
/freebsd-11.0-release/lib/libradius/
H A Dradlib.c191 HMAC_CTX hctx; local
239 HMAC_CTX_init(&hctx);
240 HMAC_Init(&hctx, srvp->secret,
242 HMAC_Update(&hctx, &h->in[POS_CODE],
244 HMAC_Update(&hctx, &h->out[POS_AUTH],
246 HMAC_Update(&hctx, &resp[POS_ATTRS],
248 HMAC_Final(&hctx, md, &md_len);
249 HMAC_CTX_cleanup(&hctx);
250 HMAC_cleanup(&hctx);
274 HMAC_CTX hctx; local
[all...]
/freebsd-11.0-release/contrib/libarchive/libarchive/
H A Darchive_write_set_format_zip.c142 archive_hmac_sha1_ctx hctx; member in struct:zip
575 archive_hmac_sha1_cleanup(&zip->hctx);
1062 archive_hmac_sha1_update(&zip->hctx,
1105 archive_hmac_sha1_update(&zip->hctx,
1164 archive_hmac_sha1_update(&zip->hctx,
1184 archive_hmac_sha1_final(&zip->hctx, hmac, &hmac_len);
1363 archive_hmac_sha1_cleanup(&zip->hctx);
1620 ret = archive_hmac_sha1_init(&zip->hctx, derived_key + key_len,
1650 archive_hmac_sha1_ctx hctx; local
1671 ret = archive_hmac_sha1_init(&hctx, derived_ke
[all...]
H A Darchive_read_support_format_zip.c206 archive_hmac_sha1_ctx hctx; member in struct:zip
1061 archive_hmac_sha1_final(&zip->hctx, hmac, &hmac_len);
1226 archive_hmac_sha1_update(&zip->hctx,
1403 archive_hmac_sha1_update(&zip->hctx, sp, bytes_avail);
1799 r = archive_hmac_sha1_init(&zip->hctx, derived_key + key_len, key_len);
1957 archive_hmac_sha1_cleanup(&zip->hctx);
2127 archive_hmac_sha1_cleanup(&zip->hctx);
2992 archive_hmac_sha1_cleanup(&zip->hctx);
/freebsd-11.0-release/crypto/openssl/ssl/
H A Ds3_srvr.c3391 HMAC_CTX hctx; local
3420 HMAC_CTX_init(&hctx);
3467 &hctx, 1) < 0)
3475 if (!HMAC_Init_ex(&hctx, tctx->tlsext_tick_hmac_key, 16,
3505 if (!HMAC_Update(&hctx, macstart, p - macstart))
3507 if (!HMAC_Final(&hctx, p, &hlen))
3511 HMAC_CTX_cleanup(&hctx);
3531 HMAC_CTX_cleanup(&hctx);
H A Dt1_lib.c3501 HMAC_CTX hctx; local
3506 HMAC_CTX_init(&hctx);
3511 &ctx, &hctx, 0);
3522 if (HMAC_Init_ex(&hctx, tctx->tlsext_tick_hmac_key, 16,
3534 mlen = HMAC_size(&hctx);
3540 HMAC_CTX_cleanup(&hctx);
3547 if (HMAC_Update(&hctx, etick, eticklen) <= 0
3548 || HMAC_Final(&hctx, tick_hmac, NULL) <= 0) {
3551 HMAC_CTX_cleanup(&hctx);
3601 HMAC_CTX_cleanup(&hctx);
[all...]
H A Dssl.h1086 HMAC_CTX *hctx, int enc);
/freebsd-11.0-release/contrib/binutils/bfd/
H A Drs6000-core.c208 # define CNEW_CONTEXT64(c) (c).c_flt.hctx.r64
216 # define CNEW_MSTSAVE(c) (c).c_flt.hctx.r32
/freebsd-11.0-release/sys/sys/
H A Dsocketvar.h315 void *hctx; /* hook point specific data*/ member in struct:socket_hhook_data
/freebsd-11.0-release/crypto/openssl/apps/
H A Dspeed.c1604 HMAC_CTX hctx; local
1606 HMAC_CTX_init(&hctx);
1607 HMAC_Init_ex(&hctx, (unsigned char *)"This is a key...",
1614 HMAC_Init_ex(&hctx, NULL, 0, NULL, NULL);
1615 HMAC_Update(&hctx, buf, lengths[j]);
1616 HMAC_Final(&hctx, &(hmac[0]), NULL);
1621 HMAC_CTX_cleanup(&hctx);
/freebsd-11.0-release/sys/kern/
H A Duipc_socket.c163 static int inline hhook_run_socket(struct socket *so, void *hctx, int32_t h_id);
2420 hhook_run_socket(struct socket *so, void *hctx, int32_t h_id) argument
2424 .hctx = hctx,

Completed in 285 milliseconds