go.crypto.hmac
1.24.13.3
See the version list below for details.
dotnet add package go.crypto.hmac --version 1.24.13.3
NuGet\Install-Package go.crypto.hmac -Version 1.24.13.3
<PackageReference Include="go.crypto.hmac" Version="1.24.13.3" />
<PackageVersion Include="go.crypto.hmac" Version="1.24.13.3" />
<PackageReference Include="go.crypto.hmac" />
paket add go.crypto.hmac --version 1.24.13.3
#r "nuget: go.crypto.hmac, 1.24.13.3"
#:package go.crypto.hmac@1.24.13.3
#addin nuget:?package=go.crypto.hmac&version=1.24.13.3
#tool nuget:?package=go.crypto.hmac&version=1.24.13.3
go.crypto.hmac
C# package converted from the Go standard library by go2cs.
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.24.13.3)
- go.crypto.internal.fips140.hmac (>= 1.24.13.3)
- go.crypto.internal.fips140hash (>= 1.24.13.3)
- go.crypto.internal.fips140only (>= 1.24.13.3)
- go.crypto.subtle (>= 1.24.13.3)
- go.hash (>= 1.24.13.3)
- go.lib (>= 1.24.13.3)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on go.crypto.hmac:
| Package | Downloads |
|---|---|
|
go.crypto.tls
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
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.24.13 standard library; not affiliated with or endorsed by the golang-jwt maintainers or the Go project. Security: that standard library carries no Go security fixes issued after Go 1.24.13; review before any production use. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.24.13.6 | 0 | 10/12/2026 |
| 1.24.13.5 | 83 | 10/9/2026 |
| 1.24.13.4 | 182 | 10/6/2026 |
| 1.24.13.3 | 205 | 10/2/2026 |
| 1.24.13.2 | 202 | 9/24/2026 |
| 1.24.13.1 | 201 | 9/24/2026 |
| 1.23.12.3 | 270 | 9/8/2026 |
| 1.23.12.2 | 253 | 8/29/2026 |
| 1.23.12.1 | 247 | 8/26/2026 |
| 1.23.1.7 | 361 | 8/23/2026 |
| 1.23.1.6 | 313 | 8/11/2026 |
| 1.23.1.5 | 312 | 8/9/2026 |
| 1.23.1.4 | 325 | 8/8/2026 |
| 1.23.1.3 | 349 | 8/4/2026 |
| 1.23.1.2 | 360 | 7/27/2026 |
| 1.23.1.1 | 372 | 7/14/2026 |