Lines Matching refs:key_size
285 crypt_stat->key_size); in crypt_scatterlist()
287 crypt_stat->key_size); in crypt_scatterlist()
304 crypt_stat->key_size); in crypt_scatterlist()
539 crypt_stat->key_size << 3); in ecryptfs_init_crypt_ctx()
621 crypt_stat->key_size); in ecryptfs_compute_root_iv()
638 get_random_bytes(crypt_stat->key, crypt_stat->key_size); in ecryptfs_generate_new_key()
644 crypt_stat->key_size); in ecryptfs_generate_new_key()
718 crypt_stat->key_size = ECRYPTFS_DEFAULT_KEY_BYTES; in ecryptfs_set_default_crypt_stat_vals()
770 crypt_stat->key_size = in ecryptfs_new_file_context()
1521 char *cipher_name, size_t *key_size) in ecryptfs_process_key_cipher() argument
1528 if (*key_size > ECRYPTFS_MAX_KEY_BYTES) { in ecryptfs_process_key_cipher()
1531 "allowable is [%d]\n", *key_size, ECRYPTFS_MAX_KEY_BYTES); in ecryptfs_process_key_cipher()
1546 if (*key_size == 0) in ecryptfs_process_key_cipher()
1547 *key_size = crypto_skcipher_max_keysize(*key_tfm); in ecryptfs_process_key_cipher()
1548 get_random_bytes(dummy_key, *key_size); in ecryptfs_process_key_cipher()
1549 rc = crypto_skcipher_setkey(*key_tfm, dummy_key, *key_size); in ecryptfs_process_key_cipher()
1552 "cipher [%s]; rc = [%d]\n", *key_size, full_alg_name, in ecryptfs_process_key_cipher()
1594 size_t key_size) in ecryptfs_add_new_key_tfm() argument
1610 tmp_tfm->key_size = key_size; in ecryptfs_add_new_key_tfm()
1613 &tmp_tfm->key_size); in ecryptfs_add_new_key_tfm()