Searched refs:ctx (Results 251 - 275 of 1406) sorted by relevance

<<11121314151617181920>>

/freebsd-10.0-release/contrib/unbound/libunbound/python/examples/
H A Dexample8-1.py38 ctx = unbound.ub_ctx() variable
39 ctx.resolvconf("/etc/resolv.conf")
41 status, result = ctx.resolve("nic.cz", unbound.RR_TYPE_MX, unbound.RR_CLASS_IN)
48 status, result = ctx.resolve("nic.cz", unbound.RR_TYPE_A, unbound.RR_CLASS_IN)
55 status, result = ctx.resolve("nic.cz", unbound.RR_TYPE_NS, unbound.RR_CLASS_IN)
/freebsd-10.0-release/contrib/wpa/src/crypto/
H A Daes-ctr.c27 void *ctx; local
33 ctx = aes_encrypt_init(key, 16);
34 if (ctx == NULL)
39 aes_encrypt(ctx, counter, buf);
53 aes_encrypt_deinit(ctx);
H A Daes-unwrap.c29 void *ctx; local
36 ctx = aes_decrypt_init(kek, 16);
37 if (ctx == NULL)
54 aes_decrypt(ctx, b, b);
60 aes_decrypt_deinit(ctx);
H A Daes-wrap.c29 void *ctx; local
38 ctx = aes_encrypt_init(kek, 16);
39 if (ctx == NULL)
54 aes_encrypt(ctx, b, b);
61 aes_encrypt_deinit(ctx);
H A Dcrypto_nss.c28 HASHContext *ctx; local
32 ctx = HASH_Create(type);
33 if (ctx == NULL)
36 HASH_Begin(ctx);
38 HASH_Update(ctx, addr[i], len[i]);
39 HASH_End(ctx, mac, &reslen, max_res_len);
40 HASH_Destroy(ctx);
48 PK11Context *ctx = NULL; local
88 ctx = PK11_CreateContextBySymKey(CKM_DES_ECB, CKA_ENCRYPT,
90 if (ctx
144 aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
149 aes_encrypt_deinit(void *ctx) argument
160 aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
165 aes_decrypt_deinit(void *ctx) argument
191 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
198 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
205 crypto_cipher_deinit(struct crypto_cipher *ctx) argument
[all...]
H A Dcrypto_libtomcrypt.c99 void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) argument
101 symmetric_key *skey = ctx;
106 void aes_encrypt_deinit(void *ctx) argument
108 symmetric_key *skey = ctx;
128 void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) argument
130 symmetric_key *skey = ctx;
135 void aes_decrypt_deinit(void *ctx) argument
137 symmetric_key *skey = ctx;
156 struct crypto_hash *ctx; local
158 ctx
194 crypto_hash_update(struct crypto_hash *ctx, const u8 *data, size_t len) argument
214 crypto_hash_finish(struct crypto_hash *ctx, u8 *mac, size_t *len) argument
301 struct crypto_cipher *ctx; local
350 crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, u8 *crypt, size_t len) argument
374 crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, u8 *plain, size_t len) argument
399 crypto_cipher_deinit(struct crypto_cipher *ctx) argument
[all...]
/freebsd-10.0-release/crypto/heimdal/lib/gssapi/spnego/
H A Dcontext_stubs.c76 gssspnego_ctx ctx; local
83 ctx = (gssspnego_ctx)context_handle;
85 HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex);
88 ctx->negotiated_ctx_id,
91 HEIMDAL_MUTEX_unlock(&ctx->ctx_id_mutex);
95 ctx->negotiated_ctx_id = GSS_C_NO_CONTEXT;
108 gssspnego_ctx ctx; local
113 ctx = (gssspnego_ctx)*context_handle;
115 HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex);
128 gssspnego_ctx ctx; local
154 gssspnego_ctx ctx; local
180 gssspnego_ctx ctx; local
211 gssspnego_ctx ctx; local
243 gssspnego_ctx ctx; local
395 gssspnego_ctx ctx; local
459 gssspnego_ctx ctx; local
487 gssspnego_ctx ctx; local
532 gssspnego_ctx ctx; local
742 gssspnego_ctx ctx; local
768 gssspnego_ctx ctx; local
797 gssspnego_ctx ctx; local
[all...]
H A Dinit_sec_context.c44 gss_ctx_id_t ctx = GSS_C_NO_CONTEXT; local
49 &ctx,
65 gss_delete_sec_context(&min_stat, &ctx, NULL);
203 gssspnego_ctx ctx; local
220 ctx = (gssspnego_ctx)context;
222 HEIMDAL_MUTEX_lock(&ctx->ctx_id_mutex);
224 ctx->local = 1;
226 sub = gss_import_name(&minor, &name->value, &name->type, &ctx->target_name);
234 ctx->target_name,
239 &ctx
398 gssspnego_ctx ctx; local
[all...]
/freebsd-10.0-release/lib/libgssapi/
H A Dgss_set_sec_context_option.c46 struct _gss_context *ctx; local
72 ctx = (struct _gss_context *) *context_handle;
74 if (ctx == NULL)
77 m = ctx->gc_mech;
84 &ctx->gc_ctx, object, value);
H A Dgss_init_sec_context.c75 struct _gss_context *ctx = (struct _gss_context *) *context_handle; local
95 if (!ctx) {
104 ctx = malloc(sizeof(struct _gss_context));
105 if (!ctx) {
109 memset(ctx, 0, sizeof(struct _gss_context));
110 m = ctx->gc_mech = _gss_find_mech_switch(mech_type);
112 free(ctx);
117 m = ctx->gc_mech;
118 mech_type = &ctx->gc_mech->gm_mech_oid;
128 free(ctx);
[all...]
/freebsd-10.0-release/sys/ofed/drivers/infiniband/core/
H A Ducm.c85 struct list_head file_list; /* member in file ctx list */
89 struct ib_ucm_context *ctx; member in struct:ib_ucm_event
91 struct list_head ctx_list; /* member in ctx event list */
124 struct ib_ucm_context *ctx; local
127 ctx = idr_find(&ctx_id_table, id);
128 if (!ctx)
129 ctx = ERR_PTR(-ENOENT);
130 else if (ctx->file != file)
131 ctx = ERR_PTR(-EINVAL);
133 atomic_inc(&ctx
139 ib_ucm_ctx_put(struct ib_ucm_context *ctx) argument
150 ib_ucm_cleanup_events(struct ib_ucm_context *ctx) argument
176 struct ib_ucm_context *ctx; local
357 struct ib_ucm_context *ctx; local
396 struct ib_ucm_context *ctx; local
484 struct ib_ucm_context *ctx; local
531 struct ib_ucm_context *ctx; local
576 struct ib_ucm_context *ctx; local
608 struct ib_ucm_context *ctx; local
656 struct ib_ucm_context *ctx; local
682 struct ib_ucm_context *ctx; local
750 struct ib_ucm_context *ctx; local
808 struct ib_ucm_context *ctx; local
850 struct ib_ucm_context *ctx; local
902 struct ib_ucm_context *ctx; local
951 struct ib_ucm_context *ctx; local
978 struct ib_ucm_context *ctx; local
1013 struct ib_ucm_context *ctx; local
1055 struct ib_ucm_context *ctx; local
1187 struct ib_ucm_context *ctx; local
[all...]
/freebsd-10.0-release/contrib/wpa/wpa_supplicant/
H A Dpreauth_test.c82 static void _wpa_supplicant_set_state(void *ctx, enum wpa_states state) argument
84 struct wpa_supplicant *wpa_s = ctx;
89 static enum wpa_states _wpa_supplicant_get_state(void *ctx) argument
91 struct wpa_supplicant *wpa_s = ctx;
165 static void wpa_supplicant_set_config_blob(void *ctx, argument
168 struct wpa_supplicant *wpa_s = ctx;
174 wpa_supplicant_get_config_blob(void *ctx, const char *name) argument
176 struct wpa_supplicant *wpa_s = ctx;
222 struct wpa_sm_ctx *ctx; local
227 ctx
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/jpake/
H A Djpake.h61 void JPAKE_CTX_free(JPAKE_CTX *ctx);
68 int JPAKE_STEP1_generate(JPAKE_STEP1 *send, JPAKE_CTX *ctx);
69 int JPAKE_STEP1_process(JPAKE_CTX *ctx, const JPAKE_STEP1 *received);
77 int JPAKE_STEP2_generate(JPAKE_STEP2 *send, JPAKE_CTX *ctx);
78 int JPAKE_STEP2_process(JPAKE_CTX *ctx, const JPAKE_STEP2 *received);
87 int JPAKE_STEP3A_generate(JPAKE_STEP3A *send, JPAKE_CTX *ctx);
88 int JPAKE_STEP3A_process(JPAKE_CTX *ctx, const JPAKE_STEP3A *received);
92 int JPAKE_STEP3B_generate(JPAKE_STEP3B *send, JPAKE_CTX *ctx);
93 int JPAKE_STEP3B_process(JPAKE_CTX *ctx, const JPAKE_STEP3B *received);
98 * ctx i
[all...]
/freebsd-10.0-release/lib/libmd/
H A DmdXhl.c24 MDXEnd(MDX_CTX *ctx, char *buf) argument
34 MDXFinal(digest, ctx);
53 MDX_CTX ctx; local
58 MDXInit(&ctx);
79 MDXUpdate(&ctx, buffer, i);
87 return (MDXEnd(&ctx, buf));
93 MDX_CTX ctx; local
95 MDXInit(&ctx);
96 MDXUpdate(&ctx,data,len);
97 return (MDXEnd(&ctx, bu
[all...]
/freebsd-10.0-release/lib/libc/net/
H A Dhesiod.c90 struct hesiod_p *ctx; local
93 ctx = malloc(sizeof(struct hesiod_p));
94 if (ctx) {
95 *context = ctx;
102 if (read_config_file(ctx, configname) >= 0) {
112 if (ctx->rhs)
113 free(ctx->rhs);
114 ctx->rhs = malloc(strlen(p) + 2);
115 if (ctx->rhs) {
116 *ctx
145 struct hesiod_p *ctx = (struct hesiod_p *) context; local
161 struct hesiod_p *ctx = (struct hesiod_p *) context; local
238 struct hesiod_p *ctx = (struct hesiod_p *) context; local
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/bn/
H A Dbn_sqrt.c62 BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) argument
114 BN_CTX_start(ctx);
115 A = BN_CTX_get(ctx);
116 b = BN_CTX_get(ctx);
117 q = BN_CTX_get(ctx);
118 t = BN_CTX_get(ctx);
119 x = BN_CTX_get(ctx);
120 y = BN_CTX_get(ctx);
128 if (!BN_nnmod(A, a, p, ctx)) goto end;
148 if (!BN_mod_exp(ret, A, q, p, ctx)) got
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/ec/
H A Dectest.c116 static void timings(EC_GROUP *group, int type, BN_CTX *ctx)
128 if (!EC_GROUP_get_order(group, s, ctx)) ABORT;
153 (type != TIMING_BASE_PT) ? P : NULL, (type != TIMING_BASE_PT) ? r0[i] : NULL, ctx)) ABORT;
201 BN_CTX *ctx = BN_CTX_new(); local
207 if (!EC_GROUP_get_order(group, order, ctx)) ABORT;
208 if (!EC_POINT_mul(group, Q, order, NULL, NULL, ctx)) ABORT;
212 if (!EC_GROUP_precompute_mult(group, ctx)) ABORT;
213 if (!EC_POINT_mul(group, Q, order, NULL, NULL, ctx)) ABORT;
228 if (!EC_POINT_mul(group, P, n1, NULL, NULL, ctx)) ABORT;
233 if (!EC_POINT_mul(group, Q, NULL, P, n1, ctx)) ABOR
276 BN_CTX *ctx = NULL; local
820 BN_CTX *ctx = NULL; local
1371 BN_CTX *ctx; local
[all...]
/freebsd-10.0-release/contrib/subversion/subversion/svn/
H A Dcommit-cmd.c106 svn_client_ctx_t *ctx = ((svn_cl__cmd_baton_t *) baton)->ctx;
116 ctx, FALSE, pool));
134 SVN_ERR(svn_wc_get_actual_target2(&parent_dir, &base_name, ctx->wc_ctx,
143 cfg = svn_hash_gets(ctx->config, SVN_CONFIG_CATEGORY_CONFIG);
153 SVN_ERR(svn_cl__make_log_msg_baton(&(ctx->log_msg_baton3),
155 ctx->config, pool));
163 cwnb.wrapped_func = ctx->notify_func2;
164 cwnb.wrapped_baton = ctx->notify_baton2;
167 ctx
103 svn_client_ctx_t *ctx = ((svn_cl__cmd_baton_t *) baton)->ctx; local
[all...]
H A Dcopy-cmd.c49 svn_client_ctx_t *ctx = ((svn_cl__cmd_baton_t *) baton)->ctx;
58 ctx, FALSE, pool));
145 SVN_ERR(svn_cl__notifier_mark_wc_to_repos_copy(ctx->notify_baton2));
151 SVN_ERR(svn_cl__notifier_mark_checkout(ctx->notify_baton2));
156 ctx->notify_func2 = NULL;
161 ctx->log_msg_func3 = NULL;
169 if (ctx->log_msg_func3)
170 SVN_ERR(svn_cl__make_log_msg_baton(&(ctx->log_msg_baton3), opt_state,
171 NULL, ctx
47 svn_client_ctx_t *ctx = ((svn_cl__cmd_baton_t *) baton)->ctx; local
[all...]
/freebsd-10.0-release/crypto/heimdal/lib/gssapi/mech/
H A Dgss_init_sec_context.c127 struct _gss_context *ctx = (struct _gss_context *) *context_handle; local
147 if (!ctx) {
151 ctx = malloc(sizeof(struct _gss_context));
152 if (!ctx) {
156 memset(ctx, 0, sizeof(struct _gss_context));
157 m = ctx->gc_mech = __gss_get_mechanism(mech_type);
159 free(ctx);
164 m = ctx->gc_mech;
165 mech_type = &ctx->gc_mech->gm_mech_oid;
175 free(ctx);
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/evp/
H A Devp_locl.h65 bl = ctx->cipher->block_size;\
71 static int cname##_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) \
74 cprefix##_ecb_encrypt(in + i, out + i, &((kstruct *)ctx->cipher_data)->ksched, ctx->encrypt);\
81 static int cname##_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl) \
85 cprefix##_ofb##cbits##_encrypt(in, out, (long)EVP_MAXCHUNK, &((kstruct *)ctx->cipher_data)->ksched, ctx->iv, &ctx->num);\
91 cprefix##_ofb##cbits##_encrypt(in, out, (long)inl, &((kstruct *)ctx->cipher_data)->ksched, ctx
[all...]
/freebsd-10.0-release/sys/kgssapi/
H A Dgss_accept_sec_context.c60 gss_ctx_id_t ctx = *context_handle; local
71 if (ctx)
72 args.ctx = ctx->handle;
74 args.ctx = 0;
99 if (!ctx) {
100 ctx = kgss_create_context(res.mech_type);
101 if (!ctx) {
107 *context_handle = ctx;
109 ctx
[all...]
H A Dgss_init_sec_context.c64 gss_ctx_id_t ctx = *context_handle; local
78 if (ctx)
79 args.ctx = ctx->handle;
81 args.ctx = 0;
111 if (!ctx) {
112 ctx = kgss_create_context(res.actual_mech_type);
113 if (!ctx) {
119 *context_handle = ctx;
120 ctx
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/ecdsa/
H A Decs_ossl.c92 BN_CTX *ctx = NULL; local
106 if ((ctx = BN_CTX_new()) == NULL)
113 ctx = ctx_in;
129 if (!EC_GROUP_get_order(group, order, ctx))
156 if (!EC_POINT_mul(group, tmp_point, k, NULL, NULL, ctx))
164 tmp_point, X, NULL, ctx))
174 tmp_point, X, NULL, ctx))
181 if (!BN_nnmod(r, X, order, ctx))
190 if (!BN_mod_inverse(k, k, order, ctx))
211 BN_CTX_free(ctx);
228 BN_CTX *ctx = NULL; local
357 BN_CTX *ctx; local
[all...]
/freebsd-10.0-release/contrib/ipfilter/lib/
H A Dsave_v1trap.c76 snmpv1_dup(ctx)
77 void *ctx;
79 snmpv1_opts_t *s = ctx;
87 snmpv1_print(ctx)
88 void *ctx;
90 snmpv1_opts_t *snmpv1 = ctx;
110 snmpv1_opts_t *ctx; local
123 ctx = calloc(1, sizeof(*ctx));
124 if (ctx
[all...]

Completed in 181 milliseconds

<<11121314151617181920>>