Searched refs:crp (Results 1 - 25 of 47) sorted by relevance

12

/freebsd-11-stable/sys/kgssapi/krb5/
H A Dkcrypto_aes.c118 aes_crypto_cb(struct cryptop *crp) argument
121 struct aes_state *as = (struct aes_state *) crp->crp_opaque;
123 if (CRYPTO_SESID2CAPS(crp->crp_sid) & CRYPTOCAP_F_SYNC)
126 error = crp->crp_etype;
128 error = crypto_dispatch(crp);
130 if (error || (crp->crp_flags & CRYPTO_F_DONE))
131 wakeup(crp);
142 struct cryptop *crp; local
146 crp = crypto_getreq(1);
147 crd = crp
321 struct cryptop *crp; local
[all...]
H A Dkcrypto_des.c144 des1_crypto_cb(struct cryptop *crp) argument
147 struct des1_state *ds = (struct des1_state *) crp->crp_opaque;
152 error = crp->crp_etype;
154 error = crypto_dispatch(crp);
156 if (error || (crp->crp_flags & CRYPTO_F_DONE))
157 wakeup(crp);
168 struct cryptop *crp; local
172 crp = crypto_getreq(1);
173 crd = crp->crp_desc;
186 crp
[all...]
H A Dkcrypto_des3.c154 des3_crypto_cb(struct cryptop *crp) argument
157 struct des3_state *ds = (struct des3_state *) crp->crp_opaque;
162 error = crp->crp_etype;
164 error = crypto_dispatch(crp);
166 if (error || (crp->crp_flags & CRYPTO_F_DONE))
167 wakeup(crp);
178 struct cryptop *crp; local
182 crp = crypto_getreq(1);
183 crd = crp->crp_desc;
196 crp
235 struct cryptop *crp; local
[all...]
/freebsd-11-stable/sys/geom/eli/
H A Dg_eli_privacy.c68 g_eli_crypto_read_done(struct cryptop *crp) argument
73 if (crp->crp_etype == EAGAIN) {
74 if (g_eli_crypto_rerun(crp) == 0)
77 bp = (struct bio *)crp->crp_opaque;
79 if (crp->crp_etype == 0) {
82 bp->bio_completed += crp->crp_olen;
85 bp->bio_inbed, bp->bio_children, crp->crp_etype);
87 bp->bio_error = crp->crp_etype;
91 g_eli_key_drop(sc, crp->crp_desc->crd_key);
119 g_eli_crypto_write_done(struct cryptop *crp) argument
232 struct cryptop *crp; local
[all...]
H A Dg_eli_crypto.c50 g_eli_crypto_done(struct cryptop *crp) argument
53 crp->crp_opaque = (void *)crp;
54 wakeup(crp);
63 struct cryptop *crp; local
79 p = malloc(sizeof(*crp) + sizeof(*crd), M_ELI, M_NOWAIT | M_ZERO);
84 crp = (struct cryptop *)p; p += sizeof(*crp);
98 crp->crp_sid = sid;
99 crp
[all...]
H A Dg_eli_integrity.c129 g_eli_auth_read_done(struct cryptop *crp) argument
134 if (crp->crp_etype == EAGAIN) {
135 if (g_eli_crypto_rerun(crp) == 0)
138 bp = (struct bio *)crp->crp_opaque;
140 if (crp->crp_etype == 0) {
141 bp->bio_completed += crp->crp_olen;
143 bp->bio_inbed, bp->bio_children, (intmax_t)crp->crp_olen, (intmax_t)bp->bio_completed);
146 bp->bio_inbed, bp->bio_children, crp->crp_etype);
148 bp->bio_error = crp->crp_etype;
151 g_eli_key_drop(sc, crp
254 g_eli_auth_write_done(struct cryptop *crp) argument
407 struct cryptop *crp; local
[all...]
/freebsd-11-stable/sys/opencrypto/
H A Dcrypto.c179 static int crypto_invoke(struct cryptocap *cap, struct cryptop *crp, int hint);
819 crypto_dispatch(struct cryptop *crp) argument
829 binuptime(&crp->crp_tstamp);
832 hid = CRYPTO_SESID2HID(crp->crp_sid);
834 if ((crp->crp_flags & CRYPTO_F_BATCH) == 0) {
844 result = crypto_invoke(cap, crp, 0);
854 TAILQ_INSERT_TAIL(&crp_q, crp, crp_next);
1043 crypto_invoke(struct cryptocap *cap, struct cryptop *crp, int hint) argument
1046 KASSERT(crp != NULL, ("%s: crp
1091 crypto_freereq(struct cryptop *crp) argument
1133 struct cryptop *crp; local
1155 crypto_done(struct cryptop *crp) argument
1280 struct cryptop *crp, *submit; local
1519 struct cryptop *crp; local
[all...]
H A Dcryptosoft.c75 static int swcr_authenc(struct cryptop *crp);
459 swcr_authenc(struct cryptop *crp) argument
471 caddr_t buf = (caddr_t)crp->crp_buf;
477 for (crd = crp->crp_desc; crd; crd = crd->crd_next) {
478 for (sw = swcr_sessions[crp->crp_sid & 0xffffffff];
528 crypto_copyback(crp->crp_flags, buf, crde->crd_inject,
537 crypto_copydata(crp->crp_flags, buf, crde->crd_inject,
551 crypto_copydata(crp->crp_flags, buf, crda->crd_skip + i, len,
566 crypto_copydata(crp->crp_flags, buf, crde->crd_skip + i, len,
571 crypto_copyback(crp
1080 swcr_process(device_t dev, struct cryptop *crp, int hint) argument
[all...]
/freebsd-11-stable/sys/crypto/via/
H A Dpadlock_cipher.c169 padlock_cipher_alloc(struct cryptodesc *enccrd, struct cryptop *crp, argument
174 if (crp->crp_flags & CRYPTO_F_IMBUF)
177 if (crp->crp_flags & CRYPTO_F_IOV) {
181 uio = (struct uio *)crp->crp_buf;
187 addr = (u_char *)crp->crp_buf;
202 struct cryptop *crp)
210 buf = padlock_cipher_alloc(enccrd, crp, &allocated);
233 crypto_copyback(crp->crp_flags, crp->crp_buf,
242 crypto_copydata(crp
201 padlock_cipher_process(struct padlock_session *ses, struct cryptodesc *enccrd, struct cryptop *crp) argument
[all...]
H A Dpadlock.c70 static int padlock_process(device_t, struct cryptop *crp, int hint __unused);
309 padlock_process(device_t dev, struct cryptop *crp, int hint __unused) argument
319 if (crp == NULL)
322 if (crp->crp_callback == NULL || crp->crp_desc == NULL) {
327 for (crd = crp->crp_desc; crd != NULL; crd = crd->crd_next) {
361 if (ses->ses_id == (crp->crp_sid & 0xffffffff))
372 error = padlock_hash_process(ses, maccrd, crp);
377 error = padlock_cipher_process(ses, enccrd, crp);
383 error = padlock_hash_process(ses, maccrd, crp);
[all...]
H A Dpadlock.h87 struct cryptodesc *enccrd, struct cryptop *crp);
91 struct cryptodesc *maccrd, struct cryptop *crp);
/freebsd-11-stable/sys/netipsec/
H A Dxform_ipcomp.c89 static int ipcomp_input_cb(struct cryptop *crp);
90 static int ipcomp_output_cb(struct cryptop *crp);
195 struct cryptop *crp; local
222 crp = crypto_getreq(1);
223 if (crp == NULL) {
233 crypto_freereq(crp);
236 crdc = crp->crp_desc;
247 crp->crp_ilen = m->m_pkthdr.len - (skip + hlen);
248 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC;
249 crp
274 ipcomp_input_cb(struct cryptop *crp) argument
330 crypto_freereq(crp), crp = NULL; local
399 struct cryptop *crp; local
529 ipcomp_output_cb(struct cryptop *crp) argument
[all...]
H A Dxform_esp.c101 static int esp_output_cb(struct cryptop *crp);
298 struct cryptop *crp; local
368 crp = crypto_getreq(esph && espx ? 2 : 1);
369 if (crp == NULL) {
382 crypto_freereq(crp);
388 struct cryptodesc *crda = crp->crp_desc;
409 crde = crp->crp_desc;
413 crp->crp_ilen = m->m_pkthdr.len; /* Total input length */
414 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC;
415 crp
465 esp_input_cb(struct cryptop *crp) argument
544 crypto_freereq(crp), crp = NULL; local
666 struct cryptop *crp; local
912 esp_output_cb(struct cryptop *crp) argument
[all...]
H A Dxform_ah.c556 struct cryptop *crp; local
620 crp = crypto_getreq(1);
621 if (crp == NULL) {
629 crda = crp->crp_desc;
647 crypto_freereq(crp);
671 crypto_freereq(crp);
677 crp->crp_ilen = m->m_pkthdr.len; /* Total input length. */
678 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC;
679 crp->crp_buf = (caddr_t) m;
680 crp
702 ah_input_cb(struct cryptop *crp) argument
863 struct cryptop *crp; local
1086 ah_output_cb(struct cryptop *crp) argument
[all...]
/freebsd-11-stable/sys/crypto/aesni/
H A Daesni.c84 struct cryptodesc *enccrd, struct cryptodesc *authcrd, struct cryptop *crp);
331 aesni_process(device_t dev, struct cryptop *crp, int hint __unused) argument
344 if (crp == NULL)
347 if (crp->crp_callback == NULL || crp->crp_desc == NULL) {
352 for (crd = crp->crp_desc; crd != NULL; crd = crd->crd_next) {
404 if (ses->id == (crp->crp_sid & 0xffffffff))
413 error = aesni_cipher_process(ses, enccrd, authcrd, crp);
418 crp->crp_etype = error;
419 crypto_done(crp);
424 aesni_cipher_alloc(struct cryptodesc *enccrd, struct cryptop *crp, int *allocated) argument
515 aesni_cipher_process(struct aesni_session *ses, struct cryptodesc *enccrd, struct cryptodesc *authcrd, struct cryptop *crp) argument
[all...]
/freebsd-11-stable/lib/libc/rpc/
H A Dpmap_rmt.c152 xdr_rmtcallres(XDR *xdrs, struct rmtcallres *crp) argument
157 assert(crp != NULL);
159 port_ptr = (caddr_t)(void *)crp->port_ptr;
161 (xdrproc_t)xdr_u_long) && xdr_u_long(xdrs, &crp->resultslen)) {
162 crp->port_ptr = (u_long *)(void *)port_ptr;
163 return ((*(crp->xdr_results))(xdrs, crp->results_ptr));
/freebsd-11-stable/sys/dev/cxgbe/crypto/
H A Dt4_crypto.c242 ccr_populate_sglist(struct sglist *sg, struct cryptop *crp) argument
247 if (crp->crp_flags & CRYPTO_F_IMBUF)
248 error = sglist_append_mbuf(sg, (struct mbuf *)crp->crp_buf);
249 else if (crp->crp_flags & CRYPTO_F_IOV)
250 error = sglist_append_uio(sg, (struct uio *)crp->crp_buf);
252 error = sglist_append(sg, crp->crp_buf, crp->crp_ilen);
383 struct cryptop *crp)
409 crwr->wreq.cookie = htobe64((uintptr_t)crp);
426 struct cryptop *crp)
381 ccr_populate_wreq(struct ccr_softc *sc, struct chcr_wr *crwr, u_int kctx_len, u_int wr_len, uint32_t sid, u_int imm_len, u_int sgl_len, u_int hash_size, struct cryptop *crp) argument
425 ccr_hmac(struct ccr_softc *sc, uint32_t sid, struct ccr_session *s, struct cryptop *crp) argument
543 ccr_hmac_done(struct ccr_softc *sc, struct ccr_session *s, struct cryptop *crp, const struct cpl_fw6_pld *cpl, int error) argument
558 ccr_blkcipher(struct ccr_softc *sc, uint32_t sid, struct ccr_session *s, struct cryptop *crp) argument
731 ccr_blkcipher_done(struct ccr_softc *sc, struct ccr_session *s, struct cryptop *crp, const struct cpl_fw6_pld *cpl, int error) argument
761 ccr_authenc(struct ccr_softc *sc, uint32_t sid, struct ccr_session *s, struct cryptop *crp, struct cryptodesc *crda, struct cryptodesc *crde) argument
1081 ccr_authenc_done(struct ccr_softc *sc, struct ccr_session *s, struct cryptop *crp, const struct cpl_fw6_pld *cpl, int error) argument
1111 ccr_gcm(struct ccr_softc *sc, uint32_t sid, struct ccr_session *s, struct cryptop *crp, struct cryptodesc *crda, struct cryptodesc *crde) argument
1398 ccr_gcm_done(struct ccr_softc *sc, struct ccr_session *s, struct cryptop *crp, const struct cpl_fw6_pld *cpl, int error) argument
1416 ccr_gcm_soft(struct ccr_session *s, struct cryptop *crp, struct cryptodesc *crda, struct cryptodesc *crde) argument
2098 ccr_process(device_t dev, struct cryptop *crp, int hint) argument
2260 struct cryptop *crp; local
[all...]
/freebsd-11-stable/sys/mips/nlm/dev/sec/
H A Dnlmsec.c72 void xlp_sec_print_data(struct cryptop *crp);
201 xlp_sec_print_data(struct cryptop *crp) argument
207 crp->crp_sid, crp->crp_ilen, crp->crp_olen);
209 printf("crp_flags = 0x%x\n", crp->crp_flags);
211 printf("crp buf:\n");
212 for (i = 0; i < crp->crp_ilen; i++) {
213 printf("%c ", crp->crp_buf[i]);
220 crp_desc = crp
573 struct cryptop *crp = NULL; local
606 xlp_get_nsegs(struct cryptop *crp, unsigned int *nsegs) argument
695 xlp_sec_process(device_t dev, struct cryptop *crp, int hint) argument
[all...]
H A Dnlmseclib.c97 struct cryptop *crp = NULL; local
99 crp = cmd->crp;
112 if (crp->crp_flags & CRYPTO_F_IMBUF) {
115 m = (struct mbuf *)crp->crp_buf;
125 } else if (crp->crp_flags & CRYPTO_F_IOV) {
130 uio = (struct uio *)crp->crp_buf;
147 ((caddr_t)crp->crp_buf), crp->crp_ilen);
150 ((caddr_t)crp
[all...]
/freebsd-11-stable/sys/mips/rmi/dev/sec/
H A Drmisec.c62 void xlr_sec_print_data(struct cryptop *crp);
66 static int xlr_sec_process(device_t dev, struct cryptop *crp, int hint);
305 xlr_sec_print_data(struct cryptop *crp) argument
311 crp->crp_sid, crp->crp_ilen, crp->crp_olen);
313 printf("crp_flags = 0x%x\n", crp->crp_flags);
316 printf("crp buf:\n");
317 for (i = 0; i < crp->crp_ilen; i++) {
318 printf("%c ", crp
347 xlr_sec_process(device_t dev, struct cryptop *crp, int hint) argument
[all...]
/freebsd-11-stable/sys/dev/glxsb/
H A Dglxsb.h53 struct cryptodesc *maccrd, struct cryptop *crp);
H A Dglxsb.c717 glxsb_crypto_encdec(struct cryptop *crp, struct cryptodesc *crd, argument
753 crypto_copyback(crp->crp_flags, crp->crp_buf,
761 crypto_copydata(crp->crp_flags, crp->crp_buf,
773 crypto_copydata(crp->crp_flags, crp->crp_buf,
785 crypto_copyback(crp->crp_flags, crp->crp_buf,
825 struct cryptop *crp; local
862 glxsb_crypto_process(device_t dev, struct cryptop *crp, int hint) argument
[all...]
/freebsd-11-stable/sys/mips/cavium/cryptocteon/
H A Dcryptocteon.c339 cryptocteon_process(device_t dev, struct cryptop *crp, int hint) argument
355 if (sc == NULL || crp == NULL)
358 crp->crp_etype = 0;
360 if (crp->crp_desc == NULL || crp->crp_buf == NULL) {
362 crp->crp_etype = EINVAL;
366 lid = crp->crp_sid & 0xffffffff;
369 crp->crp_etype = ENOENT;
379 if (crp->crp_flags & CRYPTO_F_IMBUF) {
382 m = (struct mbuf *) crp
[all...]
/freebsd-11-stable/sys/dev/sec/
H A Dsec.c90 static int sec_process(device_t dev, struct cryptop *crp, int hint);
93 static int sec_split_crp(struct cryptop *crp, struct cryptodesc **enc,
96 struct sec_desc *desc, struct sec_session *ses, struct cryptop *crp,
99 struct sec_desc *desc, struct sec_session *ses, struct cryptop *crp,
109 struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp,
116 struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp,
126 struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp,
1208 sec_split_crp(struct cryptop *crp, struct cryptodesc **enc, argument
1213 e = crp->crp_desc;
1363 sec_process(device_t dev, struct cryptop *crp, in argument
1493 sec_build_common_ns_desc(struct sec_softc *sc, struct sec_desc *desc, struct sec_session *ses, struct cryptop *crp, struct cryptodesc *enc, int buftype) argument
1545 sec_build_common_s_desc(struct sec_softc *sc, struct sec_desc *desc, struct sec_session *ses, struct cryptop *crp, struct cryptodesc *enc, struct cryptodesc *mac, int buftype) argument
1629 sec_aesu_make_desc(struct sec_softc *sc, struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp, int buftype) argument
1689 sec_deu_make_desc(struct sec_softc *sc, struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp, int buftype) argument
1809 sec_mdeu_make_desc(struct sec_softc *sc, struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp, int buftype) argument
[all...]
/freebsd-11-stable/sys/rpc/
H A Dsvc_auth.c165 svc_getcred(struct svc_req *rqst, struct ucred **crp, int *flavorp) argument
184 *crp = cr;
190 return (_svcauth_rpcsec_gss_getcred(rqst, crp, flavorp));

Completed in 166 milliseconds

12