Home
last modified time | relevance | path

Searched refs:crid (Results 1 – 14 of 14) 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
137 crid = lookup_crid(fd, devname); in test_blake2b_vectors()
138 ses = create_session(fd, CRYPTO_BLAKE2B, crid, key2b, sizeof(key2b)); in test_blake2b_vectors()
153 int crid, fd, ses; in test_blake2s_vectors() local
158 crid = lookup_crid(fd, devname); in test_blake2s_vectors()
159 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) in test_rfc7539_poly1305_vectors() argument
368 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') variable
568 print('aesni:', crid)
/freebsd/tools/tools/crypto/
H A Dcryptocheck.c161 int crid; member
386 find.crid = -1; in crlookup()
390 return (find.crid); in crlookup()
394 crfind(int crid) in crfind() argument
398 if (crid == CRYPTO_FLAG_SOFTWARE) in crfind()
400 else if (crid == CRYPTO_FLAG_HARDWARE) in crfind()
404 find.crid = crid; in crfind()
406 err(1, "ioctl(CIOCFINDDEV): crid %d", crid); in crfind()
468 sop->crid = requested_crid; in ocf_init_sop()
480 type, name, crfind(sop->crid)); in ocf_init_session()
[all …]
/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()
317 if (crid & CRYPTOCAP_F_SOFTWARE) { in checkforsoftware()
318 if (crid & CRYPTOCAP_F_HARDWARE) { in checkforsoftware()
324 if ((crid & CRYPTOCAP_F_HARDWARE) == 0 && in checkforsoftware()
[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.c942 const struct crypto_session_params *csp, int crid) in crypto_newsession() argument
955 if ((crid & (CRYPTOCAP_F_HARDWARE | CRYPTOCAP_F_SOFTWARE)) == 0) { in crypto_newsession()
959 cap = crypto_checkdriver(crid); in crypto_newsession()
966 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.c224 …cipher_ctx->sess.crid = (use_softdrivers == DEVCRYPTO_USE_SOFTWARE) ? CRYPTO_FLAG_SOFTWARE | CRYPT… in cipher_init()
451 sess.crid = CRYPTO_FLAG_HARDWARE; in prepare_cipher_methods()
455 sess.crid = CRYPTO_FLAG_SOFTWARE; in prepare_cipher_methods()
497 fop.crid = sess.crid; in prepare_cipher_methods()
/freebsd/crypto/openssl/crypto/cmp/
H A Dcmp_local.h964 OSSL_CMP_MSG *ossl_cmp_pollRep_new(OSSL_CMP_CTX *ctx, int crid,
979 OSSL_CMP_MSG *ossl_cmp_pollReq_new(OSSL_CMP_CTX *ctx, int crid);
980 OSSL_CMP_MSG *ossl_cmp_pollRep_new(OSSL_CMP_CTX *ctx, int crid,
H A Dcmp_msg.c949 OSSL_CMP_MSG *ossl_cmp_pollReq_new(OSSL_CMP_CTX *ctx, int crid) in ossl_cmp_pollReq_new() argument
961 || !ASN1_INTEGER_set(preq->certReqId, crid) in ossl_cmp_pollReq_new()
978 OSSL_CMP_MSG *ossl_cmp_pollRep_new(OSSL_CMP_CTX *ctx, int crid, in ossl_cmp_pollRep_new() argument
993 if (!ASN1_INTEGER_set(prep->certReqId, crid)) in ossl_cmp_pollRep_new()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dbnxt_re.h968 u16 crid, u16 trid) in bnxt_re_init_hwrm_hdr() argument
971 hdr->cmpl_ring = cpu_to_le16(crid); in bnxt_re_init_hwrm_hdr()
/freebsd/sys/dev/bnxt/bnxt_en/
H A Dhsi_struct_def.h90883 uint16_t crid; member