| /freebsd-14.2/contrib/libarchive/libarchive/ |
| H A D | archive_digest.c | 61 ctx->valid = 0; in win_crypto_init() 72 ctx->valid = 1; in win_crypto_init() 80 ctx->valid = 0; in win_crypto_init() 95 ctx->valid = 1; in win_crypto_init() 154 MD5Init(ctx); in __archive_md5init() 178 MD5Init(ctx); in __archive_md5init() 306 if (*ctx) { in __archive_md5final() 498 if (*ctx) { in __archive_ripemd160final() 693 if (*ctx) { in __archive_sha1final() 957 if (*ctx) { in __archive_sha256final() [all …]
|
| H A D | archive_cryptor.c | 181 CCCryptorRef ref = ctx->ctx; in aes_ctr_encrypt_counter() 306 mbedtls_aes_init(&ctx->ctx); in aes_ctr_init() 317 if (mbedtls_aes_setkey_enc(&ctx->ctx, ctx->key, in aes_ctr_encrypt_counter() 343 memset(&ctx->ctx, 0, sizeof(ctx->ctx)); in aes_ctr_init() 351 aes_set_encrypt_key(&ctx->ctx, ctx->key_len, ctx->key); in aes_ctr_encrypt_counter() 352 aes_encrypt(&ctx->ctx, AES_BLOCK_SIZE, ctx->encr_buf, ctx->nonce); in aes_ctr_encrypt_counter() 356 aes128_set_encrypt_key(&ctx->ctx.c128, ctx->key); in aes_ctr_encrypt_counter() 361 aes192_set_encrypt_key(&ctx->ctx.c192, ctx->key); in aes_ctr_encrypt_counter() 366 aes256_set_encrypt_key(&ctx->ctx.c256, ctx->key); in aes_ctr_encrypt_counter() 413 r = EVP_EncryptInit_ex(ctx->ctx, ctx->type, NULL, ctx->key, NULL); in aes_ctr_encrypt_counter() [all …]
|
| /freebsd-14.2/contrib/arm-optimized-routines/math/test/rtest/ |
| H A D | wrappers.c | 17 ctx->nops = ctx->nresults = 0; in wrapper_init() 33 ctx->mpfr_ops[ctx->nops] = r; in wrapper_op_real() 34 ctx->ieee_ops[ctx->nops] = ieee; in wrapper_op_real() 35 ctx->size_ops[ctx->nops] = size; in wrapper_op_real() 43 ctx->mpc_ops[ctx->nops] = c; in wrapper_op_complex() 44 ctx->ieee_ops[ctx->nops] = ieee; in wrapper_op_complex() 45 ctx->size_ops[ctx->nops] = size; in wrapper_op_complex() 108 assert(ctx->mpfr_result || ctx->mpc_result); in wrapper_get_size() 111 assert(ctx->mpfr_ops[op] || ctx->mpc_ops[op]); in wrapper_get_size() 119 assert(ctx->mpfr_result || ctx->mpc_result); in wrapper_is_complex() [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/cmp/ |
| H A D | cmp_ctx.c | 28 if (ctx == NULL) { in OSSL_CMP_CTX_get0_trustedStore() 104 OSSL_CMP_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx)); in OSSL_CMP_CTX_new() local 125 if (!cmp_ctx_set_md(ctx, &ctx->pbm_owf, NID_sha256)) in OSSL_CMP_CTX_new() 130 if (!cmp_ctx_set_md(ctx, &ctx->digest, NID_sha256)) in OSSL_CMP_CTX_new() 136 return ctx; in OSSL_CMP_CTX_new() 375 if (ctx == NULL || ctx->log_cb == NULL) in ossl_cmp_print_log() 439 if (ctx != NULL && OSSL_CMP_LOG_ERR > ctx->log_verbosity) in OSSL_CMP_CTX_print_errors() 441 OSSL_CMP_print_errors_cb(ctx == NULL ? NULL : ctx->log_cb); in OSSL_CMP_CTX_print_errors() 771 ctx->libctx, ctx->propq); in DEFINE_OSSL_CMP_CTX_set1_up_ref() 1082 if (!cmp_ctx_set_md(ctx, &ctx->digest, val)) in OSSL_CMP_CTX_set_option() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/module/zstd/lib/common/ |
| H A D | pool.c | 87 ctx->queueHead = (ctx->queueHead + 1) % ctx->queueSize; in POOL_thread() 89 ctx->queueEmpty = ctx->queueHead == ctx->queueTail; in POOL_thread() 143 if (!ctx->threads || !ctx->queue) { POOL_free(ctx); return NULL; } in POOL_create_advanced() 182 ZSTD_free(ctx->queue, ctx->customMem); in POOL_free() 183 ZSTD_free(ctx->threads, ctx->customMem); in POOL_free() 184 ZSTD_free(ctx, ctx->customMem); in POOL_free() 210 ZSTD_free(ctx->threads, ctx->customMem); in POOL_resize_internal() 246 return ctx->queueHead == ((ctx->queueTail + 1) % ctx->queueSize); in isQueueFull() 261 ctx->queue[ctx->queueTail] = job; in POOL_add_internal() 262 ctx->queueTail = (ctx->queueTail + 1) % ctx->queueSize; in POOL_add_internal() [all …]
|
| /freebsd-14.2/sys/contrib/zstd/lib/common/ |
| H A D | pool.c | 87 ctx->queueHead = (ctx->queueHead + 1) % ctx->queueSize; in POOL_thread() 89 ctx->queueEmpty = (ctx->queueHead == ctx->queueTail); in POOL_thread() 149 if (!ctx->threads || !ctx->queue) { POOL_free(ctx); return NULL; } in POOL_create_advanced() 188 ZSTD_customFree(ctx->queue, ctx->customMem); in POOL_free() 189 ZSTD_customFree(ctx->threads, ctx->customMem); in POOL_free() 190 ZSTD_customFree(ctx, ctx->customMem); in POOL_free() 254 return ctx->queueHead == ((ctx->queueTail + 1) % ctx->queueSize); in isQueueFull() 270 ctx->queue[ctx->queueTail] = job; in POOL_add_internal() 271 ctx->queueTail = (ctx->queueTail + 1) % ctx->queueSize; in POOL_add_internal() 280 while (isQueueFull(ctx) && (!ctx->shutdown)) { in POOL_add() [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/evp/ |
| H A D | bio_b64.c | 71 if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) { in b64_new() 135 OPENSSL_assert(ctx->buf_len >= ctx->buf_off); in b64_read() 136 i = ctx->buf_len - ctx->buf_off; in b64_read() 140 memcpy(out, &(ctx->buf[ctx->buf_off]), i); in b64_read() 145 if (ctx->buf_len == ctx->buf_off) { in b64_read() 314 if (ctx->buf_off == ctx->buf_len) { in b64_read() 351 OPENSSL_assert(ctx->buf_len >= ctx->buf_off); in b64_write() 352 n = ctx->buf_len - ctx->buf_off; in b64_write() 473 ret = ctx->buf_len - ctx->buf_off; in b64_ctrl() 482 ret = ctx->buf_len - ctx->buf_off; in b64_ctrl() [all …]
|
| H A D | bio_ok.c | 189 i = ctx->buf_len - ctx->buf_off; in ok_read() 206 ctx->buf_len = ctx->buf_len_save - ctx->buf_off_save; in ok_read() 207 memmove(ctx->buf, &(ctx->buf[ctx->buf_off_save]), in ok_read() 277 n = ctx->buf_len - ctx->buf_off; in ok_write() 292 if (ctx->buf_len == ctx->buf_off) { in ok_write() 353 ret = ctx->blockout ? ctx->buf_len - ctx->buf_off : 0; in ok_ctrl() 372 ctx->buf_off = ctx->buf_len = 0; in ok_ctrl() 510 if (ctx->buf_len != ctx->buf_off) { in sig_in() 511 memmove(ctx->buf, &(ctx->buf[ctx->buf_off]), in sig_in() 514 ctx->buf_len -= ctx->buf_off; in sig_in() [all …]
|
| /freebsd-14.2/sys/crypto/siphash/ |
| H A D | siphash.c | 108 ctx->v[3] ^= le64toh(ctx->buf.b64); in SipBuf() 190 r = (ctx->v[0] ^ ctx->v[1]) ^ (ctx->v[2] ^ ctx->v[3]); in SipHash_End() 192 bzero(ctx, sizeof(*ctx)); in SipHash_End() 221 ctx->v[0] += ctx->v[1]; in SipRounds() 222 ctx->v[2] += ctx->v[3]; in SipRounds() 226 ctx->v[1] ^= ctx->v[0]; in SipRounds() 227 ctx->v[3] ^= ctx->v[2]; in SipRounds() 230 ctx->v[2] += ctx->v[1]; in SipRounds() 231 ctx->v[0] += ctx->v[3]; in SipRounds() 235 ctx->v[1] ^= ctx->v[2]; in SipRounds() [all …]
|
| /freebsd-14.2/contrib/bearssl/src/aead/ |
| H A D | eax.c | 112 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, ctx->buf, sizeof ctx->buf); in do_pad() 143 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in do_cbcmac_chunk() 146 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, data, len); in do_cbcmac_chunk() 201 memcpy(ctx->nonce, ctx->cbcmac, sizeof ctx->cbcmac); in br_eax_reset() 257 memcpy(ctx->ctr, ctx->nonce, sizeof ctx->nonce); in br_eax_reset_post_aad() 331 memcpy(ctx->ctr, ctx->nonce, sizeof ctx->nonce); in br_eax_flip() 396 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in br_eax_run() 412 (*ctx->bctx)->encrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_eax_run() 415 (*ctx->bctx)->decrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_eax_run() 425 (*ctx->bctx)->ctr(ctx->bctx, ctx->ctr, ctx->buf, sizeof ctx->buf); in br_eax_run() [all …]
|
| H A D | ccm.c | 97 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, tmp, sizeof tmp); in br_ccm_reset() 126 (*ctx->bctx)->ctr(ctx->bctx, ctx->ctr, in br_ccm_reset() 157 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in br_ccm_aad_inject() 158 ctx->buf, sizeof ctx->buf); in br_ccm_aad_inject() 166 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, dbuf, len); in br_ccm_aad_inject() 188 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in br_ccm_flip() 247 ctx->cbcmac, ctx->buf, sizeof ctx->buf); in br_ccm_run() 264 (*ctx->bctx)->decrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_ccm_run() 267 (*ctx->bctx)->encrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_ccm_run() 280 (*ctx->bctx)->ctr(ctx->bctx, ctx->ctr, in br_ccm_run() [all …]
|
| H A D | gcm.c | 128 ctx->gh(ctx->y, ctx->h, ctx->buf, 16); in br_gcm_aad_inject() 140 ctx->gh(ctx->y, ctx->h, data, dlen); in br_gcm_aad_inject() 158 ctx->gh(ctx->y, ctx->h, ctx->buf, ptr); in br_gcm_flip() 195 ctx->gh(ctx->y, ctx->h, ctx->buf, 16); in br_gcm_run() 203 ctx->gh(ctx->y, ctx->h, buf, dlen); in br_gcm_run() 205 ctx->jc = (*ctx->bctx)->run(ctx->bctx, ctx->j0_1, ctx->jc, buf, dlen); in br_gcm_run() 207 ctx->gh(ctx->y, ctx->h, buf, dlen); in br_gcm_run() 220 ctx->jc = (*ctx->bctx)->run(ctx->bctx, ctx->j0_1, in br_gcm_run() 248 ctx->gh(ctx->y, ctx->h, ctx->buf, ptr); in br_gcm_get_tag() 256 ctx->gh(ctx->y, ctx->h, tmp, 16); in br_gcm_get_tag() [all …]
|
| /freebsd-14.2/sys/crypto/skein/ |
| H A D | skein.c | 113 ctx->X[i] = Skein_Swap64(ctx->X[i]); in Skein_256_InitExt() 197 memset(&ctx->b[ctx->h.bCnt],0,SKEIN_256_BLOCK_BYTES - ctx->h.bCnt); in Skein_256_Final() 199 Skein_256_Process_Block(ctx,ctx->b,1,ctx->h.bCnt); /* process the final block */ in Skein_256_Final() 395 memset(&ctx->b[ctx->h.bCnt],0,SKEIN_512_BLOCK_BYTES - ctx->h.bCnt); in Skein_512_Final() 592 memset(&ctx->b[ctx->h.bCnt],0,SKEIN1024_BLOCK_BYTES - ctx->h.bCnt); in Skein1024_Final() 636 memset(&ctx->b[ctx->h.bCnt],0,SKEIN_256_BLOCK_BYTES - ctx->h.bCnt); in Skein_256_Final_Pad() 652 memset(&ctx->b[ctx->h.bCnt],0,SKEIN_512_BLOCK_BYTES - ctx->h.bCnt); in Skein_512_Final_Pad() 668 memset(&ctx->b[ctx->h.bCnt],0,SKEIN1024_BLOCK_BYTES - ctx->h.bCnt); in Skein1024_Final_Pad() 813 explicit_bzero(ctx, sizeof(*ctx)); in SKEIN256_Final() 821 explicit_bzero(ctx, sizeof(*ctx)); in SKEIN512_Final() [all …]
|
| /freebsd-14.2/contrib/unbound/libunbound/ |
| H A D | libunbound.c | 111 ctx = (struct ub_ctx*)calloc(1, sizeof(*ctx)); in ub_ctx_create_nopipe() 172 ctx->env->alloc = &ctx->superalloc; in ub_ctx_create_nopipe() 176 ctx->env->modstack = &ctx->mods; in ub_ctx_create_nopipe() 185 if(!ctx) in ub_ctx_create() 191 modstack_call_deinit(&ctx->mods, ctx->env); in ub_ctx_create() 192 modstack_call_destartup(&ctx->mods, ctx->env); in ub_ctx_create() 207 modstack_call_deinit(&ctx->mods, ctx->env); in ub_ctx_create() 208 modstack_call_destartup(&ctx->mods, ctx->env); in ub_ctx_create() 348 if(ctx->created_bg && ctx->pipe_pid != getpid() && ctx->thread_worker) { in ub_ctx_delete() 367 modstack_call_deinit(&ctx->mods, ctx->env); in ub_ctx_delete() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/module/icp/algs/skein/ |
| H A D | skein.c | 60 memset(ctx->X, 0, sizeof (ctx->X)); in Skein_256_Init() 94 memset(ctx->X, 0, sizeof (ctx->X)); in Skein_256_InitExt() 104 memset(ctx->X, 0, sizeof (ctx->X)); in Skein_256_InitExt() 212 memset(&ctx->b[ctx->h.bCnt], 0, in Skein_256_Final() 216 Skein_256_Process_Block(ctx, ctx->b, 1, ctx->h.bCnt); in Skein_256_Final() 447 memset(&ctx->b[ctx->h.bCnt], 0, in Skein_512_Final() 451 Skein_512_Process_Block(ctx, ctx->b, 1, ctx->h.bCnt); in Skein_512_Final() 683 Skein1024_Process_Block(ctx, ctx->b, 1, ctx->h.bCnt); in Skein1024_Final() 730 Skein_256_Process_Block(ctx, ctx->b, 1, ctx->h.bCnt); in Skein_256_Final_Pad() 751 Skein_512_Process_Block(ctx, ctx->b, 1, ctx->h.bCnt); in Skein_512_Final_Pad() [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/ |
| H A D | context.c | 65 ctx = ossl_lib_ctx_get_concrete(ctx); in ossl_lib_ctx_is_child() 113 memset(ctx, '\0', sizeof(*ctx)); in context_init() 192 OSSL_LIB_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx)); in OSSL_LIB_CTX_new() local 194 if (ctx != NULL && !context_init(ctx)) { in OSSL_LIB_CTX_new() 198 return ctx; in OSSL_LIB_CTX_new() 243 if (ctx == NULL || ossl_lib_ctx_is_default(ctx)) in OSSL_LIB_CTX_free() 303 if (ctx == NULL || ctx == get_default_context()) in ossl_lib_ctx_is_default() 351 ctx = ossl_lib_ctx_get_concrete(ctx); in ossl_lib_ctx_init_index() 373 ctx = ossl_lib_ctx_get_concrete(ctx); in ossl_lib_ctx_get_data() 443 ctx = ossl_lib_ctx_get_concrete(ctx); in ossl_lib_ctx_get_ex_data_global() [all …]
|
| /freebsd-14.2/contrib/libcbor/src/cbor/internal/ |
| H A D | builder_callbacks.c | 28 ctx->root = item; in _cbor_builder_append() 145 CHECK_RES(ctx, res); in cbor_builder_uint8_callback() 154 CHECK_RES(ctx, res); in cbor_builder_uint16_callback() 163 CHECK_RES(ctx, res); in cbor_builder_uint32_callback() 172 CHECK_RES(ctx, res); in cbor_builder_uint64_callback() 181 CHECK_RES(ctx, res); in cbor_builder_negint8_callback() 190 CHECK_RES(ctx, res); in cbor_builder_negint16_callback() 199 CHECK_RES(ctx, res); in cbor_builder_negint32_callback() 208 CHECK_RES(ctx, res); in cbor_builder_negint64_callback() 251 CHECK_RES(ctx, res); in cbor_builder_byte_string_start_callback() [all …]
|
| /freebsd-14.2/sys/crypto/openssl/amd64/ |
| H A D | ossl_aes_gcm.c | 40 memset(&ctx->gcm, 0, sizeof(ctx->gcm)); in gcm_init() 43 ctx->ops->init(ctx, key, keylen); in gcm_init() 49 (void)ctx->ops->finish(ctx, NULL, 0); in gcm_tag() 170 ossl_aes_gcm_encrypt_avx512(&ctx->aes_ks, ctx, &ctx->gcm.mres, in _gcm_encrypt_avx512() 173 ossl_aes_gcm_decrypt_avx512(&ctx->aes_ks, ctx, &ctx->gcm.mres, in _gcm_encrypt_avx512() 206 ctx->gcm.ares = ctx->gcm.mres = 0; in gcm_finish_avx512() 239 aesni_encrypt(ctx->gcm.H.c, ctx->gcm.H.c, &ctx->aes_ks); in gcm_init_aesni() 272 aesni_encrypt(ctx->gcm.Yi.c, ctx->gcm.EK0.c, &ctx->aes_ks); in gcm_setiv_aesni() 438 aesni_encrypt(ctx->gcm.Yi.c, ctx->gcm.EKi.c, &ctx->aes_ks); in gcm_encrypt_ctr32() 467 &ctx->aes_ks, ctx->gcm.Yi.c, ctx->gcm.Xi.u); in gcm_encrypt_aesni() [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/x509/ |
| H A D | x509_vfy.c | 163 return ctx->verify_cb(0, ctx); in verify_cb_cert() 180 return ctx->verify_cb(0, ctx); in verify_cb_crl() 229 ok = ctx->verify != NULL ? ctx->verify(ctx) : internal_verify(ctx); in verify_chain() 246 ok = ctx->check_policy(ctx); in verify_chain() 295 ret = DANETLS_ENABLED(ctx->dane) ? dane_verify(ctx) : verify_chain(ctx); in X509_verify_cert() 961 ok = ctx->check_crl(ctx, crl); in check_cert() 1502 skcrl = ctx->lookup_crls(ctx, nm); in get_crl_delta() 1679 return ctx->verify_cb(0, ctx); in check_policy() 1694 if (!ctx->verify_cb(2, ctx)) in check_policy() 1840 if (!ctx->verify_cb(1, ctx)) in internal_verify() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/module/zcommon/ |
| H A D | zfs_fletcher_superscalar4.c | 61 A = ctx->superscalar[0].v[0] + ctx->superscalar[0].v[1] + in fletcher_4_superscalar4_fini() 62 ctx->superscalar[0].v[2] + ctx->superscalar[0].v[3]; in fletcher_4_superscalar4_fini() 63 B = 0 - ctx->superscalar[0].v[1] - 2 * ctx->superscalar[0].v[2] - in fletcher_4_superscalar4_fini() 64 3 * ctx->superscalar[0].v[3] + 4 * ctx->superscalar[1].v[0] + in fletcher_4_superscalar4_fini() 65 4 * ctx->superscalar[1].v[1] + 4 * ctx->superscalar[1].v[2] + in fletcher_4_superscalar4_fini() 68 C = ctx->superscalar[0].v[2] + 3 * ctx->superscalar[0].v[3] - in fletcher_4_superscalar4_fini() 69 6 * ctx->superscalar[1].v[0] - 10 * ctx->superscalar[1].v[1] - in fletcher_4_superscalar4_fini() 70 14 * ctx->superscalar[1].v[2] - 18 * ctx->superscalar[1].v[3] + in fletcher_4_superscalar4_fini() 71 16 * ctx->superscalar[2].v[0] + 16 * ctx->superscalar[2].v[1] + in fletcher_4_superscalar4_fini() 72 16 * ctx->superscalar[2].v[2] + 16 * ctx->superscalar[2].v[3]; in fletcher_4_superscalar4_fini() [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/ts/ |
| H A D | ts_rsp_sign.c | 114 TS_RESP_CTX *ctx; in TS_RESP_CTX_new_ex() local 116 if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) { in TS_RESP_CTX_new_ex() 134 return ctx; in TS_RESP_CTX_new_ex() 144 if (!ctx) in TS_RESP_CTX_free() 547 if ((serial = ctx->serial_cb(ctx, ctx->serial_cb_data)) == NULL in ts_RESP_create_tst_info() 550 if (!ctx->time_cb(ctx, ctx->time_cb_data, &sec, &usec) in ts_RESP_create_tst_info() 557 if ((ctx->seconds || ctx->millis || ctx->micros) in ts_RESP_create_tst_info() 622 ok = (*ctx->extension_cb) (ctx, ext, NULL); in ts_RESP_process_extensions() 693 if ((p7 = PKCS7_new_ex(ctx->libctx, ctx->propq)) == NULL) { in ts_RESP_sign() 733 certs = ctx->flags & TS_ESS_CERT_ID_CHAIN ? ctx->certs : NULL; in ts_RESP_sign() [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/modes/ |
| H A D | ccm128.c | 30 memset(ctx->nonce.c, 0, sizeof(ctx->nonce.c)); in CRYPTO_ccm128_init() 78 (*block) (ctx->nonce.c, ctx->cmac.c, ctx->key), ctx->blocks++; in CRYPTO_ccm128_aad() 110 (*block) (ctx->cmac.c, ctx->cmac.c, ctx->key), ctx->blocks++; in CRYPTO_ccm128_aad() 152 (*block) (ctx->nonce.c, ctx->cmac.c, key), ctx->blocks++; in CRYPTO_ccm128_encrypt() 184 (*block) (ctx->cmac.c, ctx->cmac.c, key); in CRYPTO_ccm128_encrypt() 203 (*block) (ctx->cmac.c, ctx->cmac.c, key); in CRYPTO_ccm128_encrypt() 236 (*block) (ctx->nonce.c, ctx->cmac.c, key); in CRYPTO_ccm128_decrypt() 270 (*block) (ctx->cmac.c, ctx->cmac.c, key); in CRYPTO_ccm128_decrypt() 281 (*block) (ctx->cmac.c, ctx->cmac.c, key); in CRYPTO_ccm128_decrypt() 325 (*block) (ctx->nonce.c, ctx->cmac.c, key), ctx->blocks++; in CRYPTO_ccm128_encrypt_ccm64() [all …]
|
| H A D | ocb128.c | 155 memset(ctx, 0, sizeof(*ctx)); in CRYPTO_ocb128_init() 175 ctx->encrypt(ctx->l_star.c, ctx->l_star.c, ctx->keyenc); in CRYPTO_ocb128_init() 181 ocb_double(&ctx->l_dollar, ctx->l); in CRYPTO_ocb128_init() 184 ocb_double(ctx->l, ctx->l+1); in CRYPTO_ocb128_init() 185 ocb_double(ctx->l+1, ctx->l+2); in CRYPTO_ocb128_init() 186 ocb_double(ctx->l+2, ctx->l+3); in CRYPTO_ocb128_init() 187 ocb_double(ctx->l+3, ctx->l+4); in CRYPTO_ocb128_init() 244 ctx->encrypt(tmp, ktop, ctx->keyenc); in CRYPTO_ocb128_setiv() 397 ocb_block16_xor(&ctx->sess.offset, &ctx->l_star, &ctx->sess.offset); in CRYPTO_ocb128_encrypt() 400 ctx->encrypt(ctx->sess.offset.c, pad.c, ctx->keyenc); in CRYPTO_ocb128_encrypt() [all …]
|
| /freebsd-14.2/tests/sys/netmap/ |
| H A D | ctrl-api-test.c | 245 ctx->nr_mode, ctx->nr_ringid, (unsigned long long)ctx->nr_flags, in port_register() 329 req.nr_flags = ctx->nr_mode | ctx->nr_flags; in niocregif() 357 ((ctx->nr_mode | ctx->nr_flags) == req.nr_flags) && in niocregif() 450 strncpy(ctx->ifname_ext, "valeX1:Y4", sizeof(ctx->ifname_ext)); in legacy_regif_extra_bufs_pipe_vale() 465 return ctx->nr_tx_rings + ctx->nr_rx_rings; in num_registered_rings() 707 strncpy(ctx->ifname_ext, "per4", sizeof(ctx->ifname_ext)); in vale_persistent_port() 814 strncpy(ctx->ifname_ext, "", sizeof(ctx->ifname_ext)); in pools_info_get_empty_ifname() 855 strncat(ctx->ifname_ext, "{xid", sizeof(ctx->ifname_ext)); in pipe_pools_info_get() 1954 (void)ctx; in nmctx_parsing_error() 2008 (void)ctx; in binarycomp() [all …]
|
| /freebsd-14.2/sys/dev/hyperv/vmbus/ |
| H A D | vmbus_xact.c | 88 xact->x_ctx = ctx; in vmbus_xact_alloc() 122 while ((ctx->xc_flags & dtor_flag) == 0 && ctx->xc_free == NULL) in vmbus_xact_get1() 123 mtx_sleep(&ctx->xc_free, &ctx->xc_lock, 0, "gxact", 0); in vmbus_xact_get1() 128 xact = ctx->xc_free; in vmbus_xact_get1() 148 ctx = malloc(sizeof(*ctx), M_DEVBUF, M_WAITOK | M_ZERO); in vmbus_xact_ctx_create() 153 ctx->xc_free = vmbus_xact_alloc(ctx, dtag); in vmbus_xact_ctx_create() 161 return (ctx); in vmbus_xact_ctx_create() 178 ctx->xc_orphan = vmbus_xact_get1(ctx, 0); in vmbus_xact_ctx_orphan() 193 free(ctx, M_DEVBUF); in vmbus_xact_ctx_free() 230 ctx->xc_free = xact; in vmbus_xact_put() [all …]
|