Lines Matching full:nonce
114 if (mode->ivsize < offsetofend(union fscrypt_iv, nonce)) { in supported_direct_key_modes()
320 * @nonce: nonce to use
323 * encryption policy. @nonce must be a new random nonce.
329 const u8 nonce[FSCRYPT_FILE_NONCE_SIZE]) in fscrypt_new_context()
347 memcpy(ctx->nonce, nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_new_context()
364 memcpy(ctx->nonce, nonce, FSCRYPT_FILE_NONCE_SIZE); in fscrypt_new_context()
461 u8 nonce[FSCRYPT_FILE_NONCE_SIZE]; in set_encryption_policy() local
499 get_random_bytes(nonce, FSCRYPT_FILE_NONCE_SIZE); in set_encryption_policy()
500 ctxsize = fscrypt_new_context(&ctx, policy, nonce); in set_encryption_policy()
621 /* FS_IOC_GET_ENCRYPTION_NONCE: retrieve file's encryption nonce for testing */
739 * @inode: inode from which to fetch policy and nonce