go.crypto.hmac
1.23.1.3
dotnet add package go.crypto.hmac --version 1.23.1.3
NuGet\Install-Package go.crypto.hmac -Version 1.23.1.3
<PackageReference Include="go.crypto.hmac" Version="1.23.1.3" />
<PackageVersion Include="go.crypto.hmac" Version="1.23.1.3" />
<PackageReference Include="go.crypto.hmac" />
paket add go.crypto.hmac --version 1.23.1.3
#r "nuget: go.crypto.hmac, 1.23.1.3"
#:package go.crypto.hmac@1.23.1.3
#addin nuget:?package=go.crypto.hmac&version=1.23.1.3
#tool nuget:?package=go.crypto.hmac&version=1.23.1.3
go.crypto.hmac
C# package converted from the Go standard library by go2cs. Go version: 1.23.1
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)
}
Part of the go2cs converted Go standard library. See the repository for usage and details.
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. The go2cs conversion itself is distributed under the MIT license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net9.0
- go.crypto.internal.boring (>= 1.23.1.3)
- go.crypto.subtle (>= 1.23.1.3)
- go.hash (>= 1.23.1.3)
- go.lib (>= 1.23.1.3)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on go.crypto.hmac:
| Package | Downloads |
|---|---|
|
go.vendor.golang.org.x.crypto.hkdf
vendor.golang.org.x.crypto.hkdf (net9.0 - Release) -- C# project converted from Go source |
|
|
go.crypto.tls
crypto.tls (net9.0 - Release) -- C# project converted from Go source |
|
|
go.net.smtp
net.smtp (net9.0 - Release) -- C# project converted from Go source |
GitHub repositories
This package is not used by any popular GitHub repositories.