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

12

/freebsd-10.2-release/sys/geom/eli/
H A Dg_eli_privacy.c69 g_eli_crypto_read_done(struct cryptop *crp) argument
74 if (crp->crp_etype == EAGAIN) {
75 if (g_eli_crypto_rerun(crp) == 0)
78 bp = (struct bio *)crp->crp_opaque;
80 if (crp->crp_etype == 0) {
83 bp->bio_completed += crp->crp_olen;
86 bp->bio_inbed, bp->bio_children, crp->crp_etype);
88 bp->bio_error = crp->crp_etype;
91 g_eli_key_drop(sc, crp->crp_desc->crd_key);
118 g_eli_crypto_write_done(struct cryptop *crp) argument
231 struct cryptop *crp; local
[all...]
H A Dg_eli_crypto.c51 g_eli_crypto_done(struct cryptop *crp) argument
54 crp->crp_opaque = (void *)crp;
55 wakeup(crp);
64 struct cryptop *crp; local
82 p = malloc(sizeof(*crp) + sizeof(*crd) + sizeof(*uio) + sizeof(*iov),
88 crp = (struct cryptop *)p; p += sizeof(*crp);
112 crp->crp_sid = sid;
113 crp
[all...]
H A Dg_eli_integrity.c130 g_eli_auth_read_done(struct cryptop *crp) argument
135 if (crp->crp_etype == EAGAIN) {
136 if (g_eli_crypto_rerun(crp) == 0)
139 bp = (struct bio *)crp->crp_opaque;
141 if (crp->crp_etype == 0) {
142 bp->bio_completed += crp->crp_olen;
144 bp->bio_inbed, bp->bio_children, (intmax_t)crp->crp_olen, (intmax_t)bp->bio_completed);
147 bp->bio_inbed, bp->bio_children, crp->crp_etype);
149 bp->bio_error = crp->crp_etype;
152 g_eli_key_drop(sc, crp
255 g_eli_auth_write_done(struct cryptop *crp) argument
410 struct cryptop *crp; local
[all...]
/freebsd-10.2-release/sys/kgssapi/krb5/
H A Dkcrypto_aes.c112 aes_crypto_cb(struct cryptop *crp) argument
115 struct aes_state *as = (struct aes_state *) crp->crp_opaque;
120 error = crp->crp_etype;
122 error = crypto_dispatch(crp);
124 if (error || (crp->crp_flags & CRYPTO_F_DONE))
125 wakeup(crp);
136 struct cryptop *crp; local
140 crp = crypto_getreq(1);
141 crd = crp->crp_desc;
154 crp
315 struct cryptop *crp; local
[all...]
H A Dkcrypto_des.c141 des1_crypto_cb(struct cryptop *crp) argument
144 struct des1_state *ds = (struct des1_state *) crp->crp_opaque;
149 error = crp->crp_etype;
151 error = crypto_dispatch(crp);
153 if (error || (crp->crp_flags & CRYPTO_F_DONE))
154 wakeup(crp);
165 struct cryptop *crp; local
169 crp = crypto_getreq(1);
170 crd = crp->crp_desc;
183 crp
[all...]
H A Dkcrypto_des3.c151 des3_crypto_cb(struct cryptop *crp) argument
154 struct des3_state *ds = (struct des3_state *) crp->crp_opaque;
159 error = crp->crp_etype;
161 error = crypto_dispatch(crp);
163 if (error || (crp->crp_flags & CRYPTO_F_DONE))
164 wakeup(crp);
175 struct cryptop *crp; local
179 crp = crypto_getreq(1);
180 crd = crp->crp_desc;
193 crp
232 struct cryptop *crp; local
[all...]
/freebsd-10.2-release/sys/netipsec/
H A Dxform_ipcomp.c86 static int ipcomp_input_cb(struct cryptop *crp);
87 static int ipcomp_output_cb(struct cryptop *crp);
149 struct cryptop *crp; local
174 crp = crypto_getreq(1);
175 if (crp == NULL) {
185 crypto_freereq(crp);
190 crdc = crp->crp_desc;
202 crp->crp_ilen = m->m_pkthdr.len - (skip + hlen);
203 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC;
204 crp
225 ipcomp_input_cb(struct cryptop *crp) argument
282 crypto_freereq(crp), crp = NULL; local
357 struct cryptop *crp; local
485 ipcomp_output_cb(struct cryptop *crp) argument
[all...]
H A Dxform_esp.c94 static int esp_output_cb(struct cryptop *crp);
278 struct cryptop *crp; local
365 crp = crypto_getreq(esph && espx ? 2 : 1);
366 if (crp == NULL) {
382 crypto_freereq(crp);
392 struct cryptodesc *crda = crp->crp_desc;
413 crde = crp->crp_desc;
417 crp->crp_ilen = m->m_pkthdr.len; /* Total input length */
418 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC;
419 crp
456 esp_input_cb(struct cryptop *crp) argument
559 crypto_freereq(crp), crp = NULL; local
687 struct cryptop *crp; local
913 esp_output_cb(struct cryptop *crp) argument
[all...]
H A Dxform_ah.c576 struct cryptop *crp; local
621 crp = crypto_getreq(1);
622 if (crp == NULL) {
629 crda = crp->crp_desc;
665 crypto_freereq(crp);
690 crypto_freereq(crp);
696 crp->crp_ilen = m->m_pkthdr.len; /* Total input length. */
697 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC;
698 crp->crp_buf = (caddr_t) m;
699 crp
724 ah_input_cb(struct cryptop *crp) argument
900 struct cryptop *crp; local
1121 ah_output_cb(struct cryptop *crp) argument
[all...]
/freebsd-10.2-release/sys/opencrypto/
H A Dcrypto.c177 static int crypto_invoke(struct cryptocap *cap, struct cryptop *crp, int hint);
781 crypto_dispatch(struct cryptop *crp) argument
791 binuptime(&crp->crp_tstamp);
794 hid = CRYPTO_SESID2HID(crp->crp_sid);
796 if ((crp->crp_flags & CRYPTO_F_BATCH) == 0) {
806 result = crypto_invoke(cap, crp, 0);
816 TAILQ_INSERT_TAIL(&crp_q, crp, crp_next);
1005 crypto_invoke(struct cryptocap *cap, struct cryptop *crp, int hint) argument
1008 KASSERT(crp != NULL, ("%s: crp
1053 crypto_freereq(struct cryptop *crp) argument
1095 struct cryptop *crp; local
1117 crypto_done(struct cryptop *crp) argument
1242 struct cryptop *crp, *submit; local
1481 struct cryptop *crp; local
[all...]
H A Dcryptodev.c657 struct cryptop *crp = NULL; local
684 crp = crypto_getreq((cse->txform != NULL) + (cse->thash != NULL));
685 if (crp == NULL) {
691 crda = crp->crp_desc;
696 crde = crp->crp_desc;
729 crp->crp_ilen = cop->len;
730 crp->crp_flags = CRYPTO_F_IOV | CRYPTO_F_CBIMM
732 crp->crp_buf = (caddr_t)&cse->uio;
733 crp->crp_callback = (int (*) (struct cryptop *)) cryptodev_cb;
734 crp
818 struct cryptop *crp = (struct cryptop *) op; local
[all...]
H A Dcryptosoft.c963 swcr_process(device_t dev, struct cryptop *crp, int hint) argument
970 if (crp == NULL)
973 if (crp->crp_desc == NULL || crp->crp_buf == NULL) {
974 crp->crp_etype = EINVAL;
978 lid = crp->crp_sid & 0xffffffff;
980 crp->crp_etype = ENOENT;
985 for (crd = crp->crp_desc; crd; crd = crd->crd_next) {
1003 crp->crp_etype = EINVAL;
1015 if ((crp
[all...]
/freebsd-10.2-release/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-10.2-release/sys/crypto/aesni/
H A Daesni.c59 struct cryptodesc *enccrd, struct cryptop *crp);
247 aesni_process(device_t dev, struct cryptop *crp, int hint __unused) argument
258 if (crp == NULL)
261 if (crp->crp_callback == NULL || crp->crp_desc == NULL) {
266 for (crd = crp->crp_desc; crd != NULL; crd = crd->crd_next) {
287 if (ses->id == (crp->crp_sid & 0xffffffff))
296 error = aesni_cipher_process(ses, enccrd, crp);
301 crp->crp_etype = error;
302 crypto_done(crp);
307 aesni_cipher_alloc(struct cryptodesc *enccrd, struct cryptop *crp, int *allocated) argument
380 aesni_cipher_process(struct aesni_session *ses, struct cryptodesc *enccrd, struct cryptop *crp) argument
[all...]
/freebsd-10.2-release/lib/libc/rpc/
H A Dpmap_rmt.c159 xdr_rmtcallres(xdrs, crp)
161 struct rmtcallres *crp;
166 assert(crp != NULL);
168 port_ptr = (caddr_t)(void *)crp->port_ptr;
170 (xdrproc_t)xdr_u_long) && xdr_u_long(xdrs, &crp->resultslen)) {
171 crp->port_ptr = (u_long *)(void *)port_ptr;
172 return ((*(crp->xdr_results))(xdrs, crp->results_ptr));
/freebsd-10.2-release/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-10.2-release/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-10.2-release/sys/dev/glxsb/
H A Dglxsb.h53 struct cryptodesc *maccrd, struct cryptop *crp);
H A Dglxsb.c716 glxsb_crypto_encdec(struct cryptop *crp, struct cryptodesc *crd, argument
752 crypto_copyback(crp->crp_flags, crp->crp_buf,
760 crypto_copydata(crp->crp_flags, crp->crp_buf,
772 crypto_copydata(crp->crp_flags, crp->crp_buf,
784 crypto_copyback(crp->crp_flags, crp->crp_buf,
824 struct cryptop *crp; local
861 glxsb_crypto_process(device_t dev, struct cryptop *crp, int hint) argument
[all...]
/freebsd-10.2-release/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-10.2-release/sys/dev/sec/
H A Dsec.c89 static int sec_process(device_t dev, struct cryptop *crp, int hint);
92 static int sec_split_crp(struct cryptop *crp, struct cryptodesc **enc,
95 struct sec_desc *desc, struct sec_session *ses, struct cryptop *crp,
98 struct sec_desc *desc, struct sec_session *ses, struct cryptop *crp,
108 struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp,
115 struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp,
125 struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp,
1207 sec_split_crp(struct cryptop *crp, struct cryptodesc **enc, argument
1212 e = crp->crp_desc;
1362 sec_process(device_t dev, struct cryptop *crp, in argument
1492 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
1544 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
1628 sec_aesu_make_desc(struct sec_softc *sc, struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp, int buftype) argument
1688 sec_deu_make_desc(struct sec_softc *sc, struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp, int buftype) argument
1808 sec_mdeu_make_desc(struct sec_softc *sc, struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp, int buftype) argument
[all...]
/freebsd-10.2-release/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 321 milliseconds

12