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

12

/freebsd-10.0-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.0-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.0-release/sys/netipsec/
H A Dxform_ipcomp.c87 static int ipcomp_input_cb(struct cryptop *crp);
88 static int ipcomp_output_cb(struct cryptop *crp);
150 struct cryptop *crp; local
175 crp = crypto_getreq(1);
176 if (crp == NULL) {
186 crypto_freereq(crp);
191 crdc = crp->crp_desc;
203 crp->crp_ilen = m->m_pkthdr.len - (skip + hlen);
204 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC;
205 crp
226 ipcomp_input_cb(struct cryptop *crp) argument
283 crypto_freereq(crp), crp = NULL; local
358 struct cryptop *crp; local
486 ipcomp_output_cb(struct cryptop *crp) argument
[all...]
H A Dxform_esp.c95 static int esp_output_cb(struct cryptop *crp);
279 struct cryptop *crp; local
366 crp = crypto_getreq(esph && espx ? 2 : 1);
367 if (crp == NULL) {
383 crypto_freereq(crp);
393 struct cryptodesc *crda = crp->crp_desc;
414 crde = crp->crp_desc;
418 crp->crp_ilen = m->m_pkthdr.len; /* Total input length */
419 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC;
420 crp
457 esp_input_cb(struct cryptop *crp) argument
560 crypto_freereq(crp), crp = NULL; local
688 struct cryptop *crp; local
914 esp_output_cb(struct cryptop *crp) argument
[all...]
H A Dxform_ah.c577 struct cryptop *crp; local
622 crp = crypto_getreq(1);
623 if (crp == NULL) {
630 crda = crp->crp_desc;
666 crypto_freereq(crp);
691 crypto_freereq(crp);
697 crp->crp_ilen = m->m_pkthdr.len; /* Total input length. */
698 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC;
699 crp->crp_buf = (caddr_t) m;
700 crp
725 ah_input_cb(struct cryptop *crp) argument
901 struct cryptop *crp; local
1122 ah_output_cb(struct cryptop *crp) argument
[all...]
/freebsd-10.0-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...]
/freebsd-10.0-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);
316 padlock_process(device_t dev, struct cryptop *crp, int hint __unused) argument
326 if (crp == NULL)
329 if (crp->crp_callback == NULL || crp->crp_desc == NULL) {
334 for (crd = crp->crp_desc; crd != NULL; crd = crd->crd_next) {
368 if (ses->ses_id == (crp->crp_sid & 0xffffffff))
379 error = padlock_hash_process(ses, maccrd, crp);
384 error = padlock_cipher_process(ses, enccrd, crp);
390 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.0-release/lib/libc/rpc/
H A Dpmap_rmt.c160 xdr_rmtcallres(xdrs, crp)
162 struct rmtcallres *crp;
167 assert(crp != NULL);
169 port_ptr = (caddr_t)(void *)crp->port_ptr;
171 (xdrproc_t)xdr_u_long) && xdr_u_long(xdrs, &crp->resultslen)) {
172 crp->port_ptr = (u_long *)(void *)port_ptr;
173 return ((*(crp->xdr_results))(xdrs, crp->results_ptr));
/freebsd-10.0-release/sys/crypto/aesni/
H A Daesni.c243 aesni_process(device_t dev, struct cryptop *crp, int hint __unused) argument
254 if (crp == NULL)
257 if (crp->crp_callback == NULL || crp->crp_desc == NULL) {
262 for (crd = crp->crp_desc; crd != NULL; crd = crd->crd_next) {
283 if (ses->id == (crp->crp_sid & 0xffffffff))
292 error = aesni_cipher_process(ses, enccrd, crp);
297 crp->crp_etype = error;
298 crypto_done(crp);
303 aesni_cipher_alloc(struct cryptodesc *enccrd, struct cryptop *crp, argument
[all...]
H A Daesni.h102 struct cryptodesc *enccrd, struct cryptop *crp);
104 uint8_t *aesni_cipher_alloc(struct cryptodesc *enccrd, struct cryptop *crp,
/freebsd-10.0-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.0-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.0-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.0-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.0-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,
1204 sec_split_crp(struct cryptop *crp, struct cryptodesc **enc, argument
1209 e = crp->crp_desc;
1359 sec_process(device_t dev, struct cryptop *crp, in argument
1489 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
1541 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
1625 sec_aesu_make_desc(struct sec_softc *sc, struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp, int buftype) argument
1685 sec_deu_make_desc(struct sec_softc *sc, struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp, int buftype) argument
1805 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.0-release/sys/rpc/
H A Dsvc_auth.c166 svc_getcred(struct svc_req *rqst, struct ucred **crp, int *flavorp) argument
185 *crp = cr;
191 return (_svcauth_rpcsec_gss_getcred(rqst, crp, flavorp));

Completed in 122 milliseconds

12