Lines Matching refs:sess
235 struct session_op sess;
242 memset(&sess, 0, sizeof(sess));
243 sess.key = (caddr_t)"123456789abcdefghijklmno";
248 sess.cipher = ciphers[i].id;
249 sess.keylen = ciphers[i].keylen;
250 sess.mac = 0;
251 if (ioctl(fd, CIOCGSESSION, &sess) != -1 &&
252 ioctl(fd, CIOCFSESSION, &sess.ses) != -1)
275 struct session_op sess;
282 memset(&sess, 0, sizeof(sess));
283 sess.mackey = (caddr_t)"123456789abcdefghijklmno";
287 sess.mac = digests[i].id;
288 sess.mackeylen = digests[i].keylen;
289 sess.cipher = 0;
290 if (ioctl(fd, CIOCGSESSION, &sess) != -1 &&
291 ioctl(fd, CIOCFSESSION, &sess.ses) != -1)
360 struct session_op *sess = &state->d_sess;
373 cryp.ses = sess->ses;
413 struct session_op *sess = &state->d_sess;
429 memset(sess, 0, sizeof(struct session_op));
434 sess->key = (caddr_t)key;
435 sess->keylen = ctx->key_len;
436 sess->cipher = cipher;
438 if (ioctl(state->d_fd, CIOCGSESSION, sess) == -1) {
455 struct session_op *sess = &state->d_sess;
471 if (ioctl(state->d_fd, CIOCFSESSION, &sess->ses) == -1) {
669 struct session_op *sess = &state->d_sess;
684 sess->mackey = state->dummy_mac_key;
685 sess->mackeylen = digest_key_length(ctx->digest->type);
686 sess->mac = digest;
688 if (ioctl(state->d_fd, CIOCGSESSION, sess) < 0) {
703 struct session_op *sess = &state->d_sess;
731 cryp.ses = sess->ses;
749 struct session_op *sess = &state->d_sess;
762 cryp.ses = sess->ses;
787 struct session_op *sess = &state->d_sess;
803 if (ioctl(state->d_fd, CIOCFSESSION, &sess->ses) < 0) {