From dfd4143c65a29e69da59139dc96240d2143b06a9 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Wed, 7 May 2025 10:09:48 +0800 Subject: [PATCH] mldsa: requires golang 1.24+ --- mldsa/compress.go | 2 ++ mldsa/compress_test.go | 2 ++ mldsa/encoder.go | 2 ++ mldsa/field.go | 2 ++ mldsa/field_barrett.go | 2 ++ mldsa/field_test.go | 2 ++ 6 files changed, 12 insertions(+) diff --git a/mldsa/compress.go b/mldsa/compress.go index 343f830..37f8e5d 100644 --- a/mldsa/compress.go +++ b/mldsa/compress.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. +//go:build go1.24 + package mldsa import ( diff --git a/mldsa/compress_test.go b/mldsa/compress_test.go index b319f7b..a60a5fe 100644 --- a/mldsa/compress_test.go +++ b/mldsa/compress_test.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. +//go:build go1.24 + package mldsa import ( diff --git a/mldsa/encoder.go b/mldsa/encoder.go index 777b8d1..938c56f 100644 --- a/mldsa/encoder.go +++ b/mldsa/encoder.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. +//go:build go1.24 + package mldsa import ( diff --git a/mldsa/field.go b/mldsa/field.go index 526bc87..02c7345 100644 --- a/mldsa/field.go +++ b/mldsa/field.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. +//go:build go1.24 + package mldsa import ( diff --git a/mldsa/field_barrett.go b/mldsa/field_barrett.go index 3a88114..74494e7 100644 --- a/mldsa/field_barrett.go +++ b/mldsa/field_barrett.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. +//go:build go1.24 + package mldsa import "math/bits" diff --git a/mldsa/field_test.go b/mldsa/field_test.go index 533962b..ea398a4 100644 --- a/mldsa/field_test.go +++ b/mldsa/field_test.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. +//go:build go1.24 + package mldsa import (