Searched refs:ses (Results 1 - 25 of 55) sorted by relevance

123

/freebsd-current/sys/dev/glxsb/
H A Dglxsb_hash.c50 glxsb_hash_key_setup(struct glxsb_session *ses, const char *key, int klen) argument
54 axf = ses->ses_axf;
55 hmac_init_ipad(axf, key, klen, ses->ses_ictx);
56 hmac_init_opad(axf, key, klen, ses->ses_octx);
63 glxsb_authcompute(struct glxsb_session *ses, struct cryptop *crp) argument
70 axf = ses->ses_axf;
71 bcopy(ses->ses_ictx, &ctx, axf->ctxsize);
83 bcopy(ses->ses_octx, &ctx, axf->ctxsize);
92 crypto_copydata(crp, crp->crp_digest_start, ses->ses_mlen,
94 if (timingsafe_bcmp(hash, hash2, ses
105 glxsb_hash_setup(struct glxsb_session *ses, const struct crypto_session_params *csp) argument
132 glxsb_hash_process(struct glxsb_session *ses, const struct crypto_session_params *csp, struct cryptop *crp) argument
146 glxsb_hash_free(struct glxsb_session *ses) argument
[all...]
H A Dglxsb.h44 int glxsb_hash_setup(struct glxsb_session *ses,
47 int glxsb_hash_process(struct glxsb_session *ses,
50 void glxsb_hash_free(struct glxsb_session *ses);
/freebsd-current/sys/crypto/via/
H A Dpadlock_cipher.c97 padlock_cipher_key_setup(struct padlock_session *ses, const void *key, int klen) argument
102 cw = &ses->ses_cw;
105 rijndaelKeySetupEnc(ses->ses_ekey, key, klen * 8);
106 rijndaelKeySetupDec(ses->ses_dkey, key, klen * 8);
108 ses->ses_ekey[i] = ntohl(ses->ses_ekey[i]);
109 ses->ses_dkey[i] = ntohl(ses->ses_dkey[i]);
112 bcopy(key, ses->ses_ekey, klen);
113 bcopy(key, ses
118 padlock_cipher_setup(struct padlock_session *ses, const struct crypto_session_params *csp) argument
181 padlock_cipher_process(struct padlock_session *ses, struct cryptop *crp, const struct crypto_session_params *csp) argument
[all...]
H A Dpadlock.c65 static void padlock_freesession_one(struct padlock_session *ses);
179 struct padlock_session *ses; local
183 ses = crypto_get_driver_session(cses);
185 error = padlock_cipher_setup(ses, csp);
187 padlock_freesession_one(ses);
194 error = padlock_hash_setup(ses, csp);
197 padlock_freesession_one(ses);
206 padlock_freesession_one(struct padlock_session *ses) argument
209 padlock_hash_free(ses);
215 struct padlock_session *ses; local
225 struct padlock_session *ses; local
[all...]
H A Dpadlock_hash.c253 padlock_hash_key_setup(struct padlock_session *ses, const uint8_t *key, argument
258 axf = ses->ses_axf;
265 padlock_free_ctx(axf, ses->ses_ictx);
266 padlock_free_ctx(axf, ses->ses_octx);
268 hmac_init_ipad(axf, key, klen, ses->ses_ictx);
269 hmac_init_opad(axf, key, klen, ses->ses_octx);
276 padlock_authcompute(struct padlock_session *ses, struct cryptop *crp) argument
283 axf = ses->ses_axf;
285 padlock_copy_ctx(axf, ses->ses_ictx, &ctx);
300 padlock_copy_ctx(axf, ses
361 padlock_hash_setup(struct padlock_session *ses, const struct crypto_session_params *csp) argument
388 padlock_hash_process(struct padlock_session *ses, struct cryptop *crp, const struct crypto_session_params *csp) argument
406 padlock_hash_free(struct padlock_session *ses) argument
[all...]
H A Dpadlock.h71 int padlock_cipher_setup(struct padlock_session *ses,
73 int padlock_cipher_process(struct padlock_session *ses,
76 int padlock_hash_setup(struct padlock_session *ses,
78 int padlock_hash_process(struct padlock_session *ses,
80 void padlock_hash_free(struct padlock_session *ses);
/freebsd-current/tests/sys/ses/
H A DMakefile3 TESTSDIR= ${TESTSBASE}/sys/ses
/freebsd-current/share/examples/ses/
H A DMakefile35 FILESDIR=${SHAREDIR}/examples/ses
/freebsd-current/sys/crypto/aesni/
H A Daesni.c69 static int aesni_cipher_setup(struct aesni_session *ses,
71 static int aesni_cipher_process(struct aesni_session *ses, struct cryptop *crp);
72 static int aesni_cipher_crypt(struct aesni_session *ses, struct cryptop *crp,
74 static int aesni_cipher_mac(struct aesni_session *ses, struct cryptop *crp,
286 struct aesni_session *ses; local
289 ses = crypto_get_driver_session(cses);
300 error = aesni_cipher_setup(ses, csp);
312 struct aesni_session *ses; local
315 ses = crypto_get_driver_session(crp->crp_session);
317 error = aesni_cipher_process(ses, cr
484 aesni_authprepare(struct aesni_session *ses, int klen) argument
495 aesni_cipher_setup(struct aesni_session *ses, const struct crypto_session_params *csp) argument
572 aesni_cipher_process(struct aesni_session *ses, struct cryptop *crp) argument
616 aesni_cipher_crypt(struct aesni_session *ses, struct cryptop *crp, const struct crypto_session_params *csp) argument
771 aesni_cipher_mac(struct aesni_session *ses, struct cryptop *crp, const struct crypto_session_params *csp) argument
[all...]
/freebsd-current/sys/crypto/blake2/
H A Dblake2_cryptodev.c52 static int blake2_cipher_setup(struct blake2_session *ses,
54 static int blake2_cipher_process(struct blake2_session *ses,
132 struct blake2_session *ses; local
135 ses = crypto_get_driver_session(cses);
137 error = blake2_cipher_setup(ses, csp);
149 struct blake2_session *ses; local
152 ses = crypto_get_driver_session(crp->crp_session);
153 error = blake2_cipher_process(ses, crp);
194 blake2_cipher_setup(struct blake2_session *ses, argument
222 ses
251 blake2_cipher_process(struct blake2_session *ses, struct cryptop *crp) argument
[all...]
/freebsd-current/sys/crypto/armv8/
H A Darmv8_crypto.c216 armv8_crypto_cipher_setup(struct armv8_crypto_session *ses, argument
236 keylen * 8, &ses->enc_schedule);
241 keylen * 8, &ses->dec_schedule);
244 aes_v8_set_encrypt_key(key + keylen, keylen * 8, &ses->xts_schedule);
248 aes_v8_encrypt(H.c, H.c, &ses->enc_schedule);
251 gcm_init_v8(ses->Htable, H.u);
263 struct armv8_crypto_session *ses; local
266 ses = crypto_get_driver_session(cses);
267 error = armv8_crypto_cipher_setup(ses, csp, csp->csp_cipher_key,
275 struct armv8_crypto_session *ses; local
303 armv8_crypto_cipher_process(struct armv8_crypto_session *ses, struct cryptop *crp) argument
[all...]
/freebsd-current/share/examples/ses/getencstat/
H A DMakefile37 FILESDIR=${SHAREDIR}/examples/ses/${PROG}
/freebsd-current/share/examples/ses/setencstat/
H A DMakefile37 FILESDIR=${SHAREDIR}/examples/ses/${PROG}
/freebsd-current/share/examples/ses/setobjstat/
H A DMakefile37 FILESDIR=${SHAREDIR}/examples/ses/${PROG}
/freebsd-current/share/examples/ses/sesd/
H A DMakefile37 FILESDIR=${SHAREDIR}/examples/ses/${PROG}
/freebsd-current/tests/sys/opencrypto/
H A Dblake2_test.c111 return (sop.ses);
115 do_cryptop(int fd, int ses, size_t inlen, void *out) argument
121 cop.ses = ses;
132 int crid, fd, ses; local
141 ses = create_session(fd, CRYPTO_BLAKE2B, crid, key2b, sizeof(key2b));
144 do_cryptop(fd, ses, i, hash);
156 int crid, fd, ses; local
165 ses = create_session(fd, CRYPTO_BLAKE2S, crid, key2s, sizeof(key2s));
168 do_cryptop(fd, ses,
[all...]
H A Dpoly1305_test.c325 return (sop.ses);
331 uint32_t ses; local
333 ses = _ses;
334 ATF_REQUIRE_MSG(ioctl(fd, CIOCFSESSION, &ses) >= 0,
339 do_cryptop(int fd, int ses, const void *inp, size_t inlen, void *out) argument
345 cop.ses = ses;
357 int fd, ses; local
371 ses = create_session(fd, CRYPTO_POLY1305, crid, key, sizeof(key));
373 do_cryptop(fd, ses, ms
[all...]
/freebsd-current/sbin/nvmecontrol/
H A Dformat.c58 uint32_t ses; member in struct:options
67 .ses = SES_NONE,
87 OPT("ses", 's', arg_uint32, opt, ses,
120 int lbaf, ms, pi, pil, ses, fd; local
125 if ((int)opt.Eflag + opt.Cflag + (opt.ses != SES_NONE) > 1) {
137 ses = SES_USER;
139 ses = SES_CRYPTO;
141 ses = opt.ses;
[all...]
/freebsd-current/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_comp.c60 co1.ses = cs.ses;
75 co2.ses = cs.ses;
H A Dh_aesctr2.c72 co.ses = cs.ses;
83 co.ses = cs.ses;
H A Dh_gcm.c78 co.ses = cs.ses;
109 co.ses = cs.ses;
H A Dh_cbcdes.c67 co.ses = cs.ses;
H A Dh_null.c62 co.ses = cs.ses;
/freebsd-current/tools/tools/crypto/
H A Dcryptocheck.c160 int ses; member in struct:ocf_session
468 struct ocf_session *ses)
476 ses->fd = -1;
479 ses->fd = fd;
480 ses->ses = sop->ses;
481 ses->crid = sop->crid;
486 ocf_destroy_session(struct ocf_session *ses) argument
488 if (ses
467 ocf_init_session(struct session2_op *sop, const char *type, const char *name, struct ocf_session *ses) argument
496 ocf_init_cop(const struct ocf_session *ses, struct crypt_op *cop) argument
503 ocf_init_caead(const struct ocf_session *ses, struct crypt_aead *caead) argument
513 struct ocf_session ses; local
623 struct ocf_session ses; local
735 ocf_init_cipher_session(const struct alg *alg, const char *key, size_t key_len, struct ocf_session *ses) argument
748 ocf_cipher(const struct ocf_session *ses, const struct alg *alg, const char *iv, const char *input, char *output, size_t size, int op) argument
772 struct ocf_session ses; local
866 ocf_init_eta_session(const struct alg *alg, const char *cipher_key, size_t cipher_key_len, const char *auth_key, size_t auth_key_len, struct ocf_session *ses) argument
883 ocf_eta(const struct ocf_session *ses, const char *iv, size_t iv_len, const char *aad, size_t aad_len, const char *input, char *output, size_t size, char *digest, int op) argument
926 struct ocf_session ses; local
1105 struct ocf_session ses; local
1415 ocf_init_aead_session(const struct alg *alg, const char *key, size_t key_len, size_t iv_len, struct ocf_session *ses) argument
1429 ocf_aead(const struct ocf_session *ses, const char *iv, size_t iv_len, const char *aad, size_t aad_len, const char *input, char *output, size_t size, char *tag, int op) argument
1486 struct ocf_session ses; local
[all...]
/freebsd-current/sys/opencrypto/
H A Dcryptosoft.c88 swcr_null(const struct swcr_session *ses, struct cryptop *crp) argument
98 swcr_encdec(const struct swcr_session *ses, struct cryptop *crp) argument
115 sw = &ses->swcr_encdec;
241 swcr_authcompute(const struct swcr_session *ses, struct cryptop *crp) argument
253 sw = &ses->swcr_auth;
320 swcr_gmac(const struct swcr_session *ses, struct cryptop *crp) argument
337 swa = &ses->swcr_auth;
399 swcr_gcm(const struct swcr_session *ses, struct cryptop *crp) argument
418 swa = &ses->swcr_auth;
419 swe = &ses
673 swcr_ccm_cbc_mac(const struct swcr_session *ses, struct cryptop *crp) argument
732 swcr_ccm(const struct swcr_session *ses, struct cryptop *crp) argument
957 swcr_chacha20_poly1305(const struct swcr_session *ses, struct cryptop *crp) argument
1164 swcr_eta(const struct swcr_session *ses, struct cryptop *crp) argument
1184 swcr_compdec(const struct swcr_session *ses, struct cryptop *crp) argument
1267 swcr_setup_cipher(struct swcr_session *ses, const struct crypto_session_params *csp) argument
1293 swcr_setup_auth(struct swcr_session *ses, const struct crypto_session_params *csp) argument
1384 swcr_setup_aead(struct swcr_session *ses, const struct crypto_session_params *csp) argument
1553 struct swcr_session *ses; local
1660 struct swcr_session *ses; local
1675 struct swcr_session *ses; local
[all...]

Completed in 250 milliseconds

123