Skip to main content

System.Security.Cryptography

NuGet: GHIElectronics.TinyCLR.Cryptography

info

The standard-.NET System.Security.Cryptography API for TinyCLR. It ships inside the GHIElectronics.TinyCLR.Cryptography NuGet — there is no separate package to install.

Classes

ClassNamespaceSummary
AsymmetricAlgorithmSystem.Security.CryptographyAbstract base for asymmetric (public-key) algorithms.
HashAlgorithmSystem.Security.CryptographyAbstract base for cryptographic hash algorithms (MD5, SHA1, SHA256). Matches the .NET BCL surface.
HMACSystem.Security.CryptographyAbstract base for HMAC algorithms (HMAC-SHA1, HMAC-SHA256, etc.).
HMACSHA1System.Security.CryptographyHMAC-SHA1 keyed hash (160-bit output).
HMACSHA256System.Security.CryptographyHMAC-SHA256 keyed hash (256-bit output).
KeyedHashAlgorithmSystem.Security.CryptographyAbstract base for keyed hash algorithms (HMAC family).
MD5System.Security.CryptographyMD5 hash (128-bit). Cryptographically broken; use for checksums, not for security.
RandomNumberGeneratorSystem.Security.CryptographyCryptographically secure RNG. Create via Create(); do not seed manually.
RSASystem.Security.CryptographyAbstract RSA implementation; create concrete instances via RSACryptoServiceProvider.
RSACryptoServiceProviderSystem.Security.CryptographyConcrete RSA implementation. Construct with the desired key size or with externally supplied RSAParameters.
RSAEncryptionPaddingSystem.Security.CryptographyEncryption-padding configuration — padding mode plus (for OAEP) the hash algorithm. Matches the .NET Framework type.
RSASignaturePaddingSystem.Security.CryptographySignature-padding configuration. Matches the .NET Framework type.
SHA1System.Security.CryptographySHA-1 hash (160-bit). Use HashAlgorithm.Create() overloads or instantiate directly.
SHA256System.Security.CryptographySHA-256 hash (256-bit).

Structs

StructNamespaceSummary
HashAlgorithmNameSystem.Security.CryptographyWell-known hash-algorithm name selector matching .NET Framework's System.Security.Cryptography.HashAlgorithmName.
RSAParametersSystem.Security.CryptographyRSA key parameters (modulus, exponent, and optional private components) matching the .NET Framework struct.

Enums

EnumNamespaceSummary
RSAEncryptionPaddingModeSystem.Security.CryptographyPadding scheme applied to RSA-encrypted blocks.
RSASignaturePaddingModeSystem.Security.CryptographyPadding scheme applied to RSA signatures.