go.crypto.hmac
1.26.10.2
See the version list below for details.
dotnet add package go.crypto.hmac --version 1.26.10.2
NuGet\Install-Package go.crypto.hmac -Version 1.26.10.2
<PackageReference Include="go.crypto.hmac" Version="1.26.10.2" />
<PackageVersion Include="go.crypto.hmac" Version="1.26.10.2" />
<PackageReference Include="go.crypto.hmac" />
paket add go.crypto.hmac --version 1.26.10.2
#r "nuget: go.crypto.hmac, 1.26.10.2"
#:package go.crypto.hmac@1.26.10.2
#addin nuget:?package=go.crypto.hmac&version=1.26.10.2
#tool nuget:?package=go.crypto.hmac&version=1.26.10.2
go.crypto.hmac
C# package converted from the Go standard library by go2cs.
From C#, call this package through the static class go.crypto.hmac_package; see Consuming converted Go from C#.
Package hmac implements the Keyed-Hash Message Authentication Code (HMAC) as defined in U.S. Federal Information Processing Standards Publication 198. An HMAC is a cryptographic hash that uses a key to sign a message. The receiver verifies the hash by recomputing it using the same key.
Receivers should be careful to use Equal to compare MACs in order to avoid timing side-channels:
// ValidMAC reports whether messageMAC is a valid HMAC tag for message.
func ValidMAC(message, messageMAC, key []byte) bool {
mac := hmac.New(sha256.New, key)
mac.Write(message)
expectedMAC := mac.Sum(nil)
return hmac.Equal(messageMAC, expectedMAC)
}
Copyright 2009 The Go Authors. All rights reserved. This C# package is converted from Go standard library source; use of that source is governed by a BSD-style license that can be found in the LICENSE file.
Artwork licensed under Creative Commons Attribution 3.0; see artwork attribution.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- go.crypto.internal.boring (= 1.26.10.2)
- go.crypto.internal.fips140.hmac (= 1.26.10.2)
- go.crypto.internal.fips140hash (= 1.26.10.2)
- go.crypto.internal.fips140only (= 1.26.10.2)
- go.crypto.subtle (= 1.26.10.2)
- go.hash (= 1.26.10.2)
- go.lib (= 1.26.10.2)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on go.crypto.hmac:
| Package | Downloads |
|---|---|
|
go.crypto.tls
go.crypto.tls (net10.0 - Release) -- C# project converted from Go source |
|
|
go.vendor.golang.org.x.crypto.hkdf
vendor.golang.org.x.crypto.hkdf (net10.0 - Release) -- C# project converted from Go source |
|
|
go.net.smtp
go.net.smtp (net10.0 - Release) -- C# project converted from Go source |
|
|
nugetgo.github.com.golang-jwt.jwt.v5
unofficial go2cs C# conversion of github.com/golang-jwt/jwt/v5 v5.3.1, built on the Go 1.26.11 standard library; not affiliated with or endorsed by the golang-jwt maintainers or the Go project. Security: the Go standard library this package is built on includes no Go security fixes released after Go 1.26.11; review before any production use. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.26.11.1 | 404 | 11/19/2026 |
| 1.26.10.3 | 359 | 11/9/2026 |
| 1.26.10.2 | 349 | 11/4/2026 |
| 1.26.10.1 | 300 | 10/26/2026 |
| 1.24.13.7 | 222 | 10/14/2026 |
| 1.24.13.6 | 218 | 10/12/2026 |
| 1.24.13.5 | 234 | 10/9/2026 |
| 1.24.13.4 | 223 | 10/6/2026 |
| 1.24.13.3 | 232 | 10/2/2026 |
| 1.24.13.2 | 222 | 9/24/2026 |
| 1.24.13.1 | 224 | 9/24/2026 |
| 1.23.12.3 | 293 | 9/8/2026 |
| 1.23.12.2 | 267 | 8/29/2026 |
| 1.23.12.1 | 264 | 8/26/2026 |
| 1.23.1.7 | 379 | 8/23/2026 |
| 1.23.1.6 | 325 | 8/11/2026 |
| 1.23.1.5 | 326 | 8/9/2026 |
| 1.23.1.4 | 335 | 8/8/2026 |
| 1.23.1.3 | 361 | 8/4/2026 |
| 1.23.1.2 | 374 | 7/27/2026 |