Home
last modified time | relevance | path

Searched refs:sess (Results 1 – 25 of 63) sorted by relevance

123

/freebsd/contrib/wpa/src/eap_common/
H A Deap_eke_common.c303 int eap_eke_derive_key(struct eap_eke_session *sess, in eap_eke_derive_key() argument
314 os_memset(zeros, 0, sess->prf_len); in eap_eke_derive_key()
315 if (eap_eke_prf(sess->prf, zeros, sess->prf_len, in eap_eke_derive_key()
319 temp, sess->prf_len); in eap_eke_derive_key()
329 if (eap_eke_prfplus(sess->prf, temp, sess->prf_len, in eap_eke_derive_key()
342 int eap_eke_dhcomp(struct eap_eke_session *sess, const u8 *key, const u8 *dhpub, in eap_eke_dhcomp() argument
349 dh_len = eap_eke_dh_len(sess->dhgroup); in eap_eke_dhcomp()
359 if (sess->encr != EAP_EKE_ENCR_AES128_CBC) in eap_eke_dhcomp()
377 int eap_eke_shared_secret(struct eap_eke_session *sess, const u8 *key, in eap_eke_shared_secret() argument
386 dh = eap_eke_dh_group(sess->dhgroup); in eap_eke_shared_secret()
[all …]
H A Deap_eke_common.h81 int eap_eke_session_init(struct eap_eke_session *sess, u8 dhgroup, u8 encr,
83 void eap_eke_session_clean(struct eap_eke_session *sess);
85 int eap_eke_derive_key(struct eap_eke_session *sess,
89 int eap_eke_dhcomp(struct eap_eke_session *sess, const u8 *key, const u8 *dhpub,
91 int eap_eke_shared_secret(struct eap_eke_session *sess, const u8 *key,
93 int eap_eke_derive_ke_ki(struct eap_eke_session *sess,
96 int eap_eke_derive_ka(struct eap_eke_session *sess,
100 int eap_eke_derive_msk(struct eap_eke_session *sess,
105 int eap_eke_prot(struct eap_eke_session *sess,
108 int eap_eke_decrypt_prot(struct eap_eke_session *sess,
[all …]
/freebsd/contrib/wpa/src/radius/
H A Dradius_server.c284 void srv_log(struct radius_session *sess, const char *fmt, ...)
287 void srv_log(struct radius_session *sess, const char *fmt, ...) in srv_log() argument
304 RADIUS_DEBUG("[0x%x %s] %s", sess->sess_id, sess->nas_ip, buf); in srv_log()
307 if (sess->server->db) { in srv_log()
314 sess->sess_id, sess->nas_ip, in srv_log()
315 sess->username, buf); in srv_log()
317 if (sqlite3_exec(sess->server->db, sql, NULL, NULL, in srv_log()
320 sqlite3_errmsg(sess->server->db)); in srv_log()
373 struct radius_session *sess = client->sessions; in radius_server_get_session() local
375 while (sess) { in radius_server_get_session()
[all …]
/freebsd/crypto/openssl/crypto/modes/
H A Docb128.c229 memset(&ctx->sess, 0, sizeof(ctx->sess)); in CRYPTO_ocb128_setiv()
251 ocb_block_lshift(stretch + (bottom / 8), shift, ctx->sess.offset.c); in CRYPTO_ocb128_setiv()
254 ctx->sess.offset.c[15] |= (*(stretch + (bottom / 8) + 16) & mask) >> (8 - shift); in CRYPTO_ocb128_setiv()
272 all_num_blocks = num_blocks + ctx->sess.blocks_hashed; in CRYPTO_ocb128_aad()
275 for (i = ctx->sess.blocks_hashed + 1; i <= all_num_blocks; i++) { in CRYPTO_ocb128_aad()
282 ocb_block16_xor(&ctx->sess.offset_aad, lookup, &ctx->sess.offset_aad); in CRYPTO_ocb128_aad()
288 ocb_block16_xor(&ctx->sess.offset_aad, &tmp, &tmp); in CRYPTO_ocb128_aad()
290 ocb_block16_xor(&tmp, &ctx->sess.sum, &ctx->sess.sum); in CRYPTO_ocb128_aad()
301 ocb_block16_xor(&ctx->sess.offset_aad, &ctx->l_star, in CRYPTO_ocb128_aad()
302 &ctx->sess.offset_aad); in CRYPTO_ocb128_aad()
[all …]
/freebsd/crypto/openssh/regress/
H A Dssh-tty.sh30 sess="regress-ssh-tty$$"
74 $TMUX_TEST capture-pane -pt $sess | grep "$string" >/dev/null
90 $TMUX_TEST capture-pane -pt $sess | grep "$string" > /dev/null
101 $TMUX_TEST kill-session -t $sess 2>/dev/null
103 $TMUX_TEST has-session -t $sess >/dev/null 2>&1 || return
109 trap "$TMUX_TEST kill-session -t $sess 2>/dev/null" EXIT
116 $TMUX_TEST new-session -d -s $sess
125 $TMUX_TEST send-keys -t $sess "$CMD && printf '$MAGIC1_OCTAL\n'" ENTER
129 $TMUX_TEST send-keys -t $sess "printf '$MAGIC2_OCTAL\n'" ENTER
135 $TMUX_TEST send-keys -t $sess \
[all …]
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_eke.c29 struct eap_eke_session sess; member
104 eap_eke_session_clean(&data->sess); in eap_eke_reset()
253 if (eap_eke_derive_key(&data->sess, sm->user->password, in eap_eke_build_commit()
262 msg = eap_eke_build_msg(data, id, data->sess.dhcomp_len, in eap_eke_build_commit()
277 if (eap_eke_dh_init(data->sess.dhgroup, data->dh_priv, pub) < 0) { in eap_eke_build_commit()
284 if (eap_eke_dhcomp(&data->sess, data->key, pub, in eap_eke_build_commit()
285 wpabuf_put(msg, data->sess.dhcomp_len)) in eap_eke_build_commit()
314 plen = data->sess.pnonce_ps_len + data->sess.prf_len; in eap_eke_build_confirm()
321 if (random_get_bytes(data->nonce_s, data->sess.nonce_len)) { in eap_eke_build_confirm()
327 data->nonce_s, data->sess.nonce_len); in eap_eke_build_confirm()
[all …]
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_eke.c27 struct eap_eke_session sess; member
136 eap_eke_session_clean(&data->sess); in eap_eke_deinit()
209 eap_eke_session_clean(&data->sess); in eap_eke_build_fail()
283 if (eap_eke_session_init(&data->sess, prop[0], prop[1], prop[2], in eap_eke_process_id()
387 if (pos + data->sess.dhcomp_len > end) { in eap_eke_process_commit()
394 pos, data->sess.dhcomp_len); in eap_eke_process_commit()
396 pos += data->sess.dhcomp_len; in eap_eke_process_commit()
403 if (eap_eke_derive_key(&data->sess, password, password_len, in eap_eke_process_commit()
415 if (eap_eke_dh_init(data->sess.dhgroup, data->dh_priv, pub) < 0) { in eap_eke_process_commit()
422 if (eap_eke_shared_secret(&data->sess, key, data->dh_priv, dhcomp) < 0) in eap_eke_process_commit()
[all …]
/freebsd/crypto/openssl/engines/
H A De_devcrypto.c87 static int clean_devcrypto_session(session_op_t *sess) in clean_devcrypto_session() argument
89 if (ioctl(cfd, CIOCFSESSION, &sess->ses) < 0) { in clean_devcrypto_session()
93 memset(sess, 0, sizeof(*sess)); in clean_devcrypto_session()
108 session_op_t sess; member
214 if (cipher_ctx->sess.ses != 0 && clean_devcrypto_session(&cipher_ctx->sess) == 0) in cipher_init()
217 cipher_ctx->sess.cipher = cipher_d->devcryptoid; in cipher_init()
218 cipher_ctx->sess.keylen = cipher_d->keylen; in cipher_init()
219 cipher_ctx->sess.key = (void *)key; in cipher_init()
224 …cipher_ctx->sess.crid = (use_softdrivers == DEVCRYPTO_USE_SOFTWARE) ? CRYPTO_FLAG_SOFTWARE | CRYPT… in cipher_init()
225 ret = ioctl(cfd, CIOCGSESSION2, &cipher_ctx->sess); in cipher_init()
[all …]
/freebsd/sys/fs/procfs/
H A Dprocfs_status.c65 struct session *sess; in procfs_doprocstatus() local
80 sess = p->p_pgrp->pg_session; in procfs_doprocstatus()
81 SESS_LOCK(sess); in procfs_doprocstatus()
82 sid = sess->s_leader ? sess->s_leader->p_pid : 0; in procfs_doprocstatus()
96 if ((p->p_flag & P_CONTROLT) && (tp = sess->s_ttyp)) in procfs_doprocstatus()
102 if (sess->s_ttyvp) { in procfs_doprocstatus()
110 SESS_UNLOCK(sess); in procfs_doprocstatus()
/freebsd/sys/dev/safexcel/
H A Dsafexcel.c1383 const uint8_t *ckey, const uint8_t *akey, struct safexcel_session *sess) in safexcel_set_context() argument
1390 csp = crypto_get_params(sess->cses); in safexcel_set_context()
1396 ctrl0 = sess->alg | sess->digest | sess->hash; in safexcel_set_context()
1397 ctrl1 = sess->mode; in safexcel_set_context()
1435 data + off, data + off + sess->statelen); in safexcel_set_context()
1436 off += sess->statelen * 2; in safexcel_set_context()
1652 safexcel_instr_insert_digest(&instr, req->sess->digestlen); in safexcel_instr_eta()
1654 safexcel_instr_retrieve_digest(&instr, req->sess->digestlen); in safexcel_instr_eta()
1676 safexcel_instr_insert_digest(&instr, req->sess->digestlen); in safexcel_instr_sha_hash()
1729 ((req->sess->digestlen - 2) / 2) << 3 /* digest length */ | in safexcel_instr_ccm()
[all …]
/freebsd/tools/pkgbase/
H A Dmetalog_reader.lua86 local sess = Analysis_session(filename, verbose, w_notagdirs)
91 io.write(sess.pkg_report_full())
93 errors = print_lints(sess)
95 errors = print_lints(sess)
97 io.write(sess.pkg_report_simple(dcount, dsize, {
98 fuid and sess.pkg_issetuid or nil,
99 fgid and sess.pkg_issetgid or nil,
100 fid and sess.pkg_issetid or nil
151 function print_lints(sess)
152 local dupwarn, duperr = sess.dup_report()
[all …]
/freebsd/crypto/openssl/apps/
H A Ds_server.c199 size_t identity_len, SSL_SESSION **sess) in psk_find_session_cb() argument
208 *sess = NULL; in psk_find_session_cb()
216 *sess = psksess; in psk_find_session_cb()
245 *sess = tmpsess; in psk_find_session_cb()
3937 simple_ssl_session *sess = app_malloc(sizeof(*sess), "get session"); in add_session() local
3940 SSL_SESSION_get_id(session, &sess->idlen); in add_session()
3941 sess->derlen = i2d_SSL_SESSION(session, NULL); in add_session()
3942 if (sess->derlen < 0) { in add_session()
3944 OPENSSL_free(sess); in add_session()
3948 sess->id = OPENSSL_memdup(SSL_SESSION_get_id(session, NULL), sess->idlen); in add_session()
[all …]
/freebsd/crypto/openssl/ssl/statem/
H A Dextensions_srvr.c1279 SSL_SESSION **sess) in tls_get_stateful_ticket() argument
1302 *sess = tmpsess; in tls_get_stateful_ticket()
1312 SSL_SESSION *sess = NULL; in tls_parse_ctos_psk() local
1351 &sess)) { in tls_parse_ctos_psk()
1357 if (sess == NULL in tls_parse_ctos_psk()
1390 sess = SSL_SESSION_new(); in tls_parse_ctos_psk()
1391 if (sess == NULL in tls_parse_ctos_psk()
1392 || !SSL_SESSION_set1_master_key(sess, pskdata, in tls_parse_ctos_psk()
1394 || !SSL_SESSION_set_cipher(sess, cipher) in tls_parse_ctos_psk()
1395 || !SSL_SESSION_set_protocol_version(sess, in tls_parse_ctos_psk()
[all...]
/freebsd/lib/libkvm/
H A Dkvm_proc.c111 struct session sess; in kvm_proclist() local
273 if (KREAD(kd, (u_long)pgrp.pg_session, &sess)) { in kvm_proclist()
278 kp->ki_sid = sess.s_sid; in kvm_proclist()
279 (void)memcpy(kp->ki_login, sess.s_login, in kvm_proclist()
281 if ((proc.p_flag & P_CONTROLT) && sess.s_ttyp != NULL) { in kvm_proclist()
282 if (KREAD(kd, (u_long)sess.s_ttyp, &tty)) { in kvm_proclist()
284 "can't read tty at %p", sess.s_ttyp); in kvm_proclist()
311 if (KREAD(kd, (u_long)tty.t_session, &sess)) { in kvm_proclist()
317 kp->ki_tsid = sess.s_sid; in kvm_proclist()
401 kp->ki_kiflag = sess.s_ttyvp ? KI_CTTY : 0; in kvm_proclist()
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dcrypto_os.c158 freebsd_crypt_freesession(freebsd_crypt_session_t *sess) in freebsd_crypt_freesession() argument
160 mtx_destroy(&sess->fs_lock); in freebsd_crypt_freesession()
161 crypto_freesession(sess->fs_sid); in freebsd_crypt_freesession()
162 memset(sess, 0, sizeof (*sess)); in freebsd_crypt_freesession()
/freebsd/crypto/openssl/test/
H A Dsslapitest.c76 size_t *idlen, SSL_SESSION **sess);
78 size_t identity_len, SSL_SESSION **sess);
443 SSL_SESSION *sess = NULL; in test_keylog_no_master_key() local
504 sess = SSL_get1_session(clientssl); in test_keylog_no_master_key()
519 || !TEST_true(SSL_set_session(clientssl, sess)) in test_keylog_no_master_key()
545 SSL_SESSION_free(sess); in test_keylog_no_master_key()
865 SSL_SESSION *sess = NULL, *sesspre, *sesspost; in test_ccs_change_cipher() local
886 || !TEST_ptr(sess = SSL_get1_session(clientssl))) in test_ccs_change_cipher()
896 || !TEST_true(SSL_set_session(clientssl, sess)) in test_ccs_change_cipher()
961 SSL_SESSION_free(sess); in test_ccs_change_cipher()
2043 new_session_cb(SSL * ssl,SSL_SESSION * sess) new_session_cb() argument
2054 remove_session_cb(SSL_CTX * ctx,SSL_SESSION * sess) remove_session_cb() argument
2446 new_cachesession_cb(SSL * ssl,SSL_SESSION * sess) new_cachesession_cb() argument
3274 use_session_cb(SSL * ssl,const EVP_MD * md,const unsigned char ** id,size_t * idlen,SSL_SESSION ** sess) use_session_cb() argument
3335 find_session_cb(SSL * ssl,const unsigned char * identity,size_t identity_len,SSL_SESSION ** sess) find_session_cb() argument
3401 sub_session_time(SSL_SESSION * sess) sub_session_time() argument
3413 SSL_SESSION *sess = SSL_get0_session(s); ed_gen_cb() local
3434 setupearly_data_test(SSL_CTX ** cctx,SSL_CTX ** sctx,SSL ** clientssl,SSL ** serverssl,SSL_SESSION ** sess,int idx,size_t mdsize) setupearly_data_test() argument
3561 SSL_SESSION *sess = NULL; test_early_data_read_write() local
3806 SSL_SESSION *sess = NULL; test_early_data_replay_int() local
3963 SSL_SESSION *sess = NULL; early_data_skip_helper() local
4189 SSL_SESSION *sess = NULL; test_early_data_not_sent() local
4272 SSL_SESSION *sess = NULL; test_early_data_psk() local
4463 SSL_SESSION *sess = NULL; test_early_data_psk_with_all_ciphers() local
4599 SSL_SESSION *sess = NULL; test_early_data_not_expected() local
6207 SSL_SESSION *sess = NULL; test_custom_exts() local
6769 SSL_SESSION *sess = NULL; test_export_key_mat_early() local
8129 SSL_SESSION *sess = NULL; test_info_callback() local
8862 SSL_SESSION *sess; test_shutdown() local
9737 SSL_SESSION *sess = NULL; test_session_cache_overflow() local
9871 SSL_SESSION *sess = NULL; test_servername() local
12235 SSL_SESSION *sess; global() member
12292 SSL_SESSION *sess = NULL; test_multi_resume() local
13176 SSL_SESSION *sess = NULL; test_quic_tls_early_data() local
[all...]
H A Dtls13ccstest.c253 SSL_SESSION *sess = NULL; in test_tls13ccs() local
308 sess = SSL_get1_session(cssl); in test_tls13ccs()
309 if (!TEST_ptr(sess)) in test_tls13ccs()
347 if (!TEST_true(SSL_set_session(cssl, sess)) in test_tls13ccs()
480 SSL_SESSION_free(sess); in test_tls13ccs()
H A Ddtlstest.c193 SSL_SESSION *sess = NULL; in test_dtls_drop_records() local
224 || !TEST_ptr(sess = SSL_get1_session(clientssl))) in test_dtls_drop_records()
254 if (sess != NULL) { in test_dtls_drop_records()
255 if (!TEST_true(SSL_set_session(clientssl, sess))) in test_dtls_drop_records()
284 if (sess != NULL && !TEST_true(SSL_session_reused(clientssl))) in test_dtls_drop_records()
295 SSL_SESSION_free(sess); in test_dtls_drop_records()
H A Dbad_dtls_test.c523 SSL_SESSION *sess = NULL; in send_record()
541 sess = client_session(); in send_record()
542 if (!TEST_ptr(sess)) in send_record()
563 || !TEST_true(SSL_set_session(con, sess))) in send_finished()
652 SSL_SESSION_free(sess);
670 SSL_SESSION *sess = NULL; test_bad_dtls() local
H A Dclienthellotest.c65 SSL_SESSION *sess = NULL; in test_client_hello() local
208 SSL_SESSION_free(sess); in test_client_hello()
/freebsd/crypto/openssl/ssl/
H A Dssl_sess.c76 SSL_SESSION *sess; in SSL_get1_session() local
85 sess = SSL_get_session(ssl); in SSL_get1_session()
86 if (sess != NULL && !SSL_SESSION_up_ref(sess)) in SSL_get1_session()
87 sess = NULL; in SSL_get1_session()
89 return sess; in SSL_get1_session()
281 SSL_SESSION *sess = ssl_session_dup_intern(src, ticket); in ssl_session_dup() local
283 if (sess != NULL) in ssl_session_dup()
284 sess->not_resumable = 0; in ssl_session_dup()
286 return sess; in ssl_session_dup()
1349 int (*cb)(struct ssl_st *ssl, SSL_SESSION *sess)) in SSL_CTX_sess_set_new_cb() argument
[all …]
/freebsd/contrib/wpa/src/crypto/
H A Dtls_wolfssl.c183 static void remove_session_cb(WOLFSSL_CTX *ctx, WOLFSSL_SESSION *sess) in remove_session_cb() argument
187 buf = wolfSSL_SESSION_get_ex_data(sess, tls_ex_idx_session); in remove_session_cb()
192 buf, sess); in remove_session_cb()
195 wolfSSL_SESSION_set_ex_data(sess, tls_ex_idx_session, NULL); in remove_session_cb()
2216 WOLFSSL_SESSION *sess; in tls_connection_remove_session() local
2218 sess = wolfSSL_get_session(conn->ssl); in tls_connection_remove_session()
2219 if (!sess) in tls_connection_remove_session()
2222 wolfSSL_SSL_SESSION_set_timeout(sess, 0); in tls_connection_remove_session()
2264 WOLFSSL_SESSION *sess; in tls_connection_set_success_data() local
2269 sess = wolfSSL_get_session(conn->ssl); in tls_connection_set_success_data()
[all …]
/freebsd/crypto/openssl/test/quic-openssl-docker/hq-interop/
H A Dquic-hq-interop.c364 static int cache_new_session(struct ssl_st *ssl, SSL_SESSION *sess) in cache_new_session() argument
371 if (!PEM_write_bio_SSL_SESSION(session_bio, sess)) in cache_new_session()
400 SSL_SESSION *sess = NULL; in setup_session_cache() local
427 if (PEM_read_bio_SSL_SESSION(session_bio, &sess, NULL, NULL)) { in setup_session_cache()
429 if (!SSL_set_session(ssl, sess)) in setup_session_cache()
/freebsd/crypto/openssl/doc/man3/
H A DSSL_CTX_sess_set_get_cb.pod22 SSL_SESSION *sess);
24 SSL_SESSION *sess);
60 ssl session B<sess>.
87 the B<ctx> and the ssl session B<sess>. It does not provide any feedback.
/freebsd/crypto/openssl/test/helpers/
H A Dssltestlib.c1454 SSL_SESSION *sess = NULL; in create_a_psk() local
1468 sess = SSL_SESSION_new(); in create_a_psk()
1469 if (!TEST_ptr(sess) in create_a_psk()
1471 || !TEST_true(SSL_SESSION_set1_master_key(sess, key, mdsize)) in create_a_psk()
1472 || !TEST_true(SSL_SESSION_set_cipher(sess, cipher)) in create_a_psk()
1474 SSL_SESSION_set_protocol_version(sess, in create_a_psk()
1476 SSL_SESSION_free(sess); in create_a_psk()
1479 return sess; in create_a_psk()

123