Lines Matching full:nonce
112 if (mode->ivsize < offsetofend(union fscrypt_iv, nonce)) { in supported_direct_key_modes()
293 * @nonce: nonce to use
296 * encryption policy. @nonce must be a new random nonce.
302 const u8 nonce[FSCRYPT_FILE_NONCE_SIZE]) in fscrypt_new_context()
320 memcpy(ctx->nonce, nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_new_context()
336 memcpy(ctx->nonce, nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_new_context()
432 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; in set_encryption_policy() local
470 get_random_bytes(nonce, FSCRYPT_FILE_NONCE_SIZE); in set_encryption_policy()
471 ctxsize = fscrypt_new_context(&ctx, policy, nonce); in set_encryption_policy()
592 /* FS_IOC_GET_ENCRYPTION_NONCE: retrieve file's encryption nonce for testing */
710 * @inode: inode from which to fetch policy and nonce