/freebsd-9.3-release/sys/geom/eli/ |
H A D | g_eli_privacy.c | 69 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 D | g_eli_crypto.c | 51 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 D | g_eli_integrity.c | 130 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-9.3-release/sys/kgssapi/krb5/ |
H A D | kcrypto_aes.c | 112 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 D | kcrypto_des.c | 141 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 D | kcrypto_des3.c | 151 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-9.3-release/sys/netipsec/ |
H A D | xform_ipcomp.c | 81 static int ipcomp_input_cb(struct cryptop *crp); 82 static int ipcomp_output_cb(struct cryptop *crp); 144 struct cryptop *crp; local 169 crp = crypto_getreq(1); 170 if (crp == NULL) { 180 crypto_freereq(crp); 185 crdc = crp->crp_desc; 197 crp->crp_ilen = m->m_pkthdr.len - (skip + hlen); 198 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC; 199 crp 220 ipcomp_input_cb(struct cryptop *crp) argument 277 crypto_freereq(crp), crp = NULL; local 352 struct cryptop *crp; local 480 ipcomp_output_cb(struct cryptop *crp) argument [all...] |
H A D | xform_esp.c | 92 static int esp_output_cb(struct cryptop *crp); 280 struct cryptop *crp; local 367 crp = crypto_getreq(esph && espx ? 2 : 1); 368 if (crp == NULL) { 384 crypto_freereq(crp); 394 struct cryptodesc *crda = crp->crp_desc; 415 crde = crp->crp_desc; 419 crp->crp_ilen = m->m_pkthdr.len; /* Total input length */ 420 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC; 421 crp 458 esp_input_cb(struct cryptop *crp) argument 563 crypto_freereq(crp), crp = NULL; local 691 struct cryptop *crp; local 918 esp_output_cb(struct cryptop *crp) argument [all...] |
H A D | xform_ah.c | 585 struct cryptop *crp; local 630 crp = crypto_getreq(1); 631 if (crp == NULL) { 638 crda = crp->crp_desc; 674 crypto_freereq(crp); 699 crypto_freereq(crp); 705 crp->crp_ilen = m->m_pkthdr.len; /* Total input length. */ 706 crp->crp_flags = CRYPTO_F_IMBUF | CRYPTO_F_CBIFSYNC; 707 crp->crp_buf = (caddr_t) m; 708 crp 733 ah_input_cb(struct cryptop *crp) argument 911 struct cryptop *crp; local 1132 ah_output_cb(struct cryptop *crp) argument [all...] |
/freebsd-9.3-release/sys/opencrypto/ |
H A D | crypto.c | 177 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 D | cryptodev.c | 656 struct cryptop *crp = NULL; local 683 crp = crypto_getreq((cse->txform != NULL) + (cse->thash != NULL)); 684 if (crp == NULL) { 690 crda = crp->crp_desc; 695 crde = crp->crp_desc; 728 crp->crp_ilen = cop->len; 729 crp->crp_flags = CRYPTO_F_IOV | CRYPTO_F_CBIMM 731 crp->crp_buf = (caddr_t)&cse->uio; 732 crp->crp_callback = (int (*) (struct cryptop *)) cryptodev_cb; 733 crp 817 struct cryptop *crp = (struct cryptop *) op; local [all...] |
H A D | cryptosoft.c | 963 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-9.3-release/sys/crypto/via/ |
H A D | padlock_cipher.c | 169 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 D | padlock.c | 70 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 D | padlock.h | 87 struct cryptodesc *enccrd, struct cryptop *crp); 91 struct cryptodesc *maccrd, struct cryptop *crp);
|
/freebsd-9.3-release/lib/libc/rpc/ |
H A D | pmap_rmt.c | 159 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-9.3-release/sys/crypto/aesni/ |
H A D | aesni.c | 236 aesni_process(device_t dev, struct cryptop *crp, int hint __unused) argument 247 if (crp == NULL) 250 if (crp->crp_callback == NULL || crp->crp_desc == NULL) { 255 for (crd = crp->crp_desc; crd != NULL; crd = crd->crd_next) { 276 if (ses->id == (crp->crp_sid & 0xffffffff)) 285 error = aesni_cipher_process(ses, enccrd, crp); 290 crp->crp_etype = error; 291 crypto_done(crp); 296 aesni_cipher_alloc(struct cryptodesc *enccrd, struct cryptop *crp, argument [all...] |
H A D | aesni_wrap.c | 247 struct cryptop *crp) 253 buf = aesni_cipher_alloc(enccrd, crp, &allocated); 279 crypto_copyback(crp->crp_flags, crp->crp_buf, 293 crypto_copydata(crp->crp_flags, crp->crp_buf, 307 crypto_copyback(crp->crp_flags, crp->crp_buf, enccrd->crd_skip, 310 crypto_copydata(crp->crp_flags, crp 246 aesni_cipher_process(struct aesni_session *ses, struct cryptodesc *enccrd, struct cryptop *crp) argument [all...] |
/freebsd-9.3-release/sys/mips/rmi/dev/sec/ |
H A D | rmisec.c | 62 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-9.3-release/sys/dev/glxsb/ |
H A D | glxsb.h | 53 struct cryptodesc *maccrd, struct cryptop *crp);
|
H A D | glxsb.c | 716 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...] |
H A D | glxsb_hash.c | 157 struct cryptop *crp) 164 error = glxsb_authcompute(ses, maccrd, crp->crp_buf, crp->crp_flags); 156 glxsb_hash_process(struct glxsb_session *ses, struct cryptodesc *maccrd, struct cryptop *crp) argument
|
/freebsd-9.3-release/sys/mips/cavium/cryptocteon/ |
H A D | cryptocteon.c | 339 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-9.3-release/sys/dev/sec/ |
H A D | sec.c | 89 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, 1200 sec_split_crp(struct cryptop *crp, struct cryptodesc **enc, argument 1205 e = crp->crp_desc; 1355 sec_process(device_t dev, struct cryptop *crp, in argument 1485 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 1537 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 1621 sec_aesu_make_desc(struct sec_softc *sc, struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp, int buftype) argument 1681 sec_deu_make_desc(struct sec_softc *sc, struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp, int buftype) argument 1801 sec_mdeu_make_desc(struct sec_softc *sc, struct sec_session *ses, struct sec_desc *desc, struct cryptop *crp, int buftype) argument [all...] |
/freebsd-9.3-release/sys/rpc/ |
H A D | svc_auth.c | 165 svc_getcred(struct svc_req *rqst, struct ucred **crp, int *flavorp) argument 184 *crp = cr; 190 return (_svcauth_rpcsec_gss_getcred(rqst, crp, flavorp));
|