YubiHsmSharp.BouncyCastle 2.7.3-alpha

This is a prerelease version of YubiHsmSharp.BouncyCastle.
dotnet add package YubiHsmSharp.BouncyCastle --version 2.7.3-alpha
                    
NuGet\Install-Package YubiHsmSharp.BouncyCastle -Version 2.7.3-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="YubiHsmSharp.BouncyCastle" Version="2.7.3-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YubiHsmSharp.BouncyCastle" Version="2.7.3-alpha" />
                    
Directory.Packages.props
<PackageReference Include="YubiHsmSharp.BouncyCastle" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add YubiHsmSharp.BouncyCastle --version 2.7.3-alpha
                    
#r "nuget: YubiHsmSharp.BouncyCastle, 2.7.3-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package YubiHsmSharp.BouncyCastle@2.7.3-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=YubiHsmSharp.BouncyCastle&version=2.7.3-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=YubiHsmSharp.BouncyCastle&version=2.7.3-alpha&prerelease
                    
Install as a Cake Tool

YubiHsmSharp.BouncyCastle

A compatibility shim that exposes YubiHSM 2 operations through BouncyCastle-defined interfaces. All cryptography performed by these classes occurs externally in the YubiHSM 2 device.

Supported Types

IAsymmetricBlockCipher

  • YubiRsaOaep - Decrypts data using on-device RSA-OAEP.
  • YubiRsaPkcs - Signs and decrypts data using on-device RSA-PKCS#1v1.5.
  • YubiRsaPss - Signs data using on-device RSA-PSS.

IAsymmetricCipherKeyPairGenerator

  • YubiEcdsaKeyGenerator - Generates and stores an EC key pair directly on the device.
  • YubiEddsaKeyGenerator - Generates and stores an ED key pair directly on the device.
  • YubiRsaKeyGenerator - Generates and stores an RSA key pair directly on the device.

IBasicAgreement

  • YubiEcdh - Generates a shared ECDH secret using a stored private key.

IBlockCipher

  • YubiAes - Encrypts and decrypts data using on-device AES.

IBufferedCipher

  • YubiAesCbc - Encrypts and decrypts data using on-device AES/CBC.

CipherKeyGenerator

  • YubiAesKeyGenerator - Generates and stores a new AES key directly on the device.
  • YubiHmacKeyGenerator - Generates and stores a new HMAC key directly on the device.
  • YubiWrapKeyGenerator - Generates and stores a new Wrap key directly only the device.

ICipherParameters

  • YubiECPrivateKeyParameters - Contains the Object ID of an asymmetric key. Usable only with YubiEcdsa.
  • YubiECPublicKeyParameters - Contains the Object ID and public portion of an asymmetric key. Usable with all BouncyCastle ciphers.
  • YubiEd25519PrivateKeyParameters - Contains the Object ID of an asymmetric key. Usable only with YubiEddsa.
  • YubiEd25519PublicKeyParameters - Contains the Object ID and public portion of an asymmetric key. Usable with all BouncyCastle ciphers.
  • YubiHmacKeyParameter - Contains the Object ID of an HMAC key. Usable only with YubiHmac.
  • YubiRsaKeyParameters - Contains the Object ID and may contain the public portion of an asymmetric key. Private keys are only usable with YubiRsaOaep, YubiRsaPkcs, and YubiRsaPss. Public keys are usable with all BouncyCastle ciphers.
  • YubiSymmetricKeyParameter - Contains the Object ID of a symmetric key. Usable only with YubiAes and YubiAesCbc.
  • YubiWrapKeyParameter - Contains the Object ID of a wrap key. Usable only with YubiWrap.

IDsa

  • YubiEcdsa - Signs data using on-device ECDSA.

KeyGenerationParameters

  • YubiKeyGenerationParameters - Contains metadata to be associated with a generated and stored key. Only usable with Yubi...KeyGenerator generators.
  • YubiDelegationKeyGenerationParameters - Contains metadata to be associated with a generated and stored key. Only usable with YubiWrapKeyGenerator.

IMac

  • YubiHmac - Signs data using on-device HMAC.

IRandomGenerator

  • YubiRandomGenerator - Generates pseudo-random bytes directly on the device.

ISigner

  • YubiEddsa - Signs data using on-device Ed25519.

IWrapper

  • YubiWrap - Wraps and unwraps data using on-device Wrap methods.
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.7.3-alpha 0 6/14/2026