| /src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| hmac.c | 42 HMAC_CTX_init(HMAC_CTX *ctx) 44 memset(ctx, 0, sizeof(*ctx)); 48 HMAC_CTX_cleanup(HMAC_CTX *ctx) 50 if (ctx->buf) { 51 memset(ctx->buf, 0, ctx->key_length); 52 free(ctx->buf); 53 ctx->buf = NULL; 55 if (ctx->opad) 155 HMAC_CTX ctx; local [all...] |
| /src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/gr/ |
| nouveau_nvkm_engine_gr_ctxnv50.c | 175 static void nv50_gr_construct_mmio(struct nvkm_grctx *ctx); 176 static void nv50_gr_construct_xfer1(struct nvkm_grctx *ctx); 177 static void nv50_gr_construct_xfer2(struct nvkm_grctx *ctx); 182 nv50_grctx_generate(struct nvkm_grctx *ctx) 184 cp_set (ctx, STATE, RUNNING); 185 cp_set (ctx, XFER_SWITCH, ENABLE); 187 cp_bra (ctx, AUTO_SAVE, PENDING, cp_setup_save); 188 cp_bra (ctx, USER_SAVE, PENDING, cp_setup_save); 190 cp_name(ctx, cp_check_load); 191 cp_bra (ctx, AUTO_LOAD, PENDING, cp_setup_auto_load) 274 struct nvkm_grctx ctx = { local [all...] |
| /src/crypto/external/apache2/openssl/dist/crypto/ |
| context.c | 59 int ossl_lib_ctx_write_lock(OSSL_LIB_CTX *ctx) 61 if ((ctx = ossl_lib_ctx_get_concrete(ctx)) == NULL) 63 return CRYPTO_THREAD_write_lock(ctx->lock); 66 int ossl_lib_ctx_read_lock(OSSL_LIB_CTX *ctx) 68 if ((ctx = ossl_lib_ctx_get_concrete(ctx)) == NULL) 70 return CRYPTO_THREAD_read_lock(ctx->lock); 73 int ossl_lib_ctx_unlock(OSSL_LIB_CTX *ctx) 75 if ((ctx = ossl_lib_ctx_get_concrete(ctx)) == NULL 446 OSSL_LIB_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx)); local 459 OSSL_LIB_CTX *ctx = OSSL_LIB_CTX_new(); local 475 OSSL_LIB_CTX *ctx = OSSL_LIB_CTX_new_from_dispatch(handle, in); local [all...] |
| LPdir_unix.c | 85 const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory) 89 if (ctx == NULL || directory == NULL) { 95 if (*ctx == NULL) { 96 *ctx = malloc(sizeof(**ctx)); 97 if (*ctx == NULL) { 101 memset(*ctx, 0, sizeof(**ctx)); 108 (*ctx)->expect_file_generations = 1; 112 (*ctx)->dir = opendir(directory) [all...] |
| /src/crypto/external/bsd/openssl/dist/providers/common/ |
| provider_ctx.c | 19 void ossl_prov_ctx_free(PROV_CTX *ctx) 21 OPENSSL_free(ctx); 24 void ossl_prov_ctx_set0_libctx(PROV_CTX *ctx, OSSL_LIB_CTX *libctx) 26 if (ctx != NULL) 27 ctx->libctx = libctx; 30 void ossl_prov_ctx_set0_handle(PROV_CTX *ctx, const OSSL_CORE_HANDLE *handle) 32 if (ctx != NULL) 33 ctx->handle = handle; 36 void ossl_prov_ctx_set0_core_bio_method(PROV_CTX *ctx, BIO_METHOD *corebiometh) 38 if (ctx != NULL [all...] |
| /src/external/bsd/wpa/dist/src/crypto/ |
| aes-encblock.c | 25 void *ctx; local 26 ctx = aes_encrypt_init(key, 16); 27 if (ctx == NULL) 29 aes_encrypt(ctx, in, out); 30 aes_encrypt_deinit(ctx);
|
| /src/crypto/external/bsd/openssl.old/dist/crypto/evp/ |
| pmeth_fn.c | 17 #define M_check_autoarg(ctx, arg, arglen, err) \ 18 if (ctx->pmeth->flags & EVP_PKEY_FLAG_AUTOARGLEN) { \ 19 size_t pksize = (size_t)EVP_PKEY_size(ctx->pkey); \ 35 int EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx) 38 if (!ctx || !ctx->pmeth || !ctx->pmeth->sign) { 43 ctx->operation = EVP_PKEY_OP_SIGN; 44 if (!ctx->pmeth->sign_init) 46 ret = ctx->pmeth->sign_init(ctx) [all...] |
| /src/sys/external/bsd/drm2/dist/drm/i915/gem/selftests/ |
| mock_context.c | 20 struct i915_gem_context *ctx; local 23 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); 24 if (!ctx) 27 kref_init(&ctx->ref); 28 INIT_LIST_HEAD(&ctx->link); 29 ctx->i915 = i915; 31 i915_gem_context_set_persistence(ctx); 33 mutex_init(&ctx->engines_mutex); 34 e = default_engines(ctx); 83 struct i915_gem_context *ctx; local 105 struct i915_gem_context *ctx; local [all...] |
| /src/sys/opencrypto/ |
| aesxcbcmac.c | 52 aesxcbc_ctx *ctx; local 55 ctx = vctx; 56 memset(ctx, 0, sizeof(*ctx)); 60 ctx->r_nr = aes_setenckey128(&r_ks, key); 63 ctx->r_nr = aes_setenckey192(&r_ks, key); 66 ctx->r_nr = aes_setenckey256(&r_ks, key); 69 aes_enc(&r_ks, k1seed, k1, ctx->r_nr); 70 aes_enc(&r_ks, k2seed, ctx->k2, ctx->r_nr) 84 aesxcbc_ctx *ctx; local 130 aesxcbc_ctx *ctx; local [all...] |
| /src/external/bsd/zstd/dist/lib/common/ |
| pool.c | 68 POOL_ctx* const ctx = (POOL_ctx*)opaque; local 69 if (!ctx) { return NULL; } 72 ZSTD_pthread_mutex_lock(&ctx->queueMutex); 74 while ( ctx->queueEmpty 75 || (ctx->numThreadsBusy >= ctx->threadLimit) ) { 76 if (ctx->shutdown) { 80 ZSTD_pthread_mutex_unlock(&ctx->queueMutex); 83 ZSTD_pthread_cond_wait(&ctx->queuePopCond, &ctx->queueMutex) 118 POOL_ctx* ctx; local [all...] |
| /src/crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/ |
| delete_sec_context.c | 44 gsskrb5_ctx ctx; local 58 ctx = (gsskrb5_ctx) *context_handle; 61 HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex); 63 krb5_auth_con_free (context, ctx->auth_context); 64 krb5_auth_con_free (context, ctx->deleg_auth_context); 65 if (ctx->kcred) 66 krb5_free_creds(context, ctx->kcred); 67 if(ctx->source) 68 krb5_free_principal (context, ctx->source); 69 if(ctx->target [all...] |
| /src/crypto/external/bsd/libsaslc/dist/src/ |
| saslc.c | 87 * @param ctx sasl context 93 saslc_init(saslc_t *ctx, const char *appname, const char *pathname) 96 /* ctx is already zeroed by saslc_alloc(). */ 97 ctx->prop = saslc__dict_create(); 101 saslc__error_set(ERR(ctx), ERROR_BADARG, 105 if ((ctx->appname = strdup(appname)) == NULL) { 106 saslc__error_set_errno(ERR(ctx), ERROR_NOMEM); 111 if ((ctx->pathname = strdup(pathname)) == NULL) { 112 saslc__error_set_errno(ERR(ctx), ERROR_NOMEM); 116 ctx->mechanisms = saslc__mech_list_create(ctx) [all...] |
| /src/crypto/external/bsd/heimdal/dist/lib/otp/ |
| otp_challenge.c | 44 otp_challenge (OtpContext *ctx, char *user, char *str, size_t len) 49 ctx->challengep = 0; 50 ctx->err = NULL; 51 ctx->user = strdup(user); 52 if (ctx->user == NULL) { 53 ctx->err = "Out of memory"; 58 ctx->err = "Cannot open database"; 61 ret = otp_get (dbm, ctx); 67 ctx->alg->name, ctx->n-1, ctx->seed) [all...] |
| /src/crypto/external/bsd/openssl/dist/crypto/evp/ |
| bio_b64.c | 69 BIO_B64_CTX *ctx; local 71 if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) { 76 ctx->cont = 1; 77 ctx->start = 1; 78 ctx->base64 = EVP_ENCODE_CTX_new(); 79 if (ctx->base64 == NULL) { 80 OPENSSL_free(ctx); 84 BIO_set_data(bi, ctx); 92 BIO_B64_CTX *ctx; local 111 BIO_B64_CTX *ctx; local 331 BIO_B64_CTX *ctx; local 448 BIO_B64_CTX *ctx; local [all...] |
| /src/external/mit/isl/dist/ |
| isl_ctx.c | 57 static void *check_non_null(isl_ctx *ctx, void *p, size_t size) 61 isl_die(ctx, isl_error_alloc, "allocation failure", return NULL); 71 int isl_ctx_next_operation(isl_ctx *ctx) 73 if (!ctx) 75 if (ctx->abort) { 76 isl_ctx_set_error(ctx, isl_error_abort); 79 if (ctx->max_operations && ctx->operations >= ctx->max_operations) 80 isl_die(ctx, isl_error_quota 198 struct isl_ctx *ctx = NULL; local [all...] |
| /src/crypto/external/apache2/openssl/dist/crypto/evp/ |
| bio_b64.c | 68 BIO_B64_CTX *ctx; local 70 if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) 73 ctx->cont = 1; 74 ctx->start = 1; 75 ctx->base64 = EVP_ENCODE_CTX_new(); 76 if (ctx->base64 == NULL) { 77 OPENSSL_free(ctx); 81 BIO_set_data(bi, ctx); 89 BIO_B64_CTX *ctx; local 117 BIO_B64_CTX *ctx; local 322 BIO_B64_CTX *ctx; local 434 BIO_B64_CTX *ctx; local [all...] |
| /src/crypto/external/apache2/openssl/dist/providers/common/ |
| provider_ctx.c | 20 void ossl_prov_ctx_free(PROV_CTX *ctx) 22 OPENSSL_free(ctx); 25 void ossl_prov_ctx_set0_libctx(PROV_CTX *ctx, OSSL_LIB_CTX *libctx) 27 if (ctx != NULL) 28 ctx->libctx = libctx; 31 void ossl_prov_ctx_set0_handle(PROV_CTX *ctx, const OSSL_CORE_HANDLE *handle) 33 if (ctx != NULL) 34 ctx->handle = handle; 37 void ossl_prov_ctx_set0_core_bio_method(PROV_CTX *ctx, BIO_METHOD *corebiometh) 39 if (ctx != NULL [all...] |
| /src/crypto/external/bsd/openssl.old/dist/crypto/ct/ |
| ct_policy.c | 30 CT_POLICY_EVAL_CTX *ctx = OPENSSL_zalloc(sizeof(CT_POLICY_EVAL_CTX)); local 32 if (ctx == NULL) { 38 ctx->epoch_time_in_ms = (uint64_t)(time(NULL) + SCT_CLOCK_DRIFT_TOLERANCE) * 41 return ctx; 44 void CT_POLICY_EVAL_CTX_free(CT_POLICY_EVAL_CTX *ctx) 46 if (ctx == NULL) 48 X509_free(ctx->cert); 49 X509_free(ctx->issuer); 50 OPENSSL_free(ctx); 53 int CT_POLICY_EVAL_CTX_set1_cert(CT_POLICY_EVAL_CTX *ctx, X509 *cert [all...] |
| /src/crypto/external/apache2/openssl/dist/crypto/sha/ |
| sha3.c | 18 void ossl_sha3_reset(KECCAK1600_CTX *ctx) 23 memset(ctx->A, 0, sizeof(ctx->A)); 24 ctx->bufsz = 0; 25 ctx->xof_state = XOF_STATE_INIT; 28 int ossl_sha3_init(KECCAK1600_CTX *ctx, unsigned char pad, size_t bitlen) 32 if (bsz <= sizeof(ctx->buf)) { 33 ossl_sha3_reset(ctx); 34 ctx->block_size = bsz; 35 ctx->md_size = bitlen / 8 [all...] |
| /src/external/bsd/libarchive/dist/libarchive/ |
| archive_digest.c | 58 win_crypto_init(Digest_CTX *ctx, const WCHAR *algo) 61 ctx->valid = 0; 63 status = BCryptOpenAlgorithmProvider(&ctx->hAlg, algo, NULL, 0); 66 status = BCryptCreateHash(ctx->hAlg, &ctx->hHash, NULL, 0, NULL, 0, 0); 68 BCryptCloseAlgorithmProvider(ctx->hAlg, 0); 72 ctx->valid = 1; 77 win_crypto_init(Digest_CTX *ctx, DWORD prov, ALG_ID algId) 80 ctx->valid = 0; 81 if (!CryptAcquireContext(&ctx->cryptProv, NULL, NULL [all...] |
| /src/crypto/external/bsd/openssl/dist/crypto/ |
| LPdir_unix.c | 85 const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory) 89 if (ctx == NULL || directory == NULL) { 95 if (*ctx == NULL) { 96 *ctx = malloc(sizeof(**ctx)); 97 if (*ctx == NULL) { 101 memset(*ctx, 0, sizeof(**ctx)); 108 (*ctx)->expect_file_generations = 1; 112 (*ctx)->dir = opendir(directory) [all...] |
| /src/crypto/external/bsd/openssl.old/dist/crypto/ |
| LPdir_unix.c | 85 const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory) 89 if (ctx == NULL || directory == NULL) { 95 if (*ctx == NULL) { 96 *ctx = malloc(sizeof(**ctx)); 97 if (*ctx == NULL) { 101 memset(*ctx, 0, sizeof(**ctx)); 108 (*ctx)->expect_file_generations = 1; 112 (*ctx)->dir = opendir(directory) [all...] |
| /src/external/bsd/zstd/dist/programs/ |
| fileio_asyncio.c | 146 static IOJob_t *AIO_IOPool_createIoJob(IOPoolCtx_t *ctx, size_t bufferSize) { 155 job->ctx = ctx; 164 static void AIO_IOPool_createThreadPool(IOPoolCtx_t* ctx, const FIO_prefs_t* prefs) { 165 ctx->threadPool = NULL; 166 ctx->threadPoolActive = 0; 168 if (ZSTD_pthread_mutex_init(&ctx->ioJobsMutex, NULL)) 173 ctx->threadPool = POOL_create(1, MAX_IO_JOBS - 2); 174 ctx->threadPoolActive = 1; 175 if (!ctx->threadPool 222 IOPoolCtx_t* const ctx = (IOPoolCtx_t *) job->ctx; local 302 IOPoolCtx_t* const ctx = (IOPoolCtx_t *)job->ctx; local 375 WritePoolCtx_t* const ctx = (WritePoolCtx_t*) job->ctx; local 383 WritePoolCtx_t* const ctx = (WritePoolCtx_t*) malloc(sizeof(WritePoolCtx_t)); local 422 ReadPoolCtx_t* const ctx = (ReadPoolCtx_t *)job->ctx; local 490 ReadPoolCtx_t* const ctx = (ReadPoolCtx_t *)job->ctx; local 548 ReadPoolCtx_t* const ctx = (ReadPoolCtx_t*) malloc(sizeof(ReadPoolCtx_t)); local [all...] |
| /src/external/mit/isl/dist/include/isl/ |
| options.h | 14 #include <isl/ctx.h> 26 isl_stat isl_options_set_bound(isl_ctx *ctx, int val); 27 int isl_options_get_bound(isl_ctx *ctx); 32 isl_stat isl_options_set_on_error(isl_ctx *ctx, int val); 33 int isl_options_get_on_error(isl_ctx *ctx); 35 isl_stat isl_options_set_gbr_only_first(isl_ctx *ctx, int val); 36 int isl_options_get_gbr_only_first(isl_ctx *ctx); 40 isl_stat isl_options_set_schedule_algorithm(isl_ctx *ctx, int val); 41 int isl_options_get_schedule_algorithm(isl_ctx *ctx); 43 isl_stat isl_options_set_pip_symmetry(isl_ctx *ctx, int val) [all...] |
| /src/crypto/external/apache2/openssl/dist/crypto/ts/ |
| ts_verify_ctx.c | 17 TS_VERIFY_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx)); local 19 return ctx; 22 void TS_VERIFY_CTX_init(TS_VERIFY_CTX *ctx) 24 OPENSSL_assert(ctx != NULL); 25 memset(ctx, 0, sizeof(*ctx)); 28 void TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx) 30 if (!ctx) 33 TS_VERIFY_CTX_cleanup(ctx); [all...] |