Home
last modified time | relevance | path

Searched refs:ses (Results 1 – 25 of 41) sorted by relevance

12

/f-stack/freebsd/crypto/aesni/
H A Daesni.c604 ses->mlen = ses->hash_len; in aesni_cipher_setup()
753 aesni_encrypt_cbc(ses->rounds, ses->enc_schedule, in aesni_cipher_crypt()
758 aesni_decrypt_cbc(ses->rounds, ses->dec_schedule, in aesni_cipher_crypt()
764 aesni_encrypt_icm(ses->rounds, ses->enc_schedule, in aesni_cipher_crypt()
769 aesni_encrypt_xts(ses->rounds, ses->enc_schedule, in aesni_cipher_crypt()
773 aesni_decrypt_xts(ses->rounds, ses->dec_schedule, in aesni_cipher_crypt()
782 csp->csp_ivlen, ses->enc_schedule, ses->rounds); in aesni_cipher_crypt()
790 csp->csp_ivlen, ses->enc_schedule, ses->rounds)) in aesni_cipher_crypt()
799 csp->csp_ivlen, ses->enc_schedule, ses->rounds); in aesni_cipher_crypt()
807 csp->csp_ivlen, ses->enc_schedule, ses->rounds)) in aesni_cipher_crypt()
[all …]
H A Daesni_wrap.c439 aesni_cipher_setup_common(struct aesni_session *ses, in aesni_cipher_setup_common() argument
459 ses->rounds = AES128_ROUNDS; in aesni_cipher_setup_common()
462 ses->rounds = AES192_ROUNDS; in aesni_cipher_setup_common()
465 ses->rounds = AES256_ROUNDS; in aesni_cipher_setup_common()
471 aesni_set_enckey(key, ses->enc_schedule, ses->rounds); in aesni_cipher_setup_common()
473 aesni_set_deckey(ses->enc_schedule, ses->dec_schedule, in aesni_cipher_setup_common()
474 ses->rounds); in aesni_cipher_setup_common()
477 aesni_set_enckey(key + keylen, ses->xts_schedule, in aesni_cipher_setup_common()
478 ses->rounds); in aesni_cipher_setup_common()
H A Daesni.h121 void aesni_cipher_setup_common(struct aesni_session *ses,
/f-stack/freebsd/crypto/via/
H A Dpadlock_hash.c264 axf = ses->ses_axf; in padlock_hash_key_setup()
289 axf = ses->ses_axf; in padlock_authcompute()
373 ses->ses_mlen = ses->ses_axf->hashsize; in padlock_hash_setup()
378 ses->ses_ictx = malloc(ses->ses_axf->ctxsize, M_PADLOCK, in padlock_hash_setup()
380 ses->ses_octx = malloc(ses->ses_axf->ctxsize, M_PADLOCK, in padlock_hash_setup()
382 if (ses->ses_ictx == NULL || ses->ses_octx == NULL) in padlock_hash_setup()
415 if (ses->ses_ictx != NULL) { in padlock_hash_free()
416 padlock_free_ctx(ses->ses_axf, ses->ses_ictx); in padlock_hash_free()
418 ses->ses_ictx = NULL; in padlock_hash_free()
421 padlock_free_ctx(ses->ses_axf, ses->ses_octx); in padlock_hash_free()
[all …]
H A Dpadlock.c68 struct padlock_session *ses);
183 struct padlock_session *ses = NULL; in padlock_newsession() local
192 padlock_freesession_one(sc, ses); in padlock_newsession()
203 padlock_freesession_one(sc, ses); in padlock_newsession()
215 padlock_hash_free(ses); in padlock_freesession_one()
216 fpu_kern_free_ctx(ses->ses_fpu_ctx); in padlock_freesession_one()
223 struct padlock_session *ses; in padlock_freesession() local
226 padlock_freesession_one(sc, ses); in padlock_freesession()
233 struct padlock_session *ses; in padlock_process() local
272 padlock_free_ctx(ses->ses_axf, ses->ses_ictx); in padlock_process()
[all …]
H A Dpadlock_cipher.c106 cw = &ses->ses_cw; in padlock_cipher_key_setup()
112 ses->ses_ekey[i] = ntohl(ses->ses_ekey[i]); in padlock_cipher_key_setup()
113 ses->ses_dkey[i] = ntohl(ses->ses_dkey[i]); in padlock_cipher_key_setup()
116 bcopy(key, ses->ses_ekey, klen); in padlock_cipher_key_setup()
117 bcopy(key, ses->ses_dkey, klen); in padlock_cipher_key_setup()
122 padlock_cipher_setup(struct padlock_session *ses, in padlock_cipher_setup() argument
132 cw = &ses->ses_cw; in padlock_cipher_setup()
206 cw = &ses->ses_cw; in padlock_cipher_process()
216 key = ses->ses_ekey; in padlock_cipher_process()
219 key = ses->ses_dkey; in padlock_cipher_process()
[all …]
H A Dpadlock.h76 int padlock_cipher_setup(struct padlock_session *ses,
78 int padlock_cipher_process(struct padlock_session *ses,
81 int padlock_hash_setup(struct padlock_session *ses,
83 int padlock_hash_process(struct padlock_session *ses,
85 void padlock_hash_free(struct padlock_session *ses);
/f-stack/dpdk/drivers/crypto/caam_jr/
H A Dcaam_jr.c307 if (ses->cdb) in caam_jr_prep_cdb()
316 ses->cdb = cdb; in caam_jr_prep_cdb()
337 ses->dir); in caam_jr_prep_cdb()
454 ses->digest_length, ses->dir); in caam_jr_prep_cdb()
739 cdb = ses->cdb; in build_auth_only_sg()
812 cdb = ses->cdb; in build_auth_only()
893 cdb = ses->cdb; in build_cipher_only_sg()
993 cdb = ses->cdb; in build_cipher_only()
1088 cdb = ses->cdb; in build_cipher_auth_sg()
1374 if (unlikely(!ses->qp || ses->qp != qp)) { in caam_jr_enqueue_op()
[all …]
/f-stack/dpdk/drivers/crypto/dpaa_sec/
H A Ddpaa_sec.c279 ses->pdcp.hfn, in dpaa_sec_prep_pdcp_cdb()
462 ses->dir); in dpaa_sec_prep_cdb()
468 ses->dir); in dpaa_sec_prep_cdb()
474 ses->dir); in dpaa_sec_prep_cdb()
499 !ses->dir, in dpaa_sec_prep_cdb()
506 !ses->dir, in dpaa_sec_prep_cdb()
513 !ses->dir, in dpaa_sec_prep_cdb()
594 ses->digest_length, ses->dir); in dpaa_sec_prep_cdb()
1185 + ses->auth_only_len + ses->digest_length; in build_cipher_auth_gcm_sg()
1758 if (!ses) { in dpaa_sec_enqueue_burst()
[all …]
/f-stack/freebsd/crypto/blake2/
H A Dblake2_cryptodev.c201 struct blake2_session *ses; in blake2_newsession() local
206 ses = crypto_get_driver_session(cses); in blake2_newsession()
215 error = blake2_cipher_setup(ses, csp); in blake2_newsession()
227 struct blake2_session *ses; in blake2_process() local
231 error = blake2_cipher_process(ses, crp); in blake2_process()
273 blake2_cipher_setup(struct blake2_session *ses, in blake2_cipher_setup() argument
301 ses->mlen = hashlen; in blake2_cipher_setup()
303 ses->mlen = csp->csp_auth_mlen; in blake2_cipher_setup()
367 rc = blake2b_init(&bctx.sb, ses->mlen); in blake2_cipher_process()
374 rc = blake2b_final(&bctx.sb, res, ses->mlen); in blake2_cipher_process()
[all …]
/f-stack/freebsd/opencrypto/
H A Dcryptosoft.c117 sw = &ses->swcr_encdec; in swcr_encdec()
326 sw = &ses->swcr_auth; in swcr_authcompute()
402 swa = &ses->swcr_auth; in swcr_gmac()
482 swa = &ses->swcr_auth; in swcr_gcm()
657 swa = &ses->swcr_auth; in swcr_ccm_cbc_mac()
719 swa = &ses->swcr_auth; in swcr_ccm()
1009 swa = &ses->swcr_auth; in swcr_setup_auth()
1097 swa = &ses->swcr_auth; in swcr_setup_gcm()
1141 swa = &ses->swcr_auth; in swcr_setup_ccm()
1323 swa = &ses->swcr_auth; in swcr_newsession()
[all …]
H A Dcryptodev.c91 uint32_t ses; member
101 uint32_t ses; member
107 uint32_t ses; member
117 uint32_t ses; member
162 CP(*from, *to, ses); in session_op_from_32()
184 CP(*from, *to, ses); in session_op_to_32()
322 uint32_t ses; member
689 sop->ses = cse->ses; in cse_create()
708 if (cse->ses == ses) { in cse_find()
740 if (cse->ses == ses) { in cse_delete()
[all …]
H A Dcryptodev.h227 uint32_t ses; /* returns: session # */ member
244 uint32_t ses; /* returns: session # */ member
250 uint32_t ses; member
266 uint32_t ses; member
/f-stack/freebsd/crypto/armv8/
H A Darmv8_crypto.c301 keylen * 8, &ses->enc_schedule); in armv8_crypto_cipher_setup()
306 keylen * 8, &ses->dec_schedule); in armv8_crypto_cipher_setup()
316 gcm_init_v8(ses->Htable, H.u); in armv8_crypto_cipher_setup()
332 struct armv8_crypto_session *ses; in armv8_crypto_newsession() local
342 ses = crypto_get_driver_session(cses); in armv8_crypto_newsession()
352 struct armv8_crypto_session *ses; in armv8_crypto_process() local
464 armv8_aes_encrypt_cbc(&ses->enc_schedule, in armv8_crypto_cipher_process()
467 armv8_aes_decrypt_cbc(&ses->dec_schedule, in armv8_crypto_cipher_process()
472 armv8_aes_encrypt_xts(&ses->enc_schedule, in armv8_crypto_cipher_process()
487 tag, iv, ses->Htable); in armv8_crypto_cipher_process()
[all …]
/f-stack/dpdk/lib/librte_ipsec/
H A Dses.c16 if (ss->crypto.ses == NULL) in session_check()
19 if (ss->security.ses == NULL) in session_check()
48 ss->crypto.ses->opaque_data = (uintptr_t)ss; in rte_ipsec_session_prepare()
50 ss->security.ses->opaque_data = (uintptr_t)ss; in rte_ipsec_session_prepare()
H A Drte_ipsec.h69 struct rte_cryptodev_sym_session *ses; member
73 struct rte_security_session *ses; member
H A Dmeson.build4 sources = files('esp_inb.c', 'esp_outb.c', 'sa.c', 'ses.c', 'ipsec_sad.c')
H A Dmisc.h148 ss->crypto.dev_id, ss->crypto.ses, ofs, in cpu_crypto_bulk()
171 ss->crypto.ses, ofs, &symvec); in cpu_crypto_bulk()
/f-stack/dpdk/examples/ipsec-secgw/
H A Dipsec.c122 if (ips->security.ses == NULL) { in create_lookaside_session()
147 ips->crypto.ses, sa->xforms, in create_lookaside_session()
204 if (ips->security.ses == NULL) { in create_inline_session()
260 sa->action[0].conf = ips->security.ses; in create_inline_session()
385 if (ips->security.ses == NULL) { in create_inline_session()
563 ips->security.ses); in ipsec_enqueue()
586 ips->crypto.ses); in ipsec_enqueue()
595 RTE_ASSERT(ips->security.ses != NULL); in ipsec_enqueue()
600 ips->security.ctx, ips->security.ses, in ipsec_enqueue()
604 RTE_ASSERT(ips->security.ses != NULL); in ipsec_enqueue()
[all …]
H A Dipsec_process.c88 RTE_ASSERT(ss->crypto.ses == NULL); in fill_ipsec_session()
94 RTE_ASSERT(ss->security.ses == NULL); in fill_ipsec_session()
299 if (sa == NULL || (ips->crypto.ses == NULL && in ipsec_process()
/f-stack/freebsd/mips/nlm/dev/sec/
H A Dnlmsec.c210 printf("ses :%d\n",(uint32_t)cmd->ses); in print_cmd()
434 struct xlp_sec_session *ses; in xlp_sec_newsession() local
436 ses = crypto_get_driver_session(cses); in xlp_sec_newsession()
440 ses->hs_mlen = crypto_auth_hash(csp)->hashsize; in xlp_sec_newsession()
442 ses->hs_mlen = csp->csp_auth_mlen; in xlp_sec_newsession()
571 struct xlp_sec_session *ses; in xlp_sec_process() local
574 ses = crypto_get_driver_session(crp->crp_session); in xlp_sec_process()
594 cmd->ses = ses; in xlp_sec_process()
595 cmd->hash_dst_len = ses->hs_mlen; in xlp_sec_process()
H A Dnlmrsalib.h41 struct xlp_rsa_session *ses; member
H A Dnlmseclib.h93 struct xlp_sec_session *ses; member
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dcrypto_os.c144 freebsd_crypt_session_t *ses; in freebsd_zfs_crypt_done() local
146 ses = crp->crp_opaque; in freebsd_zfs_crypt_done()
147 mtx_lock(&ses->fs_lock); in freebsd_zfs_crypt_done()
148 ses->fs_done = true; in freebsd_zfs_crypt_done()
149 mtx_unlock(&ses->fs_lock); in freebsd_zfs_crypt_done()
/f-stack/freebsd/contrib/openzfs/cmd/zpool/
H A DMakefile.am56 zpool.d/ses \
100 ses \

12