Lines Matching defs:ses
247 printf("ses :%d\n",(uint32_t)cmd->ses);
456 struct xlp_sec_session *ses = NULL;
463 ses = sc->sc_sessions = malloc(sizeof(struct xlp_sec_session),
465 if (ses == NULL)
472 ses = &sc->sc_sessions[sesn];
477 if (ses == NULL) {
479 ses = malloc((sesn + 1)*sizeof(struct xlp_sec_session),
481 if (ses == NULL)
483 bcopy(sc->sc_sessions, ses, sesn * sizeof(*ses));
484 bzero(sc->sc_sessions, sesn * sizeof(*ses));
486 sc->sc_sessions = ses;
487 ses = &sc->sc_sessions[sesn];
491 bzero(ses, sizeof(*ses));
492 ses->sessionid = sesn;
493 cmd = &ses->cmd;
494 ses->hs_used = 1;
505 ses->hs_mlen = c->cri_mlen;
506 if (ses->hs_mlen == 0) {
510 ses->hs_mlen = 16;
514 ses->hs_mlen = 20;
523 read_random(ses->ses_iv, c->cri_alg ==
539 cmd->hash_dst_len = ses->hs_mlen;
701 struct xlp_sec_session *ses;
712 ses = &sc->sc_sessions[session];
722 cmd->hash_dst_len = ses->hs_mlen;