Lines Matching refs:key_type
397 const struct key_type* kt,
411 * Build a struct key_type.
414 init_key_type (struct key_type *kt, const char *ciphername,
459 /* given a key and key_type, build a key_ctx */
462 const struct key_type *kt, int enc,
533 key_is_zero (struct key *key, const struct key_type *kt)
544 * Make sure that cipher key is a valid key for current key_type.
547 check_key (struct key *key, const struct key_type *kt)
580 fixup_key (struct key *key, const struct key_type *kt)
607 check_replay_iv_consistency (const struct key_type *kt, bool packet_id, bool use_iv)
614 cfb_ofb_mode (const struct key_type* kt)
624 * Generate a random key. If key_type is provided, make
625 * sure generated key is valid for key_type.
628 generate_key_random (struct key *key, const struct key_type *kt)
664 const struct key_type *kt,
742 get_tls_handshake_key (const struct key_type *key_type,
748 if (passphrase_file && key_type->hmac_length)
751 struct key_type kt = *key_type;
1222 verify_fix_key2 (struct key2 *key2, const struct key_type *kt, const char *shared_secret_file)
1238 /* given a key and key_type, write key to buffer */
1240 write_key (const struct key *key, const struct key_type *kt,
1259 * Given a key_type and buffer, read key from buffer.
1265 read_key (struct key *key, const struct key_type *kt, struct buffer *buf)