Home | History | Annotate | Download | only in evp

Lines Matching full:cryp

156     struct crypt_op cryp;
165 memset(&cryp,'\0',sizeof cryp);
166 cryp.ses=CDATA(ctx)->ses;
167 cryp.op=ctx->encrypt ? COP_ENCRYPT : COP_DECRYPT;
168 cryp.flags=0;
169 cryp.len=inl;
171 cryp.src=(caddr_t)in;
172 cryp.dst=(caddr_t)out;
173 cryp.mac=0;
175 cryp.iv=(caddr_t)ctx->iv;
178 memcpy(lb,&in[cryp.len-ctx->cipher->iv_len],ctx->cipher->iv_len);
180 if(ioctl(fd, CIOCCRYPT, &cryp) == -1)
195 cryp.src=cin;
201 cryp.dst=cout;
204 cryp.len=cinl;
206 if(ioctl(fd, CIOCCRYPT, &cryp) == -1)
209 printf("src=%p dst=%p\n",cryp.src,cryp.dst);
231 memcpy(ctx->iv,&out[cryp.len-ctx->cipher->iv_len],ctx->cipher->iv_len);
318 struct crypt_op cryp;
332 memset(&cryp,'\0',sizeof cryp);
333 cryp.ses=ses;
334 cryp.op=COP_ENCRYPT;/* required to do the MAC rather than check it */
335 cryp.len=len;
336 cryp.src=(caddr_t)data;
337 cryp.dst=(caddr_t)data; // FIXME!!!
338 cryp.mac=(caddr_t)md;
340 if(ioctl(fd, CIOCCRYPT, &cryp) == -1)
348 cryp.src=dcopy;
349 cryp.dst=cryp.src; // FIXME!!!
351 if(ioctl(fd, CIOCCRYPT, &cryp) == -1)