go.crypto.rsa
1.26.10.1
dotnet add package go.crypto.rsa --version 1.26.10.1
NuGet\Install-Package go.crypto.rsa -Version 1.26.10.1
<PackageReference Include="go.crypto.rsa" Version="1.26.10.1" />
<PackageVersion Include="go.crypto.rsa" Version="1.26.10.1" />
<PackageReference Include="go.crypto.rsa" />
paket add go.crypto.rsa --version 1.26.10.1
#r "nuget: go.crypto.rsa, 1.26.10.1"
#:package go.crypto.rsa@1.26.10.1
#addin nuget:?package=go.crypto.rsa&version=1.26.10.1
#tool nuget:?package=go.crypto.rsa&version=1.26.10.1
go.crypto.rsa
C# package converted from the Go standard library by go2cs.
From C#, call this package through the static class go.crypto.rsa_package; see Consuming converted Go from C#.
Package rsa implements RSA encryption as specified in PKCS #1 and RFC 8017.
RSA is a single, fundamental operation that is used in this package to implement either public-key encryption or public-key signatures.
The original specification for encryption and signatures with RSA is PKCS #1 and the terms "RSA encryption" and "RSA signatures" by default refer to PKCS #1 version 1.5. However, that specification has flaws and new designs should use version 2, usually called by just OAEP and PSS, where possible.
Two sets of interfaces are included in this package. When a more abstract interface isn't necessary, there are functions for encrypting/decrypting with v1.5/OAEP and signing/verifying with v1.5/PSS. If one needs to abstract over the public key primitive, the PrivateKey type implements the Decrypter and Signer interfaces from the crypto package.
Operations involving private keys are implemented using constant-time algorithms, except for [GenerateKey] and for some operations involving deprecated multi-prime keys.
Minimum key size
[GenerateKey] returns an error if a key of less than 1024 bits is requested, and all Sign, Verify, Encrypt, and Decrypt methods return an error if used with a key smaller than 1024 bits. Such keys are insecure and should not be used.
The rsa1024min=0 GODEBUG setting suppresses this error, but we recommend doing so only in tests, if necessary. Tests can set this option using testing.T.Setenv or by including "//go:debug rsa1024min=0" in a *_test.go source file.
Alternatively, see the GenerateKey (TestKey) example for a pregenerated test-only 2048-bit key.
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 (>= 1.26.10.1)
- go.crypto.internal.boring (>= 1.26.10.1)
- go.crypto.internal.boring.bbig (>= 1.26.10.1)
- go.crypto.internal.fips140.bigmod (>= 1.26.10.1)
- go.crypto.internal.fips140.rsa (>= 1.26.10.1)
- go.crypto.internal.fips140hash (>= 1.26.10.1)
- go.crypto.internal.fips140only (>= 1.26.10.1)
- go.crypto.internal.rand (>= 1.26.10.1)
- go.crypto.rand (>= 1.26.10.1)
- go.crypto.subtle (>= 1.26.10.1)
- go.errors (>= 1.26.10.1)
- go.fmt (>= 1.26.10.1)
- go.hash (>= 1.26.10.1)
- go.internal.godebug (>= 1.26.10.1)
- go.io (>= 1.26.10.1)
- go.lib (>= 1.26.10.1)
- go.math (>= 1.26.10.1)
- go.math.big (>= 1.26.10.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on go.crypto.rsa:
| Package | Downloads |
|---|---|
|
go.crypto.x509
crypto.x509 (net10.0 - Release) -- C# project converted from Go source |
|
|
go.crypto.tls
crypto.tls (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.10 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.10; review before any production use. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.26.10.1 | 36 | 10/26/2026 |
| 1.24.13.7 | 202 | 10/14/2026 |
| 1.24.13.6 | 204 | 10/12/2026 |
| 1.24.13.5 | 222 | 10/9/2026 |
| 1.24.13.4 | 214 | 10/6/2026 |
| 1.24.13.3 | 224 | 10/2/2026 |
| 1.24.13.2 | 217 | 9/24/2026 |
| 1.24.13.1 | 219 | 9/24/2026 |
| 1.23.12.3 | 266 | 9/8/2026 |
| 1.23.12.2 | 243 | 8/29/2026 |
| 1.23.12.1 | 254 | 8/26/2026 |
| 1.23.1.7 | 349 | 8/23/2026 |
| 1.23.1.6 | 302 | 8/11/2026 |
| 1.23.1.5 | 305 | 8/9/2026 |
| 1.23.1.4 | 317 | 8/8/2026 |
| 1.23.1.3 | 342 | 8/4/2026 |
| 1.23.1.2 | 354 | 7/27/2026 |
| 1.23.1.1 | 361 | 7/14/2026 |