aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo@golang.org>2024-12-16 17:44:21 +0100
committerGopher Robot <gobot@golang.org>2024-12-17 11:35:50 -0800
commitb9e2ffdcd2520c136c4e98f67f0c714f989d31ab (patch)
tree4436c4d5ff376b51a02f2c38e743a062a6d384a7 /src
parent8790372a8d7e777d23d6b77d248318d01f4d7c4d (diff)
downloadgo-b9e2ffdcd2520c136c4e98f67f0c714f989d31ab.tar.xz
crypto/internal/fips140: add Name and Version
Per ISO/IEC 19790:2012, Section 7.4.3.1. > A cryptographic module shall [04.12] provide the following services to > operators. > > a) Show module’s versioning information. The cryptographic module > shall [04.13] output the name or module identifier and the versioning > information that can be correlated with a validation record (e.g. > hardware, software and/or firmware versioning information)." For #69536 Change-Id: I8061f64e4ae60a4666f6abd892cb1301d6bf2452 Reviewed-on: https://go-review.googlesource.com/c/go/+/636558 Auto-Submit: Filippo Valsorda <filippo@golang.org> Reviewed-by: Daniel McCarney <daniel@binaryparadox.net> Reviewed-by: Roland Shoemaker <roland@golang.org> Reviewed-by: David Chase <drchase@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src')
-rw-r--r--src/crypto/internal/fips140/fips140.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/crypto/internal/fips140/fips140.go b/src/crypto/internal/fips140/fips140.go
index cec9d13e35..d30433debf 100644
--- a/src/crypto/internal/fips140/fips140.go
+++ b/src/crypto/internal/fips140/fips140.go
@@ -19,3 +19,11 @@ func init() {
debug = true
}
}
+
+func Name() string {
+ return "Go Cryptographic Module"
+}
+
+func Version() string {
+ return "v1.0"
+}