Searched refs:FSCRYPT_FILE_NONCE_SIZE (Results 1 – 5 of 5) sorted by relevance
/fs/crypto/ |
D | fscrypt_private.h | 21 #define FSCRYPT_FILE_NONCE_SIZE 16 macro 63 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; 74 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; 306 u8 ci_nonce[FSCRYPT_FILE_NONCE_SIZE]; 343 u8 nonce[FSCRYPT_FILE_NONCE_SIZE];
|
D | keysetup.c | 302 ci->ci_nonce, FSCRYPT_FILE_NONCE_SIZE, in fscrypt_derive_dirhash_key() 404 ci->ci_nonce, FSCRYPT_FILE_NONCE_SIZE, in fscrypt_setup_v2_file_key() 604 const u8 nonce[FSCRYPT_FILE_NONCE_SIZE], in fscrypt_setup_encryption_info() argument 622 memcpy(crypt_info->ci_nonce, nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_setup_encryption_info() 759 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; in fscrypt_prepare_new_inode() 781 get_random_bytes(nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_prepare_new_inode()
|
D | policy.c | 327 const u8 nonce[FSCRYPT_FILE_NONCE_SIZE]) in fscrypt_new_context() argument 345 memcpy(ctx->nonce, nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_new_context() 362 memcpy(ctx->nonce, nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_new_context() 459 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; in set_encryption_policy() 497 get_random_bytes(nonce, FSCRYPT_FILE_NONCE_SIZE); in set_encryption_policy() 632 FSCRYPT_FILE_NONCE_SIZE)) in fscrypt_ioctl_get_nonce()
|
D | keysetup_v1.c | 48 const u8 nonce[FSCRYPT_FILE_NONCE_SIZE], in derive_key_aes() argument 71 res = crypto_skcipher_setkey(tfm, nonce, FSCRYPT_FILE_NONCE_SIZE); in derive_key_aes()
|
D | crypto.c | 102 memcpy(iv->nonce, ci->ci_nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_generate_iv()
|