Lines Matching defs:sop
251 struct session2_op sop;
255 bzero(&sop, sizeof(sop));
257 sop.keylen = (alg->minkeylen + alg->maxkeylen)/2;
258 sop.key = (char *) malloc(sop.keylen);
259 if (sop.key == NULL)
261 for (i = 0; i < sop.keylen; i++)
262 sop.key[i] = rdigit();
263 sop.cipher = alg->code;
265 sop.mackeylen = (alg->minkeylen + alg->maxkeylen)/2;
266 sop.mackey = (char *) malloc(sop.mackeylen);
267 if (sop.mackey == NULL)
269 for (i = 0; i < sop.mackeylen; i++)
270 sop.mackey[i] = rdigit();
271 sop.mac = alg->code;
273 sop.crid = crid;
274 if (ioctl(fd, cmd, &sop) < 0) {
280 printf(" mackeylen %u\n", sop.mackeylen);
282 printf(" keylen %u\n", sop.keylen);
289 alg->name, sop.keylen, sop.mackeylen);
305 printf("session = 0x%x\n", sop.ses);
306 printf("device = %s\n", crfind(sop.crid));
319 cop.ses = sop.ses;
337 cop.ses = sop.ses;
359 cop.ses = sop.ses;
374 if (ioctl(fd, CIOCFSESSION, &sop.ses) < 0)