Home
last modified time | relevance | path

Searched refs:crid (Results 1 – 15 of 15) sorted by relevance

/freebsd/tests/sys/opencrypto/
H A Dblake2_test.c80 find.crid = -1; in lookup_crid()
83 return (find.crid); in lookup_crid()
97 create_session(int fd, int alg, int crid, const void *key, size_t klen) in create_session() argument
106 sop.crid = crid; in create_session()
132 int crid, fd, ses; in test_blake2b_vectors() local
140 crid = lookup_crid(fd, devname); in test_blake2b_vectors()
141 ses = create_session(fd, CRYPTO_BLAKE2B, crid, key2b, sizeof(key2b)); in test_blake2b_vectors()
156 int crid, fd, ses; in test_blake2s_vectors() local
164 crid = lookup_crid(fd, devname); in test_blake2s_vectors()
165 ses = create_session(fd, CRYPTO_BLAKE2S, crid, key2s, sizeof(key2s)); in test_blake2s_vectors()
H A Dcryptotest.py57 crid = cryptodev.Crypto.findcrid(cname)
124 cipherkey, crid=crid,
192 c = Crypto(cryptodev.CRYPTO_AES_CBC, cipherkey, crid=crid)
229 c = Crypto(meth, cipherkey, crid=crid)
261 c = Crypto(crid=crid,
302 c = Crypto(crid=crid,
370 c = Crypto(mac=alg, crid=crid,
432 crid=crid, maclen=hashlen)
H A Dpoly1305_test.c311 create_session(int fd, int alg, int crid, const void *key, size_t klen) in create_session() argument
320 sop.crid = crid; in create_session()
353 test_rfc7539_poly1305_vectors(int crid, const char *modname) in test_rfc7539_poly1305_vectors() argument
371 ses = create_session(fd, CRYPTO_POLY1305, crid, key, sizeof(key)); in test_rfc7539_poly1305_vectors()
H A Dcryptodev.py141 def _findop(crid, name): argument
143 fop.crid = crid
155 return fop.crid, name
173 def getcridname(crid): argument
174 return _findop(crid, '')[1]
177 crid=CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_HARDWARE, maclen=None, argument
199 ses.crid = crid
567 crid = Crypto.findcrid('aesni0')
568 print('aesni:', crid)
/freebsd/tools/tools/crypto/
H A Dcryptocheck.c161 int crid; member
381 find.crid = -1; in crlookup()
389 crfind(int crid) in crfind() argument
399 find.crid = crid; in crfind()
481 ses->crid = sop->crid; in ocf_init_session()
535 *cridp = ses.crid; in ocf_hash()
581 int crid; in run_hash_test() local
649 *cridp = ses.crid; in ocf_hmac()
660 int crid; in run_hmac_test() local
1187 int crid; in run_gmac_test() local
[all …]
H A Dcryptotest.c114 int crid = CRYPTO_FLAG_HARDWARE; variable
216 find.crid = -1; in crlookup()
220 return find.crid; in crlookup()
224 crfind(int crid) in crfind() argument
229 find.crid = crid; in crfind()
231 err(1, "ioctl(CIOCFINDDEV): crid %d", crid); in crfind()
284 sop.crid = crid; in runtest()
321 printf("device = %s\n", crfind(sop.crid)); in runtest()
579 crid = crlookup(optarg); in main()
/freebsd/sys/opencrypto/
H A Dcryptodev.c102 int crid; member
149 to->crid = CRYPTOCAP_F_HARDWARE; in session_op_from_32()
157 CP(*from, *to, crid); in session2_op_from_32()
180 CP(*from, *to, crid); in session2_op_to_32()
252 to->crid = CRYPTOCAP_F_HARDWARE; in session2_op_from_op()
312 int crid; in checkforsoftware() local
314 crid = *cridp; in checkforsoftware()
341 int crid, error, mac; in cse_create() local
482 crid = sop->crid; in cse_create()
1072 if (find->crid != -1) { in cryptodev_find()
[all …]
H A Dcryptodev.h251 int crid; /* driver id + flags (rw) */ member
293 int crid; /* driver id + flags */ member
612 const struct crypto_session_params *params, int crid);
H A Dcrypto.c949 const struct crypto_session_params *csp, int crid) in crypto_newsession() argument
962 if ((crid & (CRYPTOCAP_F_HARDWARE | CRYPTOCAP_F_SOFTWARE)) == 0) { in crypto_newsession()
966 cap = crypto_checkdriver(crid); in crypto_newsession()
973 cap = crypto_select_driver(csp, crid); in crypto_newsession()
/freebsd/crypto/openssl/doc/internal/man3/
H A Dossl_cmp_certreq_new.pod36 OSSL_CMP_MSG *ossl_cmp_pollReq_new(OSSL_CMP_CTX *ctx, int crid);
37 OSSL_CMP_MSG *ossl_cmp_pollRep_new(OSSL_CMP_CTX *ctx, int crid, int poll_after);
135 I<crid>.
138 I<crid> and pollAfter to I<poll_after>.
/freebsd/crypto/openssl/engines/
H A De_devcrypto.c225 cipher_ctx->sess.crid = (use_softdrivers == DEVCRYPTO_USE_SOFTWARE) ? in cipher_init()
457 sess.crid = CRYPTO_FLAG_HARDWARE; in prepare_cipher_methods()
461 sess.crid = CRYPTO_FLAG_SOFTWARE; in prepare_cipher_methods()
506 fop.crid = sess.crid; in prepare_cipher_methods()
/freebsd/crypto/openssl/crypto/cmp/
H A Dcmp_local.h878 OSSL_CMP_MSG *ossl_cmp_pollRep_new(OSSL_CMP_CTX *ctx, int crid,
893 OSSL_CMP_MSG *ossl_cmp_pollReq_new(OSSL_CMP_CTX *ctx, int crid);
894 OSSL_CMP_MSG *ossl_cmp_pollRep_new(OSSL_CMP_CTX *ctx, int crid,
H A Dcmp_msg.c854 OSSL_CMP_MSG *ossl_cmp_pollReq_new(OSSL_CMP_CTX *ctx, int crid) in ossl_cmp_pollReq_new() argument
866 || !ASN1_INTEGER_set(preq->certReqId, crid) in ossl_cmp_pollReq_new()
883 OSSL_CMP_MSG *ossl_cmp_pollRep_new(OSSL_CMP_CTX *ctx, int crid, in ossl_cmp_pollRep_new() argument
898 if (!ASN1_INTEGER_set(prep->certReqId, crid)) in ossl_cmp_pollRep_new()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dbnxt_re.h967 u16 crid, u16 trid) in bnxt_re_init_hwrm_hdr() argument
970 hdr->cmpl_ring = cpu_to_le16(crid); in bnxt_re_init_hwrm_hdr()
/freebsd/sys/dev/bnxt/bnxt_en/
H A Dhsi_struct_def.h88998 uint16_t crid; member