Home | History | Annotate | Download | only in openssh

Lines Matching refs:keylen

548 packet_set_encryption_key(const u_char *key, u_int keylen, int number)
554 if (keylen < 20)
555 fatal("packet_set_encryption_key: keylen too small: %d", keylen);
556 if (keylen > SSH_SESSION_KEY_LENGTH)
557 fatal("packet_set_encryption_key: keylen too big: %d", keylen);
558 memcpy(active_state->ssh1_key, key, keylen);
559 active_state->ssh1_keylen = keylen;
560 cipher_init(&active_state->send_context, cipher, key, keylen, NULL,
562 cipher_init(&active_state->receive_context, cipher, key, keylen, NULL,