go.crypto.hmac
1.23.12.2
dotnet add package go.crypto.hmac --version 1.23.12.2
NuGet\Install-Package go.crypto.hmac -Version 1.23.12.2
<PackageReference Include="go.crypto.hmac" Version="1.23.12.2" />
<PackageVersion Include="go.crypto.hmac" Version="1.23.12.2" />
<PackageReference Include="go.crypto.hmac" />
paket add go.crypto.hmac --version 1.23.12.2
#r "nuget: go.crypto.hmac, 1.23.12.2"
#:package go.crypto.hmac@1.23.12.2
#addin nuget:?package=go.crypto.hmac&version=1.23.12.2
#tool nuget:?package=go.crypto.hmac&version=1.23.12.2
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. The go2cs conversion itself is distributed under the MIT license.
| 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.23.12.2)
- go.crypto.subtle (>= 1.23.12.2)
- go.hash (>= 1.23.12.2)
- go.lib (>= 1.23.12.2)
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 (net10.0 - Release) -- C# project converted from Go source |
|
|
go.crypto.tls
crypto.tls (net10.0 - Release) -- C# project converted from Go source |
|
|
go.net.smtp
net.smtp (net10.0 - Release) -- C# project converted from Go source |
GitHub repositories
This package is not used by any popular GitHub repositories.