From 1b80b2dbb5358bceb51598e3089326b72ec8685f Mon Sep 17 00:00:00 2001 From: Jakub Chlanda Date: Wed, 5 Aug 2026 14:17:12 +0000 Subject: [PATCH] [PAC] Provide information on where the SipHash tests were derived from --- REUSE.toml | 9 +++++++++ compiler/rustc_middle/src/ptrauth/llvm_siphash/tests.rs | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/REUSE.toml b/REUSE.toml index 7d72caa6d5c..30b6ce6bee2 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -208,3 +208,12 @@ SPDX-FileCopyrightText = [ "Copyright (C) 2000-2024 Free Software Foundation, Inc.", ] SPDX-License-Identifier = "GCC-exception-3.1" + + [[annotations]] + path = "compiler/rustc_middle/src/ptrauth/llvm_siphash/tests.rs" + precedence = "override" + SPDX-FileCopyrightText = [ + "2003-2019 University of Illinois at Urbana-Champaign.", + "The Rust Project Developers (see https://thanks.rust-lang.org)", + ] + SPDX-License-Identifier = "Apache-2.0 WITH LLVM-exception AND (Apache-2.0 OR MIT)" diff --git a/compiler/rustc_middle/src/ptrauth/llvm_siphash/tests.rs b/compiler/rustc_middle/src/ptrauth/llvm_siphash/tests.rs index 6c2f2bf9037..d26b0850798 100644 --- a/compiler/rustc_middle/src/ptrauth/llvm_siphash/tests.rs +++ b/compiler/rustc_middle/src/ptrauth/llvm_siphash/tests.rs @@ -1,3 +1,11 @@ +// Derived from code in LLVM, which is: +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + +// Derived from: +// * https://github.com/llvm/llvm-project/blob/f2453af624353273325fe888d794a925ea9fe852/llvm/unittests/Support/SipHashTest.cpp + use llvm_siphash_vectors::{EXPECTED64, TEST_KEY}; use super::*;