Lines Matching defs:keylen
381 packet_set_encryption_key(const u_char *key, u_int keylen,
388 if (keylen < 20)
389 fatal("packet_set_encryption_key: keylen too small: %d", keylen);
390 if (keylen > SSH_SESSION_KEY_LENGTH)
391 fatal("packet_set_encryption_key: keylen too big: %d", keylen);
392 memcpy(ssh1_key, key, keylen);
393 ssh1_keylen = keylen;
394 cipher_init(&send_context, cipher, key, keylen, NULL, 0, CIPHER_ENCRYPT);
395 cipher_init(&receive_context, cipher, key, keylen, NULL, 0, CIPHER_DECRYPT);