Lines Matching refs:enc
286 choose_enc(Enc *enc, char *client, char *server)
292 if ((enc->cipher = cipher_by_name(name)) == NULL)
294 enc->name = name;
295 enc->enabled = 0;
296 enc->iv = NULL;
297 enc->key = NULL;
298 enc->key_len = cipher_keylen(enc->cipher);
299 enc->block_size = cipher_blocksize(enc->cipher);
441 choose_enc (&newkeys->enc, cprop[nenc], sprop[nenc]);
446 newkeys->enc.name,
456 if (need < newkeys->enc.key_len)
457 need = newkeys->enc.key_len;
458 if (need < newkeys->enc.block_size)
459 need = newkeys->enc.block_size;
545 current_keys[mode]->enc.iv = keys[ctos ? 0 : 1];
546 current_keys[mode]->enc.key = keys[ctos ? 2 : 3];