RingDotNetfor Ring

System.Security.Cryptography

116 wrapped types. Load them with using { "System.Security.Cryptography" }. Click a class to open it.

Aes AesCcm AesCng AesGcm AsnEncodedData AsnEncodedDataCollection AsnEncodedDataEnumerator AsymmetricAlgorithm AsymmetricKeyExchangeDeformatter AsymmetricKeyExchangeFormatter AsymmetricSignatureDeformatter AsymmetricSignatureFormatter AuthenticationTagMismatchException ChaCha20Poly1305 CngAlgorithm CngAlgorithmGroup CngKey CngKeyBlobFormat CngKeyCreationParameters CngProperty CngPropertyCollection CngProvider CngUIPolicy CryptoConfig CryptographicException CryptographicOperations CryptographicUnexpectedOperationException CryptoStream CspKeyContainerInfo CspParameters DeriveBytes DES DSA DSACng DSACryptoServiceProvider DSAOpenSsl DSAParameters DSASignatureDeformatter DSASignatureFormatter ECAlgorithm ECCurve ECCurveNamedCurves ECDiffieHellman ECDiffieHellmanCng ECDiffieHellmanCngPublicKey ECDiffieHellmanOpenSsl ECDiffieHellmanPublicKey ECDsa ECDsaCng ECDsaOpenSsl ECParameters ECPoint FromBase64Transform HashAlgorithm HashAlgorithmName HKDF HMAC HMACMD5 HMACSHA1 HMACSHA256 HMACSHA384 HMACSHA3_256 HMACSHA3_384 HMACSHA3_512 HMACSHA512 ICryptoTransform ICspAsymmetricAlgorithm IncrementalHash KeyedHashAlgorithm KeySizes Kmac128 Kmac256 KmacXof128 KmacXof256 MaskGenerationMethod MD5 Oid OidCollection OidEnumerator PasswordDeriveBytes PbeParameters PemEncoding PemFields PKCS1MaskGenerationMethod RandomNumberGenerator RC2 Rfc2898DeriveBytes RSA RSACng RSACryptoServiceProvider RSAEncryptionPadding RSAOAEPKeyExchangeDeformatter RSAOAEPKeyExchangeFormatter RSAOpenSsl RSAParameters RSAPKCS1KeyExchangeDeformatter RSAPKCS1KeyExchangeFormatter RSAPKCS1SignatureDeformatter RSAPKCS1SignatureFormatter RSASignaturePadding SafeEvpPKeyHandle SHA1 SHA256 SHA384 SHA3_256 SHA3_384 SHA3_512 SHA512 Shake128 Shake256 SignatureDescription SP800108HmacCounterKdf SymmetricAlgorithm ToBase64Transform TripleDES TripleDESCng
Aes class abstract · extends SymmetricAlgorithm

System.Security.Cryptography.Aes · assembly System.Security.Cryptography

Implements: IDisposable

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :algorithmName = … ])
static Aes Create()
static Aes Create(string algorithmName)

Members of the base class are inherited.

AesCcm class sealed

System.Security.Cryptography.AesCcm · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new AesCcm(ReadOnlySpan<byte> key)
new AesCcm(byte[] key)

Ring: new AesCcm(args) uses one constructor; the others are chosen by the parameter names: new AesCcm().@New([ :param = value ]) or dnNew("AesCcm",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
NonceByteSizesKeySizesread · statico.NonceByteSizes
TagByteSizesKeySizesread · statico.TagByteSizes
IsSupportedboolread · statico.IsSupported

Methods

MethodRing call.NET overloads
DecryptDecrypt([ :nonce = …, :ciphertext = …, :tag = …, :plaintext = …, :associatedData = … ])void Decrypt(byte[] nonce, byte[] ciphertext, byte[] tag, byte[] plaintext, byte[] associatedData = …)
void Decrypt(ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> tag, Span<byte> plaintext, ReadOnlySpan<byte> associatedData = …)
DisposecallMethod("Dispose",[])void Dispose()
EncryptEncrypt([ :nonce = …, :plaintext = …, :ciphertext = …, :tag = …, :associatedData = … ])void Encrypt(byte[] nonce, byte[] plaintext, byte[] ciphertext, byte[] tag, byte[] associatedData = …)
void Encrypt(ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> plaintext, Span<byte> ciphertext, Span<byte> tag, ReadOnlySpan<byte> associatedData = …)
AesCng class sealed · extends Aes

System.Security.Cryptography.AesCng · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new AesCng()
new AesCng(string keyName)
new AesCng(string keyName, CngProvider provider)
new AesCng(string keyName, CngProvider provider, CngKeyOpenOptions openOptions)

Ring: new AesCng(args) uses one constructor; the others are chosen by the parameter names: new AesCng().@New([ :param = value ]) or dnNew("AesCng",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Keybyte[]read, writeo.getKey() o.setKey(v)
KeySizeintread, writeo.getKeySize() o.setKeySize(v)

Methods

MethodRing call.NET overloads
CreateDecryptorCreateDecryptor(NULL)
CreateDecryptor([ :rgbKey = …, :rgbIV = … ])
ICryptoTransform CreateDecryptor()
ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
CreateEncryptorCreateEncryptor(NULL)
CreateEncryptor([ :rgbKey = …, :rgbIV = … ])
ICryptoTransform CreateEncryptor()
ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
GenerateIVcallMethod("GenerateIV",[])void GenerateIV()
GenerateKeycallMethod("GenerateKey",[])void GenerateKey()

Members of the base class are inherited.

AesGcm class sealed

System.Security.Cryptography.AesGcm · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new AesGcm(ReadOnlySpan<byte> key)
new AesGcm(byte[] key)
new AesGcm(ReadOnlySpan<byte> key, int tagSizeInBytes)
new AesGcm(byte[] key, int tagSizeInBytes)

Ring: new AesGcm(args) uses one constructor; the others are chosen by the parameter names: new AesGcm().@New([ :param = value ]) or dnNew("AesGcm",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
TagSizeInBytesint?reado.TagSizeInBytes
NonceByteSizesKeySizesread · statico.NonceByteSizes
IsSupportedboolread · statico.IsSupported
TagByteSizesKeySizesread · statico.TagByteSizes

Methods

MethodRing call.NET overloads
DecryptDecrypt([ :nonce = …, :ciphertext = …, :tag = …, :plaintext = …, :associatedData = … ])void Decrypt(byte[] nonce, byte[] ciphertext, byte[] tag, byte[] plaintext, byte[] associatedData = …)
void Decrypt(ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> tag, Span<byte> plaintext, ReadOnlySpan<byte> associatedData = …)
DisposecallMethod("Dispose",[])void Dispose()
EncryptEncrypt([ :nonce = …, :plaintext = …, :ciphertext = …, :tag = …, :associatedData = … ])void Encrypt(byte[] nonce, byte[] plaintext, byte[] ciphertext, byte[] tag, byte[] associatedData = …)
void Encrypt(ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> plaintext, Span<byte> ciphertext, Span<byte> tag, ReadOnlySpan<byte> associatedData = …)
AsnEncodedData class

System.Security.Cryptography.AsnEncodedData · assembly System.Security.Cryptography

Constructors

new AsnEncodedData(byte[] rawData)
new AsnEncodedData(ReadOnlySpan<byte> rawData)
new AsnEncodedData(AsnEncodedData asnEncodedData)
new AsnEncodedData(Oid oid, byte[] rawData)
new AsnEncodedData(string oid, byte[] rawData)
new AsnEncodedData(Oid oid, ReadOnlySpan<byte> rawData)
new AsnEncodedData(string oid, ReadOnlySpan<byte> rawData)

Ring: new AsnEncodedData(args) uses one constructor; the others are chosen by the parameter names: new AsnEncodedData().@New([ :param = value ]) or dnNew("AsnEncodedData",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
OidOidread, writeo.Oid o.Oid = v
RawDatabyte[]read, writeo.RawData o.RawData = v

Methods

MethodRing call.NET overloads
CopyFromCopyFrom(p1)void CopyFrom(AsnEncodedData asnEncodedData)
FormatcallMethod("Format",[p1])string Format(bool multiLine)
AsnEncodedDataCollection class sealed

System.Security.Cryptography.AsnEncodedDataCollection · assembly System.Security.Cryptography

Implements: ICollection, IEnumerable

Constructors

new AsnEncodedDataCollection()
new AsnEncodedDataCollection(AsnEncodedData asnEncodedData)

Ring: new AsnEncodedDataCollection(args) uses one constructor; the others are chosen by the parameter names: new AsnEncodedDataCollection().@New([ :param = value ]) or dnNew("AsnEncodedDataCollection",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Countintreado.Count
IsSynchronizedboolreado.IsSynchronized
SyncRootobjectreado.SyncRoot

Indexer

o.Item(int index) → AsnEncodedData

Methods

MethodRing call.NET overloads
AddAdd(p1)int Add(AsnEncodedData asnEncodedData)
CopyToCopyTo(p1,p2)void CopyTo(AsnEncodedData[] array, int index)
GetEnumeratorcallMethod("GetEnumerator",[])AsnEncodedDataEnumerator GetEnumerator()
RemoveRemove(p1)void Remove(AsnEncodedData asnEncodedData)
AsnEncodedDataEnumerator class sealed

System.Security.Cryptography.AsnEncodedDataEnumerator · assembly System.Security.Cryptography

Implements: IEnumerator

Properties and fields

NameTypeAccessIn Ring
CurrentAsnEncodedDatareado.Current

Methods

MethodRing call.NET overloads
MoveNextcallMethod("MoveNext",[])bool MoveNext()
ResetcallMethod("Reset",[])void Reset()
AsymmetricAlgorithm class abstract

System.Security.Cryptography.AsymmetricAlgorithm · assembly System.Security.Cryptography

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
KeySizeintread, writeo.KeySize o.KeySize = v
LegalKeySizesKeySizes[]reado.LegalKeySizes
SignatureAlgorithmstringreado.SignatureAlgorithm
KeyExchangeAlgorithmstringreado.KeyExchangeAlgorithm

Methods

MethodRing call.NET overloads
ClearcallMethod("Clear",[])void Clear()
CreateCreate(NULL)
Create(value)
Create([ :algName = … ])
static AsymmetricAlgorithm Create()
static AsymmetricAlgorithm Create(string algName)
DisposecallMethod("Dispose",[])void Dispose()
ExportEncryptedPkcs8PrivateKeycallMethod("ExportEncryptedPkcs8PrivateKey",[p1,p2])byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters)
ExportEncryptedPkcs8PrivateKeyPemExportEncryptedPkcs8PrivateKeyPem(p1,p2)string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters)
string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
ExportPkcs8PrivateKeycallMethod("ExportPkcs8PrivateKey",[])byte[] ExportPkcs8PrivateKey()
ExportPkcs8PrivateKeyPemcallMethod("ExportPkcs8PrivateKeyPem",[])string ExportPkcs8PrivateKeyPem()
ExportSubjectPublicKeyInfocallMethod("ExportSubjectPublicKeyInfo",[])byte[] ExportSubjectPublicKeyInfo()
ExportSubjectPublicKeyInfoPemcallMethod("ExportSubjectPublicKeyInfoPem",[])string ExportSubjectPublicKeyInfoPem()
FromXmlStringcallMethod("FromXmlString",[p1])void FromXmlString(string xmlString)
ImportEncryptedPkcs8PrivateKeyImportEncryptedPkcs8PrivateKey(p1,p2)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)
void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead)
ImportFromEncryptedPemImportFromEncryptedPem(p1,p2)void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password)
void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes)
ImportFromPemImportFromPem(p1)void ImportFromPem(ReadOnlySpan<char> input)
ImportPkcs8PrivateKeyImportPkcs8PrivateKey(p1)void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
ImportSubjectPublicKeyInfoImportSubjectPublicKeyInfo(p1)void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead)
ToXmlStringcallMethod("ToXmlString",[p1])string ToXmlString(bool includePrivateParameters)
TryExportEncryptedPkcs8PrivateKeyTryExportEncryptedPkcs8PrivateKey(p1,p2,p3)bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
TryExportEncryptedPkcs8PrivateKeyPemTryExportEncryptedPkcs8PrivateKeyPem(p1,p2,p3)bool TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters, Span<char> destination, out int charsWritten)
bool TryExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters, Span<char> destination, out int charsWritten)
TryExportPkcs8PrivateKeyTryExportPkcs8PrivateKey(p1)bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten)
TryExportPkcs8PrivateKeyPemTryExportPkcs8PrivateKeyPem(p1)bool TryExportPkcs8PrivateKeyPem(Span<char> destination, out int charsWritten)
TryExportSubjectPublicKeyInfoTryExportSubjectPublicKeyInfo(p1)bool TryExportSubjectPublicKeyInfo(Span<byte> destination, out int bytesWritten)
TryExportSubjectPublicKeyInfoPemTryExportSubjectPublicKeyInfoPem(p1)bool TryExportSubjectPublicKeyInfoPem(Span<char> destination, out int charsWritten)
AsymmetricKeyExchangeDeformatter class abstract

System.Security.Cryptography.AsymmetricKeyExchangeDeformatter · assembly System.Security.Cryptography

Properties and fields

NameTypeAccessIn Ring
Parametersstringread, writeo.Parameters o.Parameters = v

Methods

MethodRing call.NET overloads
DecryptKeyExchangecallMethod("DecryptKeyExchange",[p1])byte[] DecryptKeyExchange(byte[] rgb)
SetKeySetKey(p1)void SetKey(AsymmetricAlgorithm key)
AsymmetricKeyExchangeFormatter class abstract

System.Security.Cryptography.AsymmetricKeyExchangeFormatter · assembly System.Security.Cryptography

Properties and fields

NameTypeAccessIn Ring
Parametersstringreado.Parameters

Methods

MethodRing call.NET overloads
CreateKeyExchangeCreateKeyExchange(value)
CreateKeyExchange([ :data = … ])
CreateKeyExchange([ :data = …, :symAlgType = … ])
byte[] CreateKeyExchange(byte[] data)
byte[] CreateKeyExchange(byte[] data, Type symAlgType)
SetKeySetKey(p1)void SetKey(AsymmetricAlgorithm key)
AsymmetricSignatureDeformatter class abstract

System.Security.Cryptography.AsymmetricSignatureDeformatter · assembly System.Security.Cryptography

Methods

MethodRing call.NET overloads
SetHashAlgorithmcallMethod("SetHashAlgorithm",[p1])void SetHashAlgorithm(string strName)
SetKeySetKey(p1)void SetKey(AsymmetricAlgorithm key)
VerifySignatureVerifySignature(p1,p2)bool VerifySignature(HashAlgorithm hash, byte[] rgbSignature)
bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
AsymmetricSignatureFormatter class abstract

System.Security.Cryptography.AsymmetricSignatureFormatter · assembly System.Security.Cryptography

Methods

MethodRing call.NET overloads
CreateSignaturecallMethod("CreateSignature",[p1])byte[] CreateSignature(HashAlgorithm hash)
byte[] CreateSignature(byte[] rgbHash)
SetHashAlgorithmcallMethod("SetHashAlgorithm",[p1])void SetHashAlgorithm(string strName)
SetKeySetKey(p1)void SetKey(AsymmetricAlgorithm key)
AuthenticationTagMismatchException class sealed · extends CryptographicException

System.Security.Cryptography.AuthenticationTagMismatchException · assembly System.Security.Cryptography

Implements: ISerializable

Constructors

new AuthenticationTagMismatchException()
new AuthenticationTagMismatchException(string message)
new AuthenticationTagMismatchException(string message, Exception inner)

Ring: new AuthenticationTagMismatchException(args) uses one constructor; the others are chosen by the parameter names: new AuthenticationTagMismatchException().@New([ :param = value ]) or dnNew("AuthenticationTagMismatchException",[ :param = value ]).

Members of the base class are inherited.

ChaCha20Poly1305 class sealed

System.Security.Cryptography.ChaCha20Poly1305 · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new ChaCha20Poly1305(ReadOnlySpan<byte> key)
new ChaCha20Poly1305(byte[] key)

Ring: new ChaCha20Poly1305(args) uses one constructor; the others are chosen by the parameter names: new ChaCha20Poly1305().@New([ :param = value ]) or dnNew("ChaCha20Poly1305",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
IsSupportedboolread · statico.IsSupported

Methods

MethodRing call.NET overloads
DecryptDecrypt([ :nonce = …, :ciphertext = …, :tag = …, :plaintext = …, :associatedData = … ])void Decrypt(byte[] nonce, byte[] ciphertext, byte[] tag, byte[] plaintext, byte[] associatedData = …)
void Decrypt(ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> tag, Span<byte> plaintext, ReadOnlySpan<byte> associatedData = …)
DisposecallMethod("Dispose",[])void Dispose()
EncryptEncrypt([ :nonce = …, :plaintext = …, :ciphertext = …, :tag = …, :associatedData = … ])void Encrypt(byte[] nonce, byte[] plaintext, byte[] ciphertext, byte[] tag, byte[] associatedData = …)
void Encrypt(ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> plaintext, Span<byte> ciphertext, Span<byte> tag, ReadOnlySpan<byte> associatedData = …)
CngAlgorithm class sealed

System.Security.Cryptography.CngAlgorithm · assembly System.Security.Cryptography

Constructors

new CngAlgorithm(string algorithm)

Ring: new CngAlgorithm(args) uses one constructor; the others are chosen by the parameter names: new CngAlgorithm().@New([ :param = value ]) or dnNew("CngAlgorithm",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Algorithmstringreado.Algorithm
RsaCngAlgorithmread · statico.Rsa
ECDiffieHellmanCngAlgorithmread · statico.ECDiffieHellman
ECDiffieHellmanP256CngAlgorithmread · statico.ECDiffieHellmanP256
ECDiffieHellmanP384CngAlgorithmread · statico.ECDiffieHellmanP384
ECDiffieHellmanP521CngAlgorithmread · statico.ECDiffieHellmanP521
ECDsaCngAlgorithmread · statico.ECDsa
ECDsaP256CngAlgorithmread · statico.ECDsaP256
ECDsaP384CngAlgorithmread · statico.ECDsaP384
ECDsaP521CngAlgorithmread · statico.ECDsaP521
MD5CngAlgorithmread · statico.MD5
Sha1CngAlgorithmread · statico.Sha1
Sha256CngAlgorithmread · statico.Sha256
Sha384CngAlgorithmread · statico.Sha384
Sha512CngAlgorithmread · statico.Sha512

Methods

MethodRing call.NET overloads
EqualsEquals(p1)bool Equals(object obj)
bool Equals(CngAlgorithm other)
GetHashCodecallMethod("GetHashCode",[])int GetHashCode()
ToStringcallMethod("ToString",[])string ToString()
CngAlgorithmGroup class sealed

System.Security.Cryptography.CngAlgorithmGroup · assembly System.Security.Cryptography

Constructors

new CngAlgorithmGroup(string algorithmGroup)

Ring: new CngAlgorithmGroup(args) uses one constructor; the others are chosen by the parameter names: new CngAlgorithmGroup().@New([ :param = value ]) or dnNew("CngAlgorithmGroup",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
AlgorithmGroupstringreado.AlgorithmGroup
DiffieHellmanCngAlgorithmGroupread · statico.DiffieHellman
DsaCngAlgorithmGroupread · statico.Dsa
ECDiffieHellmanCngAlgorithmGroupread · statico.ECDiffieHellman
ECDsaCngAlgorithmGroupread · statico.ECDsa
RsaCngAlgorithmGroupread · statico.Rsa

Methods

MethodRing call.NET overloads
EqualsEquals(p1)bool Equals(object obj)
bool Equals(CngAlgorithmGroup other)
GetHashCodecallMethod("GetHashCode",[])int GetHashCode()
ToStringcallMethod("ToString",[])string ToString()
CngKey class sealed

System.Security.Cryptography.CngKey · assembly System.Security.Cryptography

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
AlgorithmCngAlgorithmreado.Algorithm
AlgorithmGroupCngAlgorithmGroupreado.AlgorithmGroup
ExportPolicyCngExportPoliciesreado.ExportPolicy
HandleSafeNCryptKeyHandlereado.Handle
IsEphemeralboolreado.IsEphemeral
IsMachineKeyboolreado.IsMachineKey
KeyNamestringreado.KeyName
KeySizeintreado.KeySize
KeyUsageCngKeyUsagesreado.KeyUsage
ParentWindowHandleIntPtrread, writeo.ParentWindowHandle o.ParentWindowHandle = v
ProviderCngProviderreado.Provider
ProviderHandleSafeNCryptProviderHandlereado.ProviderHandle
UIPolicyCngUIPolicyreado.UIPolicy
UniqueNamestringreado.UniqueName

Methods

MethodRing call.NET overloads
CreateCreate(value)
Create([ :algorithm = … ])
Create([ :algorithm = …, :keyName = … ])
Create([ :algorithm = …, :keyName = …, :creationParameters = … ])
static CngKey Create(CngAlgorithm algorithm)
static CngKey Create(CngAlgorithm algorithm, string keyName)
static CngKey Create(CngAlgorithm algorithm, string keyName, CngKeyCreationParameters creationParameters)
DeletecallMethod("Delete",[])void Delete()
DisposecallMethod("Dispose",[])void Dispose()
ExistsExists(value)
Exists([ :keyName = … ])
Exists([ :keyName = …, :provider = … ])
Exists([ :keyName = …, :provider = …, :options = … ])
static bool Exists(string keyName)
static bool Exists(string keyName, CngProvider provider)
static bool Exists(string keyName, CngProvider provider, CngKeyOpenOptions options)
ExportcallMethod("Export",[p1])byte[] Export(CngKeyBlobFormat format)
GetPropertycallMethod("GetProperty",[p1,p2])CngProperty GetProperty(string name, CngPropertyOptions options)
HasPropertyHasProperty(p1,p2)bool HasProperty(string name, CngPropertyOptions options)
Import@Import([ :keyBlob = …, :format = … ])
@Import([ :keyBlob = …, :format = …, :provider = … ])
static CngKey Import(byte[] keyBlob, CngKeyBlobFormat format)
static CngKey Import(byte[] keyBlob, CngKeyBlobFormat format, CngProvider provider)
OpenOpen(value)
Open([ :keyName = … ])
Open([ :keyName = …, :provider = … ])
Open([ :keyHandle = …, :keyHandleOpenOptions = … ])
Open([ :keyName = …, :provider = …, :openOptions = … ])
static CngKey Open(string keyName)
static CngKey Open(string keyName, CngProvider provider)
static CngKey Open(string keyName, CngProvider provider, CngKeyOpenOptions openOptions)
static CngKey Open(SafeNCryptKeyHandle keyHandle, CngKeyHandleOpenOptions keyHandleOpenOptions)
SetPropertySetProperty(p1)void SetProperty(CngProperty property)
CngKeyBlobFormat class sealed

System.Security.Cryptography.CngKeyBlobFormat · assembly System.Security.Cryptography

Constructors

new CngKeyBlobFormat(string format)

Ring: new CngKeyBlobFormat(args) uses one constructor; the others are chosen by the parameter names: new CngKeyBlobFormat().@New([ :param = value ]) or dnNew("CngKeyBlobFormat",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Formatstringreado.Format
EccPrivateBlobCngKeyBlobFormatread · statico.EccPrivateBlob
EccPublicBlobCngKeyBlobFormatread · statico.EccPublicBlob
EccFullPrivateBlobCngKeyBlobFormatread · statico.EccFullPrivateBlob
EccFullPublicBlobCngKeyBlobFormatread · statico.EccFullPublicBlob
GenericPrivateBlobCngKeyBlobFormatread · statico.GenericPrivateBlob
GenericPublicBlobCngKeyBlobFormatread · statico.GenericPublicBlob
OpaqueTransportBlobCngKeyBlobFormatread · statico.OpaqueTransportBlob
Pkcs8PrivateBlobCngKeyBlobFormatread · statico.Pkcs8PrivateBlob

Methods

MethodRing call.NET overloads
EqualsEquals(p1)bool Equals(object obj)
bool Equals(CngKeyBlobFormat other)
GetHashCodecallMethod("GetHashCode",[])int GetHashCode()
ToStringcallMethod("ToString",[])string ToString()
CngKeyCreationParameters class sealed

System.Security.Cryptography.CngKeyCreationParameters · assembly System.Security.Cryptography

Constructors

new CngKeyCreationParameters()

Ring: new CngKeyCreationParameters(args) uses one constructor; the others are chosen by the parameter names: new CngKeyCreationParameters().@New([ :param = value ]) or dnNew("CngKeyCreationParameters",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
ExportPolicyCngExportPolicies?read, writeo.ExportPolicy o.ExportPolicy = v
KeyCreationOptionsCngKeyCreationOptionsread, writeo.KeyCreationOptions o.KeyCreationOptions = v
KeyUsageCngKeyUsages?read, writeo.KeyUsage o.KeyUsage = v
ParametersCngPropertyCollectionreado.Parameters
ParentWindowHandleIntPtrread, writeo.ParentWindowHandle o.ParentWindowHandle = v
ProviderCngProviderread, writeo.Provider o.Provider = v
UIPolicyCngUIPolicyread, writeo.UIPolicy o.UIPolicy = v
CngProperty struct

System.Security.Cryptography.CngProperty · assembly System.Security.Cryptography

Constructors

new CngProperty(string name, byte[] value, CngPropertyOptions options)

Ring: new CngProperty(args) uses one constructor; the others are chosen by the parameter names: new CngProperty().@New([ :param = value ]) or dnNew("CngProperty",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Namestringreado.Name
OptionsCngPropertyOptionsreado.Options

Methods

MethodRing call.NET overloads
EqualsEquals(p1)bool Equals(object obj)
bool Equals(CngProperty other)
GetHashCodecallMethod("GetHashCode",[])int GetHashCode()
GetValuecallMethod("GetValue",[])byte[] GetValue()
CngPropertyCollection class sealed · extends Collection<CngProperty>

System.Security.Cryptography.CngPropertyCollection · assembly System.Security.Cryptography

Implements: IEnumerable, IList, ICollection

Constructors

new CngPropertyCollection()

Ring: new CngPropertyCollection(args) uses one constructor; the others are chosen by the parameter names: new CngPropertyCollection().@New([ :param = value ]) or dnNew("CngPropertyCollection",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Countintreado.getCount()

Indexer

o.Item(int index) → CngProperty · o.SetItem(index,value)

Methods

MethodRing call.NET overloads
AddcallMethod("Add",[p1])void Add(CngProperty item)
ClearcallMethod("Clear",[])void Clear()
ContainscallMethod("Contains",[p1])bool Contains(CngProperty item)
CopyToCopyTo(p1,p2)void CopyTo(CngProperty[] array, int index)
GetEnumeratorcallMethod("GetEnumerator",[])IEnumerator<CngProperty> GetEnumerator()
IndexOfcallMethod("IndexOf",[p1])int IndexOf(CngProperty item)
InsertcallMethod("Insert",[p1,p2])void Insert(int index, CngProperty item)
RemovecallMethod("Remove",[p1])bool Remove(CngProperty item)
RemoveAtcallMethod("RemoveAt",[p1])void RemoveAt(int index)

Members of the base class are inherited.

CngProvider class sealed

System.Security.Cryptography.CngProvider · assembly System.Security.Cryptography

Constructors

new CngProvider(string provider)

Ring: new CngProvider(args) uses one constructor; the others are chosen by the parameter names: new CngProvider().@New([ :param = value ]) or dnNew("CngProvider",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Providerstringreado.Provider
MicrosoftPlatformCryptoProviderCngProviderread · statico.MicrosoftPlatformCryptoProvider
MicrosoftSmartCardKeyStorageProviderCngProviderread · statico.MicrosoftSmartCardKeyStorageProvider
MicrosoftSoftwareKeyStorageProviderCngProviderread · statico.MicrosoftSoftwareKeyStorageProvider

Methods

MethodRing call.NET overloads
EqualsEquals(p1)bool Equals(object obj)
bool Equals(CngProvider other)
GetHashCodecallMethod("GetHashCode",[])int GetHashCode()
ToStringcallMethod("ToString",[])string ToString()
CngUIPolicy class sealed

System.Security.Cryptography.CngUIPolicy · assembly System.Security.Cryptography

Constructors

new CngUIPolicy(CngUIProtectionLevels protectionLevel)
new CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName)
new CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName, string description)
new CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName, string description, string useContext)
new CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName, string description, string useContext, string creationTitle)

Ring: new CngUIPolicy(args) uses one constructor; the others are chosen by the parameter names: new CngUIPolicy().@New([ :param = value ]) or dnNew("CngUIPolicy",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
ProtectionLevelCngUIProtectionLevelsreado.ProtectionLevel
FriendlyNamestringreado.FriendlyName
Descriptionstringreado.Description
UseContextstringreado.UseContext
CreationTitlestringreado.CreationTitle
CryptoConfig class

System.Security.Cryptography.CryptoConfig · assembly System.Security.Cryptography

Constructors

new CryptoConfig()

Ring: new CryptoConfig(args) uses one constructor; the others are chosen by the parameter names: new CryptoConfig().@New([ :param = value ]) or dnNew("CryptoConfig",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
AllowOnlyFipsAlgorithmsboolread · statico.AllowOnlyFipsAlgorithms

Methods

MethodRing call.NET overloads
AddAlgorithmAddAlgorithm(p1,p2)static void AddAlgorithm(Type algorithm, string[] names)
AddOIDAddOID(p1,p2)static void AddOID(string oid, string[] names)
CreateFromNameCreateFromName(value)
CreateFromName([ :name = … ])
CreateFromName([ :name = …, :args = … ])
static object CreateFromName(string name, object[] args)
static object CreateFromName(string name)
EncodeOIDEncodeOID(p1)static byte[] EncodeOID(string str)
MapNameToOIDcallMethod("MapNameToOID",[p1])static string MapNameToOID(string name)
CryptographicException class · extends SystemException

System.Security.Cryptography.CryptographicException · assembly System.Private.CoreLib

Implements: ISerializable

Constructors

new CryptographicException()
new CryptographicException(int hr)
new CryptographicException(string message)
new CryptographicException(string message, Exception inner)
new CryptographicException(string format, string insert)

Ring: new CryptographicException(args) uses one constructor; the others are chosen by the parameter names: new CryptographicException().@New([ :param = value ]) or dnNew("CryptographicException",[ :param = value ]).

Members of the base class are inherited.

CryptographicOperations class static

System.Security.Cryptography.CryptographicOperations · assembly System.Security.Cryptography

Methods

MethodRing call.NET overloads
FixedTimeEqualsFixedTimeEquals(p1,p2)static bool FixedTimeEquals(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right)
HashDataHashData(p1,p2)static byte[] HashData(HashAlgorithmName hashAlgorithm, byte[] source)
static byte[] HashData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> source)
static int HashData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> source, Span<byte> destination)
static byte[] HashData(HashAlgorithmName hashAlgorithm, Stream source)
static int HashData(HashAlgorithmName hashAlgorithm, Stream source, Span<byte> destination)
HashDataAsyncHashDataAsync([ :hashAlgorithm = …, :source = …, :cancellationToken = … ])
HashDataAsync([ :hashAlgorithm = …, :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<int> HashDataAsync(HashAlgorithmName hashAlgorithm, Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(HashAlgorithmName hashAlgorithm, Stream source, CancellationToken cancellationToken = …)
HmacDataHmacData(p1,p2,p3)static byte[] HmacData(HashAlgorithmName hashAlgorithm, byte[] key, byte[] source)
static byte[] HmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, ReadOnlySpan<byte> source)
static int HmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination)
static byte[] HmacData(HashAlgorithmName hashAlgorithm, byte[] key, Stream source)
static byte[] HmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, Stream source)
static int HmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, Stream source, Span<byte> destination)
HmacDataAsyncHmacDataAsync([ :hashAlgorithm = …, :key = …, :source = …, :cancellationToken = … ])
HmacDataAsync([ :hashAlgorithm = …, :key = …, :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HmacDataAsync(HashAlgorithmName hashAlgorithm, byte[] key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HmacDataAsync(HashAlgorithmName hashAlgorithm, ReadOnlyMemory<byte> key, Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HmacDataAsync(HashAlgorithmName hashAlgorithm, ReadOnlyMemory<byte> key, Stream source, CancellationToken cancellationToken = …)
TryHashDataTryHashData(p1,p2,p3)static bool TryHashData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
TryHmacDataTryHmacData(p1,p2,p3,p4)static bool TryHmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
ZeroMemoryZeroMemory(p1)static void ZeroMemory(Span<byte> buffer)
CryptographicUnexpectedOperationException class · extends CryptographicException

System.Security.Cryptography.CryptographicUnexpectedOperationException · assembly System.Security.Cryptography

Implements: ISerializable

Constructors

new CryptographicUnexpectedOperationException()
new CryptographicUnexpectedOperationException(string message)
new CryptographicUnexpectedOperationException(string message, Exception inner)
new CryptographicUnexpectedOperationException(string format, string insert)

Ring: new CryptographicUnexpectedOperationException(args) uses one constructor; the others are chosen by the parameter names: new CryptographicUnexpectedOperationException().@New([ :param = value ]) or dnNew("CryptographicUnexpectedOperationException",[ :param = value ]).

Members of the base class are inherited.

CryptoStream class · extends Stream

System.Security.Cryptography.CryptoStream · assembly System.Security.Cryptography

Implements: IDisposable, IAsyncDisposable

Constructors

new CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode)
new CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode, bool leaveOpen)

Ring: new CryptoStream(args) uses one constructor; the others are chosen by the parameter names: new CryptoStream().@New([ :param = value ]) or dnNew("CryptoStream",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
CanReadboolreado.getCanRead()
CanSeekboolreado.getCanSeek()
CanWriteboolreado.getCanWrite()
Lengthlongreado.getLength()
Positionlongread, writeo.getPosition() o.setPosition(v)
HasFlushedFinalBlockboolreado.HasFlushedFinalBlock

Methods

MethodRing call.NET overloads
BeginReadcallMethod("BeginRead",[p1,p2,p3,p4,p5])IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
BeginWritecallMethod("BeginWrite",[p1,p2,p3,p4,p5])IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
ClearcallMethod("Clear",[])void Clear()
CopyTocallMethod("CopyTo",[p1,p2])void CopyTo(Stream destination, int bufferSize)
CopyToAsyncCopyToAsync([ :destination = …, :bufferSize = …, :cancellationToken = … ])Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
DisposeAsynccallMethod("DisposeAsync",[])ValueTask DisposeAsync()
EndReadEndRead(p1)int EndRead(IAsyncResult asyncResult)
EndWriteEndWrite(p1)void EndWrite(IAsyncResult asyncResult)
FlushcallMethod("Flush",[])void Flush()
FlushAsyncFlushAsync(value)
FlushAsync([ :cancellationToken = … ])
Task FlushAsync(CancellationToken cancellationToken)
FlushFinalBlockcallMethod("FlushFinalBlock",[])void FlushFinalBlock()
FlushFinalBlockAsyncFlushFinalBlockAsync(value)
FlushFinalBlockAsync([ :cancellationToken = … ])
ValueTask FlushFinalBlockAsync(CancellationToken cancellationToken = …)
ReadRead(p1,p2,p3)int Read(byte[] buffer, int offset, int count)
ReadAsyncReadAsync([ :buffer = …, :cancellationToken = … ])
ReadAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ])
Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = …)
ReadBytecallMethod("ReadByte",[])int ReadByte()
SeekSeek(p1,p2)long Seek(long offset, SeekOrigin origin)
SetLengthcallMethod("SetLength",[p1])void SetLength(long value)
WriteWrite(p1,p2,p3)void Write(byte[] buffer, int offset, int count)
void Write(ReadOnlySpan<byte> buffer)
WriteAsyncWriteAsync([ :buffer = …, :cancellationToken = … ])
WriteAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ])
Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = …)
WriteBytecallMethod("WriteByte",[p1])void WriteByte(byte value)

Members of the base class are inherited.

CspKeyContainerInfo class sealed

System.Security.Cryptography.CspKeyContainerInfo · assembly System.Security.Cryptography

Constructors

new CspKeyContainerInfo(CspParameters parameters)

Ring: new CspKeyContainerInfo(args) uses one constructor; the others are chosen by the parameter names: new CspKeyContainerInfo().@New([ :param = value ]) or dnNew("CspKeyContainerInfo",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Accessibleboolreado.Accessible
Exportableboolreado.Exportable
HardwareDeviceboolreado.HardwareDevice
KeyContainerNamestringreado.KeyContainerName
KeyNumberKeyNumberreado.KeyNumber
MachineKeyStoreboolreado.MachineKeyStore
Protectedboolreado.Protected
ProviderNamestringreado.ProviderName
ProviderTypeintreado.ProviderType
RandomlyGeneratedboolreado.RandomlyGenerated
Removableboolreado.Removable
UniqueKeyContainerNamestringreado.UniqueKeyContainerName
CspParameters class sealed

System.Security.Cryptography.CspParameters · assembly System.Security.Cryptography

Constructors

new CspParameters()
new CspParameters(int dwTypeIn)
new CspParameters(int dwTypeIn, string strProviderNameIn)
new CspParameters(int dwTypeIn, string strProviderNameIn, string strContainerNameIn)

Ring: new CspParameters(args) uses one constructor; the others are chosen by the parameter names: new CspParameters().@New([ :param = value ]) or dnNew("CspParameters",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
FlagsCspProviderFlagsread, writeo.Flags o.Flags = v
KeyPasswordSecureStringread, writeo.KeyPassword o.KeyPassword = v
ParentWindowHandleIntPtrread, writeo.ParentWindowHandle o.ParentWindowHandle = v
ProviderTypeintread, writeo.ProviderType o.ProviderType = v
ProviderNamestringread, writeo.ProviderName o.ProviderName = v
KeyContainerNamestringread, writeo.KeyContainerName o.KeyContainerName = v
KeyNumberintread, writeo.KeyNumber o.KeyNumber = v
DeriveBytes class abstract

System.Security.Cryptography.DeriveBytes · assembly System.Security.Cryptography

Implements: IDisposable

Methods

MethodRing call.NET overloads
DisposecallMethod("Dispose",[])void Dispose()
GetBytescallMethod("GetBytes",[p1])byte[] GetBytes(int cb)
ResetcallMethod("Reset",[])void Reset()
DES class abstract · extends SymmetricAlgorithm

System.Security.Cryptography.DES · assembly System.Security.Cryptography

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
Keybyte[]read, writeo.getKey() o.setKey(v)

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :algName = … ])
static DES Create()
static DES Create(string algName)
IsSemiWeakKeyIsSemiWeakKey(p1)static bool IsSemiWeakKey(byte[] rgbKey)
IsWeakKeyIsWeakKey(p1)static bool IsWeakKey(byte[] rgbKey)

Members of the base class are inherited.

DSA class abstract · extends AsymmetricAlgorithm

System.Security.Cryptography.DSA · assembly System.Security.Cryptography

Implements: IDisposable

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :algName = … ])
Create([ :keySizeInBits = … ])
Create([ :parameters = … ])
static DSA Create(string algName)
static DSA Create()
static DSA Create(int keySizeInBits)
static DSA Create(DSAParameters parameters)
CreateSignatureCreateSignature(value)
CreateSignature([ :rgbHash = … ])
CreateSignature([ :rgbHash = …, :signatureFormat = … ])
byte[] CreateSignature(byte[] rgbHash)
byte[] CreateSignature(byte[] rgbHash, DSASignatureFormat signatureFormat)
ExportParameterscallMethod("ExportParameters",[p1])DSAParameters ExportParameters(bool includePrivateParameters)
FromXmlStringcallMethod("FromXmlString",[p1])void FromXmlString(string xmlString)
GetMaxSignatureSizeGetMaxSignatureSize(p1)int GetMaxSignatureSize(DSASignatureFormat signatureFormat)
ImportEncryptedPkcs8PrivateKeyImportEncryptedPkcs8PrivateKey(p1,p2)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)
void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead)
ImportFromEncryptedPemImportFromEncryptedPem(p1,p2)void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password)
void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes)
ImportFromPemImportFromPem(p1)void ImportFromPem(ReadOnlySpan<char> input)
ImportParametersImportParameters(p1)void ImportParameters(DSAParameters parameters)
ImportPkcs8PrivateKeyImportPkcs8PrivateKey(p1)void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
ImportSubjectPublicKeyInfoImportSubjectPublicKeyInfo(p1)void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead)
SignDataSignData([ :data = …, :hashAlgorithm = … ])
SignData([ :data = …, :hashAlgorithm = …, :signatureFormat = … ])
SignData([ :data = …, :offset = …, :count = …, :hashAlgorithm = … ])
SignData([ :data = …, :offset = …, :count = …, :hashAlgorithm = …, :signatureFormat = … ])
byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm)
byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
byte[] SignData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
byte[] SignData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm)
byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
ToXmlStringcallMethod("ToXmlString",[p1])string ToXmlString(bool includePrivateParameters)
TryCreateSignatureTryCreateSignature([ :hash = …, :destination = …, :bytesWritten = … ])
TryCreateSignature([ :hash = …, :destination = …, :signatureFormat = …, :bytesWritten = … ])
bool TryCreateSignature(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten)
bool TryCreateSignature(ReadOnlySpan<byte> hash, Span<byte> destination, DSASignatureFormat signatureFormat, out int bytesWritten)
TryExportEncryptedPkcs8PrivateKeyTryExportEncryptedPkcs8PrivateKey(p1,p2,p3)bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
TryExportPkcs8PrivateKeyTryExportPkcs8PrivateKey(p1)bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten)
TryExportSubjectPublicKeyInfoTryExportSubjectPublicKeyInfo(p1)bool TryExportSubjectPublicKeyInfo(Span<byte> destination, out int bytesWritten)
TrySignDataTrySignData([ :data = …, :destination = …, :hashAlgorithm = …, :bytesWritten = … ])
TrySignData([ :data = …, :destination = …, :hashAlgorithm = …, :signatureFormat = …, :bytesWritten = … ])
bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten)
bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat, out int bytesWritten)
VerifyDataVerifyData([ :data = …, :signature = …, :hashAlgorithm = … ])
VerifyData([ :data = …, :signature = …, :hashAlgorithm = …, :signatureFormat = … ])
VerifyData([ :data = …, :offset = …, :count = …, :signature = …, :hashAlgorithm = … ])
VerifyData([ :data = …, :offset = …, :count = …, :signature = …, :hashAlgorithm = …, :signatureFormat = … ])
bool VerifyData(byte[] data, byte[] signature, HashAlgorithmName hashAlgorithm)
bool VerifyData(byte[] data, int offset, int count, byte[] signature, HashAlgorithmName hashAlgorithm)
bool VerifyData(byte[] data, int offset, int count, byte[] signature, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm)
bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm)
bool VerifyData(byte[] data, byte[] signature, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
VerifySignatureVerifySignature([ :rgbHash = …, :rgbSignature = … ])
VerifySignature([ :hash = …, :signature = … ])
VerifySignature([ :rgbHash = …, :rgbSignature = …, :signatureFormat = … ])
VerifySignature([ :hash = …, :signature = …, :signatureFormat = … ])
bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)
bool VerifySignature(byte[] rgbHash, byte[] rgbSignature, DSASignatureFormat signatureFormat)
bool VerifySignature(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature)
bool VerifySignature(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, DSASignatureFormat signatureFormat)

Members of the base class are inherited.

DSACng class sealed · extends DSA

System.Security.Cryptography.DSACng · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new DSACng()
new DSACng(int keySize)
new DSACng(CngKey key)

Ring: new DSACng(args) uses one constructor; the others are chosen by the parameter names: new DSACng().@New([ :param = value ]) or dnNew("DSACng",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
LegalKeySizesKeySizes[]reado.getLegalKeySizes()
SignatureAlgorithmstringreado.getSignatureAlgorithm()
KeyExchangeAlgorithmstringreado.getKeyExchangeAlgorithm()
KeyCngKeyreado.Key

Methods

MethodRing call.NET overloads
CreateSignatureCreateSignature(value)
CreateSignature([ :rgbHash = … ])
byte[] CreateSignature(byte[] rgbHash)
ExportEncryptedPkcs8PrivateKeycallMethod("ExportEncryptedPkcs8PrivateKey",[p1,p2])byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters)
ExportParameterscallMethod("ExportParameters",[p1])DSAParameters ExportParameters(bool includePrivateParameters)
ImportEncryptedPkcs8PrivateKeyImportEncryptedPkcs8PrivateKey(p1,p2)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)
void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead)
ImportParametersImportParameters(p1)void ImportParameters(DSAParameters parameters)
TryExportEncryptedPkcs8PrivateKeyTryExportEncryptedPkcs8PrivateKey(p1,p2,p3)bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
TryExportPkcs8PrivateKeyTryExportPkcs8PrivateKey(p1)bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten)
VerifySignatureVerifySignature([ :rgbHash = …, :rgbSignature = … ])bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)

Members of the base class are inherited.

DSACryptoServiceProvider class sealed · extends DSA

System.Security.Cryptography.DSACryptoServiceProvider · assembly System.Security.Cryptography

Implements: IDisposable, ICspAsymmetricAlgorithm

Constructors

new DSACryptoServiceProvider()
new DSACryptoServiceProvider(int dwKeySize)
new DSACryptoServiceProvider(CspParameters parameters)
new DSACryptoServiceProvider(int dwKeySize, CspParameters parameters)

Ring: new DSACryptoServiceProvider(args) uses one constructor; the others are chosen by the parameter names: new DSACryptoServiceProvider().@New([ :param = value ]) or dnNew("DSACryptoServiceProvider",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
CspKeyContainerInfoCspKeyContainerInforeado.CspKeyContainerInfo
KeySizeintreado.getKeySize()
LegalKeySizesKeySizes[]reado.getLegalKeySizes()
PersistKeyInCspboolread, writeo.PersistKeyInCsp o.PersistKeyInCsp = v
PublicOnlyboolreado.PublicOnly
KeyExchangeAlgorithmstringreado.getKeyExchangeAlgorithm()
SignatureAlgorithmstringreado.getSignatureAlgorithm()
UseMachineKeyStoreboolread, write · statico.UseMachineKeyStore o.UseMachineKeyStore = v

Methods

MethodRing call.NET overloads
CreateSignatureCreateSignature(value)
CreateSignature([ :rgbHash = … ])
byte[] CreateSignature(byte[] rgbHash)
ExportCspBlobcallMethod("ExportCspBlob",[p1])byte[] ExportCspBlob(bool includePrivateParameters)
ExportParameterscallMethod("ExportParameters",[p1])DSAParameters ExportParameters(bool includePrivateParameters)
ImportCspBlobImportCspBlob(p1)void ImportCspBlob(byte[] keyBlob)
ImportEncryptedPkcs8PrivateKeyImportEncryptedPkcs8PrivateKey(p1,p2)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)
void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead)
ImportParametersImportParameters(p1)void ImportParameters(DSAParameters parameters)
SignDataSignData(value)
SignData([ :inputStream = … ])
SignData([ :buffer = … ])
SignData([ :buffer = …, :offset = …, :count = … ])
byte[] SignData(Stream inputStream)
byte[] SignData(byte[] buffer)
byte[] SignData(byte[] buffer, int offset, int count)
SignHashcallMethod("SignHash",[p1,p2])byte[] SignHash(byte[] rgbHash, string str)
VerifyDataVerifyData([ :rgbData = …, :rgbSignature = … ])bool VerifyData(byte[] rgbData, byte[] rgbSignature)
VerifyHashVerifyHash(p1,p2,p3)bool VerifyHash(byte[] rgbHash, string str, byte[] rgbSignature)
VerifySignatureVerifySignature([ :rgbHash = …, :rgbSignature = … ])bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)

Members of the base class are inherited.

DSAOpenSsl class sealed · extends DSA

System.Security.Cryptography.DSAOpenSsl · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new DSAOpenSsl()
new DSAOpenSsl(int keySize)
new DSAOpenSsl(IntPtr handle)
new DSAOpenSsl(DSAParameters parameters)
new DSAOpenSsl(SafeEvpPKeyHandle pkeyHandle)

Ring: new DSAOpenSsl(args) uses one constructor; the others are chosen by the parameter names: new DSAOpenSsl().@New([ :param = value ]) or dnNew("DSAOpenSsl",[ :param = value ]).

Methods

MethodRing call.NET overloads
CreateSignatureCreateSignature(value)
CreateSignature([ :rgbHash = … ])
byte[] CreateSignature(byte[] rgbHash)
DuplicateKeyHandlecallMethod("DuplicateKeyHandle",[])SafeEvpPKeyHandle DuplicateKeyHandle()
ExportParameterscallMethod("ExportParameters",[p1])DSAParameters ExportParameters(bool includePrivateParameters)
ImportParametersImportParameters(p1)void ImportParameters(DSAParameters parameters)
VerifySignatureVerifySignature([ :rgbHash = …, :rgbSignature = … ])bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)

Members of the base class are inherited.

DSAParameters struct

System.Security.Cryptography.DSAParameters · assembly System.Security.Cryptography

Properties and fields

NameTypeAccessIn Ring
Pbyte[]read, writeo.P o.P = v
Qbyte[]read, writeo.Q o.Q = v
Gbyte[]read, writeo.G o.G = v
Ybyte[]read, writeo.Y o.Y = v
Jbyte[]read, writeo.J o.J = v
Xbyte[]read, writeo.X o.X = v
Seedbyte[]read, writeo.Seed o.Seed = v
Counterintread, writeo.Counter o.Counter = v
DSASignatureDeformatter class · extends AsymmetricSignatureDeformatter

System.Security.Cryptography.DSASignatureDeformatter · assembly System.Security.Cryptography

Constructors

new DSASignatureDeformatter()
new DSASignatureDeformatter(AsymmetricAlgorithm key)

Ring: new DSASignatureDeformatter(args) uses one constructor; the others are chosen by the parameter names: new DSASignatureDeformatter().@New([ :param = value ]) or dnNew("DSASignatureDeformatter",[ :param = value ]).

Methods

MethodRing call.NET overloads
SetHashAlgorithmcallMethod("SetHashAlgorithm",[p1])void SetHashAlgorithm(string strName)
SetKeySetKey(p1)void SetKey(AsymmetricAlgorithm key)
VerifySignatureVerifySignature(p1,p2)bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)

Members of the base class are inherited.

DSASignatureFormatter class · extends AsymmetricSignatureFormatter

System.Security.Cryptography.DSASignatureFormatter · assembly System.Security.Cryptography

Constructors

new DSASignatureFormatter()
new DSASignatureFormatter(AsymmetricAlgorithm key)

Ring: new DSASignatureFormatter(args) uses one constructor; the others are chosen by the parameter names: new DSASignatureFormatter().@New([ :param = value ]) or dnNew("DSASignatureFormatter",[ :param = value ]).

Methods

MethodRing call.NET overloads
CreateSignaturecallMethod("CreateSignature",[p1])byte[] CreateSignature(byte[] rgbHash)
SetHashAlgorithmcallMethod("SetHashAlgorithm",[p1])void SetHashAlgorithm(string strName)
SetKeySetKey(p1)void SetKey(AsymmetricAlgorithm key)

Members of the base class are inherited.

ECAlgorithm class abstract · extends AsymmetricAlgorithm

System.Security.Cryptography.ECAlgorithm · assembly System.Security.Cryptography

Implements: IDisposable

Methods

MethodRing call.NET overloads
ExportECPrivateKeycallMethod("ExportECPrivateKey",[])byte[] ExportECPrivateKey()
ExportECPrivateKeyPemcallMethod("ExportECPrivateKeyPem",[])string ExportECPrivateKeyPem()
ExportExplicitParameterscallMethod("ExportExplicitParameters",[p1])ECParameters ExportExplicitParameters(bool includePrivateParameters)
ExportParameterscallMethod("ExportParameters",[p1])ECParameters ExportParameters(bool includePrivateParameters)
GenerateKeyGenerateKey(p1)void GenerateKey(ECCurve curve)
ImportECPrivateKeyImportECPrivateKey(p1)void ImportECPrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
ImportEncryptedPkcs8PrivateKeyImportEncryptedPkcs8PrivateKey(p1,p2)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)
void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead)
ImportFromEncryptedPemImportFromEncryptedPem(p1,p2)void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password)
void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes)
ImportFromPemImportFromPem(p1)void ImportFromPem(ReadOnlySpan<char> input)
ImportParametersImportParameters(p1)void ImportParameters(ECParameters parameters)
ImportPkcs8PrivateKeyImportPkcs8PrivateKey(p1)void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
ImportSubjectPublicKeyInfoImportSubjectPublicKeyInfo(p1)void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead)
TryExportECPrivateKeyTryExportECPrivateKey(p1)bool TryExportECPrivateKey(Span<byte> destination, out int bytesWritten)
TryExportECPrivateKeyPemTryExportECPrivateKeyPem(p1)bool TryExportECPrivateKeyPem(Span<char> destination, out int charsWritten)
TryExportEncryptedPkcs8PrivateKeyTryExportEncryptedPkcs8PrivateKey(p1,p2,p3)bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
TryExportPkcs8PrivateKeyTryExportPkcs8PrivateKey(p1)bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten)
TryExportSubjectPublicKeyInfoTryExportSubjectPublicKeyInfo(p1)bool TryExportSubjectPublicKeyInfo(Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

ECCurve struct

System.Security.Cryptography.ECCurve · assembly System.Security.Cryptography

Properties and fields

NameTypeAccessIn Ring
OidOidreado.Oid
IsPrimeboolreado.IsPrime
IsCharacteristic2boolreado.IsCharacteristic2
IsExplicitboolreado.IsExplicit
IsNamedboolreado.IsNamed
Abyte[]read, writeo.A o.A = v
Bbyte[]read, writeo.B o.B = v
GECPointread, writeo.G o.G = v
Orderbyte[]read, writeo.Order o.Order = v
Cofactorbyte[]read, writeo.Cofactor o.Cofactor = v
Seedbyte[]read, writeo.Seed o.Seed = v
CurveTypeECCurve.ECCurveTyperead, writeo.CurveType o.CurveType = v
HashHashAlgorithmName?read, writeo.Hash o.Hash = v
Polynomialbyte[]read, writeo.Polynomial o.Polynomial = v
Primebyte[]read, writeo.Prime o.Prime = v

Methods

MethodRing call.NET overloads
CreateFromFriendlyNameCreateFromFriendlyName(p1)static ECCurve CreateFromFriendlyName(string oidFriendlyName)
CreateFromOidCreateFromOid(p1)static ECCurve CreateFromOid(Oid curveOid)
CreateFromValueCreateFromValue(p1)static ECCurve CreateFromValue(string oidValue)
ValidatecallMethod("Validate",[])void Validate()
ECCurveNamedCurves class static

System.Security.Cryptography.ECCurve+NamedCurves · assembly System.Security.Cryptography

Properties and fields

NameTypeAccessIn Ring
brainpoolP160r1ECCurveread · statico.brainpoolP160r1
brainpoolP160t1ECCurveread · statico.brainpoolP160t1
brainpoolP192r1ECCurveread · statico.brainpoolP192r1
brainpoolP192t1ECCurveread · statico.brainpoolP192t1
brainpoolP224r1ECCurveread · statico.brainpoolP224r1
brainpoolP224t1ECCurveread · statico.brainpoolP224t1
brainpoolP256r1ECCurveread · statico.brainpoolP256r1
brainpoolP256t1ECCurveread · statico.brainpoolP256t1
brainpoolP320r1ECCurveread · statico.brainpoolP320r1
brainpoolP320t1ECCurveread · statico.brainpoolP320t1
brainpoolP384r1ECCurveread · statico.brainpoolP384r1
brainpoolP384t1ECCurveread · statico.brainpoolP384t1
brainpoolP512r1ECCurveread · statico.brainpoolP512r1
brainpoolP512t1ECCurveread · statico.brainpoolP512t1
nistP256ECCurveread · statico.nistP256
nistP384ECCurveread · statico.nistP384
nistP521ECCurveread · statico.nistP521
ECDiffieHellman class abstract · extends ECAlgorithm

System.Security.Cryptography.ECDiffieHellman · assembly System.Security.Cryptography

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
KeyExchangeAlgorithmstringreado.getKeyExchangeAlgorithm()
SignatureAlgorithmstringreado.getSignatureAlgorithm()
PublicKeyECDiffieHellmanPublicKeyreado.PublicKey

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :curve = … ])
Create([ :parameters = … ])
Create([ :algorithm = … ])
static ECDiffieHellman Create()
static ECDiffieHellman Create(ECCurve curve)
static ECDiffieHellman Create(ECParameters parameters)
static ECDiffieHellman Create(string algorithm)
DeriveKeyFromHashDeriveKeyFromHash([ :otherPartyPublicKey = …, :hashAlgorithm = … ])
DeriveKeyFromHash([ :otherPartyPublicKey = …, :hashAlgorithm = …, :secretPrepend = …, :secretAppend = … ])
byte[] DeriveKeyFromHash(ECDiffieHellmanPublicKey otherPartyPublicKey, HashAlgorithmName hashAlgorithm)
byte[] DeriveKeyFromHash(ECDiffieHellmanPublicKey otherPartyPublicKey, HashAlgorithmName hashAlgorithm, byte[] secretPrepend, byte[] secretAppend)
DeriveKeyFromHmacDeriveKeyFromHmac([ :otherPartyPublicKey = …, :hashAlgorithm = …, :hmacKey = … ])
DeriveKeyFromHmac([ :otherPartyPublicKey = …, :hashAlgorithm = …, :hmacKey = …, :secretPrepend = …, :secretAppend = … ])
byte[] DeriveKeyFromHmac(ECDiffieHellmanPublicKey otherPartyPublicKey, HashAlgorithmName hashAlgorithm, byte[] hmacKey)
byte[] DeriveKeyFromHmac(ECDiffieHellmanPublicKey otherPartyPublicKey, HashAlgorithmName hashAlgorithm, byte[] hmacKey, byte[] secretPrepend, byte[] secretAppend)
DeriveKeyMaterialcallMethod("DeriveKeyMaterial",[p1])byte[] DeriveKeyMaterial(ECDiffieHellmanPublicKey otherPartyPublicKey)
DeriveKeyTlscallMethod("DeriveKeyTls",[p1,p2,p3])byte[] DeriveKeyTls(ECDiffieHellmanPublicKey otherPartyPublicKey, byte[] prfLabel, byte[] prfSeed)
DeriveRawSecretAgreementcallMethod("DeriveRawSecretAgreement",[p1])byte[] DeriveRawSecretAgreement(ECDiffieHellmanPublicKey otherPartyPublicKey)
FromXmlStringcallMethod("FromXmlString",[p1])void FromXmlString(string xmlString)
ToXmlStringcallMethod("ToXmlString",[p1])string ToXmlString(bool includePrivateParameters)

Members of the base class are inherited.

ECDiffieHellmanCng class sealed · extends ECDiffieHellman

System.Security.Cryptography.ECDiffieHellmanCng · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new ECDiffieHellmanCng()
new ECDiffieHellmanCng(int keySize)
new ECDiffieHellmanCng(ECCurve curve)
new ECDiffieHellmanCng(CngKey key)

Ring: new ECDiffieHellmanCng(args) uses one constructor; the others are chosen by the parameter names: new ECDiffieHellmanCng().@New([ :param = value ]) or dnNew("ECDiffieHellmanCng",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
KeySizeintread, writeo.getKeySize() o.setKeySize(v)
LegalKeySizesKeySizes[]reado.getLegalKeySizes()
HashAlgorithmCngAlgorithmread, writeo.HashAlgorithm o.HashAlgorithm = v
KeyDerivationFunctionECDiffieHellmanKeyDerivationFunctionread, writeo.KeyDerivationFunction o.KeyDerivationFunction = v
HmacKeybyte[]read, writeo.HmacKey o.HmacKey = v
Labelbyte[]read, writeo.Label o.Label = v
SecretAppendbyte[]read, writeo.SecretAppend o.SecretAppend = v
SecretPrependbyte[]read, writeo.SecretPrepend o.SecretPrepend = v
Seedbyte[]read, writeo.Seed o.Seed = v
UseSecretAgreementAsHmacKeyboolreado.UseSecretAgreementAsHmacKey
PublicKeyECDiffieHellmanPublicKeyreado.getPublicKey()
KeyCngKeyreado.Key

Methods

MethodRing call.NET overloads
DeriveKeyFromHashDeriveKeyFromHash([ :otherPartyPublicKey = …, :hashAlgorithm = …, :secretPrepend = …, :secretAppend = … ])byte[] DeriveKeyFromHash(ECDiffieHellmanPublicKey otherPartyPublicKey, HashAlgorithmName hashAlgorithm, byte[] secretPrepend, byte[] secretAppend)
DeriveKeyFromHmacDeriveKeyFromHmac([ :otherPartyPublicKey = …, :hashAlgorithm = …, :hmacKey = …, :secretPrepend = …, :secretAppend = … ])byte[] DeriveKeyFromHmac(ECDiffieHellmanPublicKey otherPartyPublicKey, HashAlgorithmName hashAlgorithm, byte[] hmacKey, byte[] secretPrepend, byte[] secretAppend)
DeriveKeyMaterialcallMethod("DeriveKeyMaterial",[p1])byte[] DeriveKeyMaterial(ECDiffieHellmanPublicKey otherPartyPublicKey)
byte[] DeriveKeyMaterial(CngKey otherPartyPublicKey)
DeriveKeyTlscallMethod("DeriveKeyTls",[p1,p2,p3])byte[] DeriveKeyTls(ECDiffieHellmanPublicKey otherPartyPublicKey, byte[] prfLabel, byte[] prfSeed)
DeriveRawSecretAgreementcallMethod("DeriveRawSecretAgreement",[p1])byte[] DeriveRawSecretAgreement(ECDiffieHellmanPublicKey otherPartyPublicKey)
DeriveSecretAgreementHandlecallMethod("DeriveSecretAgreementHandle",[p1])SafeNCryptSecretHandle DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey otherPartyPublicKey)
SafeNCryptSecretHandle DeriveSecretAgreementHandle(CngKey otherPartyPublicKey)
ExportEncryptedPkcs8PrivateKeycallMethod("ExportEncryptedPkcs8PrivateKey",[p1,p2])byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters)
ExportExplicitParameterscallMethod("ExportExplicitParameters",[p1])ECParameters ExportExplicitParameters(bool includePrivateParameters)
ExportParameterscallMethod("ExportParameters",[p1])ECParameters ExportParameters(bool includePrivateParameters)
FromXmlStringcallMethod("FromXmlString",[p1,p2])void FromXmlString(string xml, ECKeyXmlFormat format)
GenerateKeyGenerateKey(p1)void GenerateKey(ECCurve curve)
ImportEncryptedPkcs8PrivateKeyImportEncryptedPkcs8PrivateKey(p1,p2)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)
void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead)
ImportParametersImportParameters(p1)void ImportParameters(ECParameters parameters)
ImportPkcs8PrivateKeyImportPkcs8PrivateKey(p1)void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
ToXmlStringToXmlString(p1)string ToXmlString(ECKeyXmlFormat format)
TryExportEncryptedPkcs8PrivateKeyTryExportEncryptedPkcs8PrivateKey(p1,p2,p3)bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
TryExportPkcs8PrivateKeyTryExportPkcs8PrivateKey(p1)bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

ECDiffieHellmanCngPublicKey class sealed · extends ECDiffieHellmanPublicKey

System.Security.Cryptography.ECDiffieHellmanCngPublicKey · assembly System.Security.Cryptography

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
BlobFormatCngKeyBlobFormatreado.BlobFormat

Methods

MethodRing call.NET overloads
ExportExplicitParameterscallMethod("ExportExplicitParameters",[])ECParameters ExportExplicitParameters()
ExportParameterscallMethod("ExportParameters",[])ECParameters ExportParameters()
FromByteArrayFromByteArray(p1,p2)static ECDiffieHellmanPublicKey FromByteArray(byte[] publicKeyBlob, CngKeyBlobFormat format)
FromXmlStringFromXmlString(p1)static ECDiffieHellmanCngPublicKey FromXmlString(string xml)
ImportcallMethod("Import",[])CngKey Import()
ToXmlStringcallMethod("ToXmlString",[])string ToXmlString()

Members of the base class are inherited.

ECDiffieHellmanOpenSsl class sealed · extends ECDiffieHellman

System.Security.Cryptography.ECDiffieHellmanOpenSsl · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new ECDiffieHellmanOpenSsl()
new ECDiffieHellmanOpenSsl(int keySize)
new ECDiffieHellmanOpenSsl(IntPtr handle)
new ECDiffieHellmanOpenSsl(ECCurve curve)
new ECDiffieHellmanOpenSsl(SafeEvpPKeyHandle pkeyHandle)

Ring: new ECDiffieHellmanOpenSsl(args) uses one constructor; the others are chosen by the parameter names: new ECDiffieHellmanOpenSsl().@New([ :param = value ]) or dnNew("ECDiffieHellmanOpenSsl",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
PublicKeyECDiffieHellmanPublicKeyreado.getPublicKey()

Methods

MethodRing call.NET overloads
DuplicateKeyHandlecallMethod("DuplicateKeyHandle",[])SafeEvpPKeyHandle DuplicateKeyHandle()
ExportParameterscallMethod("ExportParameters",[p1])ECParameters ExportParameters(bool includePrivateParameters)
ImportParametersImportParameters(p1)void ImportParameters(ECParameters parameters)

Members of the base class are inherited.

ECDiffieHellmanPublicKey class abstract

System.Security.Cryptography.ECDiffieHellmanPublicKey · assembly System.Security.Cryptography

Implements: IDisposable

Methods

MethodRing call.NET overloads
DisposecallMethod("Dispose",[])void Dispose()
ExportExplicitParameterscallMethod("ExportExplicitParameters",[])ECParameters ExportExplicitParameters()
ExportParameterscallMethod("ExportParameters",[])ECParameters ExportParameters()
ExportSubjectPublicKeyInfocallMethod("ExportSubjectPublicKeyInfo",[])byte[] ExportSubjectPublicKeyInfo()
ToByteArraycallMethod("ToByteArray",[])byte[] ToByteArray()
ToXmlStringcallMethod("ToXmlString",[])string ToXmlString()
TryExportSubjectPublicKeyInfoTryExportSubjectPublicKeyInfo(p1)bool TryExportSubjectPublicKeyInfo(Span<byte> destination, out int bytesWritten)
ECDsa class abstract · extends ECAlgorithm

System.Security.Cryptography.ECDsa · assembly System.Security.Cryptography

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
KeyExchangeAlgorithmstringreado.getKeyExchangeAlgorithm()
SignatureAlgorithmstringreado.getSignatureAlgorithm()

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :curve = … ])
Create([ :parameters = … ])
Create([ :algorithm = … ])
static ECDsa Create()
static ECDsa Create(ECCurve curve)
static ECDsa Create(ECParameters parameters)
static ECDsa Create(string algorithm)
FromXmlStringcallMethod("FromXmlString",[p1])void FromXmlString(string xmlString)
GetMaxSignatureSizeGetMaxSignatureSize(p1)int GetMaxSignatureSize(DSASignatureFormat signatureFormat)
SignDataSignData([ :data = …, :hashAlgorithm = … ])
SignData([ :data = …, :hashAlgorithm = …, :signatureFormat = … ])
SignData([ :data = …, :destination = …, :hashAlgorithm = … ])
SignData([ :data = …, :offset = …, :count = …, :hashAlgorithm = … ])
byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm)
byte[] SignData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
byte[] SignData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm)
byte[] SignData(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm)
byte[] SignData(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
int SignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
int SignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm)
SignHashSignHash(value)
SignHash([ :hash = … ])
SignHash([ :hash = …, :signatureFormat = … ])
SignHash([ :hash = …, :destination = … ])
SignHash([ :hash = …, :destination = …, :signatureFormat = … ])
byte[] SignHash(byte[] hash, DSASignatureFormat signatureFormat)
byte[] SignHash(ReadOnlySpan<byte> hash, DSASignatureFormat signatureFormat)
byte[] SignHash(ReadOnlySpan<byte> hash)
int SignHash(ReadOnlySpan<byte> hash, Span<byte> destination, DSASignatureFormat signatureFormat)
int SignHash(ReadOnlySpan<byte> hash, Span<byte> destination)
byte[] SignHash(byte[] hash)
ToXmlStringcallMethod("ToXmlString",[p1])string ToXmlString(bool includePrivateParameters)
TrySignDataTrySignData([ :data = …, :destination = …, :hashAlgorithm = …, :bytesWritten = … ])
TrySignData([ :data = …, :destination = …, :hashAlgorithm = …, :signatureFormat = …, :bytesWritten = … ])
bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, out int bytesWritten)
bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat, out int bytesWritten)
TrySignHashTrySignHash([ :hash = …, :destination = …, :bytesWritten = … ])
TrySignHash([ :hash = …, :destination = …, :signatureFormat = …, :bytesWritten = … ])
bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, out int bytesWritten)
bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, DSASignatureFormat signatureFormat, out int bytesWritten)
VerifyDataVerifyData([ :data = …, :signature = …, :hashAlgorithm = … ])
VerifyData([ :data = …, :signature = …, :hashAlgorithm = …, :signatureFormat = … ])
VerifyData([ :data = …, :offset = …, :count = …, :signature = …, :hashAlgorithm = … ])
VerifyData([ :data = …, :offset = …, :count = …, :signature = …, :hashAlgorithm = …, :signatureFormat = … ])
bool VerifyData(byte[] data, byte[] signature, HashAlgorithmName hashAlgorithm)
bool VerifyData(byte[] data, int offset, int count, byte[] signature, HashAlgorithmName hashAlgorithm)
bool VerifyData(byte[] data, int offset, int count, byte[] signature, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
bool VerifyData(byte[] data, byte[] signature, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm)
bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm)
bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm, DSASignatureFormat signatureFormat)
VerifyHashVerifyHash([ :hash = …, :signature = … ])
VerifyHash([ :hash = …, :signature = …, :signatureFormat = … ])
bool VerifyHash(byte[] hash, byte[] signature)
bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature)
bool VerifyHash(byte[] hash, byte[] signature, DSASignatureFormat signatureFormat)
bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, DSASignatureFormat signatureFormat)

Members of the base class are inherited.

ECDsaCng class sealed · extends ECDsa

System.Security.Cryptography.ECDsaCng · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new ECDsaCng(ECCurve curve)
new ECDsaCng()
new ECDsaCng(int keySize)
new ECDsaCng(CngKey key)

Ring: new ECDsaCng(args) uses one constructor; the others are chosen by the parameter names: new ECDsaCng().@New([ :param = value ]) or dnNew("ECDsaCng",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
KeySizeintread, writeo.getKeySize() o.setKeySize(v)
LegalKeySizesKeySizes[]reado.getLegalKeySizes()
HashAlgorithmCngAlgorithmread, writeo.HashAlgorithm o.HashAlgorithm = v
KeyCngKeyreado.Key

Methods

MethodRing call.NET overloads
ExportEncryptedPkcs8PrivateKeycallMethod("ExportEncryptedPkcs8PrivateKey",[p1,p2])byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters)
ExportExplicitParameterscallMethod("ExportExplicitParameters",[p1])ECParameters ExportExplicitParameters(bool includePrivateParameters)
ExportParameterscallMethod("ExportParameters",[p1])ECParameters ExportParameters(bool includePrivateParameters)
FromXmlStringcallMethod("FromXmlString",[p1,p2])void FromXmlString(string xml, ECKeyXmlFormat format)
GenerateKeyGenerateKey(p1)void GenerateKey(ECCurve curve)
ImportEncryptedPkcs8PrivateKeyImportEncryptedPkcs8PrivateKey(p1,p2)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)
void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead)
ImportParametersImportParameters(p1)void ImportParameters(ECParameters parameters)
ImportPkcs8PrivateKeyImportPkcs8PrivateKey(p1)void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
SignDataSignData(value)
SignData([ :data = … ])
SignData([ :data = …, :offset = …, :count = … ])
byte[] SignData(byte[] data)
byte[] SignData(byte[] data, int offset, int count)
byte[] SignData(Stream data)
SignHashSignHash(value)
SignHash([ :hash = … ])
byte[] SignHash(byte[] hash)
ToXmlStringToXmlString(p1)string ToXmlString(ECKeyXmlFormat format)
TryExportEncryptedPkcs8PrivateKeyTryExportEncryptedPkcs8PrivateKey(p1,p2,p3)bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
TryExportPkcs8PrivateKeyTryExportPkcs8PrivateKey(p1)bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten)
TrySignHashTrySignHash([ :source = …, :destination = …, :bytesWritten = … ])bool TrySignHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
VerifyDataVerifyData([ :data = …, :signature = … ])
VerifyData([ :data = …, :offset = …, :count = …, :signature = … ])
bool VerifyData(byte[] data, byte[] signature)
bool VerifyData(byte[] data, int offset, int count, byte[] signature)
bool VerifyData(Stream data, byte[] signature)
VerifyHashVerifyHash([ :hash = …, :signature = … ])bool VerifyHash(byte[] hash, byte[] signature)
bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature)

Members of the base class are inherited.

ECDsaOpenSsl class sealed · extends ECDsa

System.Security.Cryptography.ECDsaOpenSsl · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new ECDsaOpenSsl()
new ECDsaOpenSsl(int keySize)
new ECDsaOpenSsl(IntPtr handle)
new ECDsaOpenSsl(ECCurve curve)
new ECDsaOpenSsl(SafeEvpPKeyHandle pkeyHandle)

Ring: new ECDsaOpenSsl(args) uses one constructor; the others are chosen by the parameter names: new ECDsaOpenSsl().@New([ :param = value ]) or dnNew("ECDsaOpenSsl",[ :param = value ]).

Methods

MethodRing call.NET overloads
DuplicateKeyHandlecallMethod("DuplicateKeyHandle",[])SafeEvpPKeyHandle DuplicateKeyHandle()
SignHashSignHash(value)
SignHash([ :hash = … ])
byte[] SignHash(byte[] hash)
VerifyHashVerifyHash([ :hash = …, :signature = … ])bool VerifyHash(byte[] hash, byte[] signature)

Members of the base class are inherited.

ECParameters struct

System.Security.Cryptography.ECParameters · assembly System.Security.Cryptography

Properties and fields

NameTypeAccessIn Ring
QECPointread, writeo.Q o.Q = v
Dbyte[]read, writeo.D o.D = v
CurveECCurveread, writeo.Curve o.Curve = v

Methods

MethodRing call.NET overloads
ValidatecallMethod("Validate",[])void Validate()
ECPoint struct

System.Security.Cryptography.ECPoint · assembly System.Security.Cryptography

Properties and fields

NameTypeAccessIn Ring
Xbyte[]read, writeo.X o.X = v
Ybyte[]read, writeo.Y o.Y = v
FromBase64Transform class

System.Security.Cryptography.FromBase64Transform · assembly System.Security.Cryptography

Implements: ICryptoTransform, IDisposable

Constructors

new FromBase64Transform()
new FromBase64Transform(FromBase64TransformMode whitespaces)

Ring: new FromBase64Transform(args) uses one constructor; the others are chosen by the parameter names: new FromBase64Transform().@New([ :param = value ]) or dnNew("FromBase64Transform",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
InputBlockSizeintreado.InputBlockSize
OutputBlockSizeintreado.OutputBlockSize
CanTransformMultipleBlocksboolreado.CanTransformMultipleBlocks
CanReuseTransformboolreado.CanReuseTransform

Methods

MethodRing call.NET overloads
ClearcallMethod("Clear",[])void Clear()
DisposecallMethod("Dispose",[])void Dispose()
TransformBlockTransformBlock(p1,p2,p3,p4,p5)int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
TransformFinalBlockcallMethod("TransformFinalBlock",[p1,p2,p3])byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
HashAlgorithm class abstract

System.Security.Cryptography.HashAlgorithm · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Properties and fields

NameTypeAccessIn Ring
HashSizeintreado.HashSize
Hashbyte[]reado.Hash
InputBlockSizeintreado.InputBlockSize
OutputBlockSizeintreado.OutputBlockSize
CanTransformMultipleBlocksboolreado.CanTransformMultipleBlocks
CanReuseTransformboolreado.CanReuseTransform

Methods

MethodRing call.NET overloads
ClearcallMethod("Clear",[])void Clear()
ComputeHashComputeHash(value)
ComputeHash([ :buffer = … ])
ComputeHash([ :inputStream = … ])
ComputeHash([ :buffer = …, :offset = …, :count = … ])
byte[] ComputeHash(byte[] buffer)
byte[] ComputeHash(byte[] buffer, int offset, int count)
byte[] ComputeHash(Stream inputStream)
ComputeHashAsyncComputeHashAsync([ :inputStream = …, :cancellationToken = … ])Task<byte[]> ComputeHashAsync(Stream inputStream, CancellationToken cancellationToken = …)
CreateCreate(NULL)
Create(value)
Create([ :hashName = … ])
static HashAlgorithm Create()
static HashAlgorithm Create(string hashName)
DisposecallMethod("Dispose",[])void Dispose()
InitializecallMethod("Initialize",[])void Initialize()
TransformBlockTransformBlock(p1,p2,p3,p4,p5)int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
TransformFinalBlockcallMethod("TransformFinalBlock",[p1,p2,p3])byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
TryComputeHashTryComputeHash(p1,p2)bool TryComputeHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
HashAlgorithmName struct

System.Security.Cryptography.HashAlgorithmName · assembly System.Security.Cryptography

Constructors

new HashAlgorithmName(string name)

Ring: new HashAlgorithmName(args) uses one constructor; the others are chosen by the parameter names: new HashAlgorithmName().@New([ :param = value ]) or dnNew("HashAlgorithmName",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Namestringreado.Name
MD5HashAlgorithmNameread · statico.MD5
SHA1HashAlgorithmNameread · statico.SHA1
SHA256HashAlgorithmNameread · statico.SHA256
SHA384HashAlgorithmNameread · statico.SHA384
SHA512HashAlgorithmNameread · statico.SHA512
SHA3_256HashAlgorithmNameread · statico.SHA3_256
SHA3_384HashAlgorithmNameread · statico.SHA3_384
SHA3_512HashAlgorithmNameread · statico.SHA3_512

Methods

MethodRing call.NET overloads
EqualsEquals(p1)bool Equals(object obj)
bool Equals(HashAlgorithmName other)
FromOidFromOid(p1)static HashAlgorithmName FromOid(string oidValue)
GetHashCodecallMethod("GetHashCode",[])int GetHashCode()
ToStringcallMethod("ToString",[])string ToString()
TryFromOidTryFromOid(p1)static bool TryFromOid(string oidValue, out HashAlgorithmName value)
HKDF class static

System.Security.Cryptography.HKDF · assembly System.Security.Cryptography

Methods

MethodRing call.NET overloads
DeriveKeyDeriveKey([ :hashAlgorithmName = …, :ikm = …, :outputLength = …, :salt = …, :info = … ])
DeriveKey([ :hashAlgorithmName = …, :ikm = …, :output = …, :salt = …, :info = … ])
static byte[] DeriveKey(HashAlgorithmName hashAlgorithmName, byte[] ikm, int outputLength, byte[] salt = …, byte[] info = …)
static void DeriveKey(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> ikm, Span<byte> output, ReadOnlySpan<byte> salt, ReadOnlySpan<byte> info)
ExpandExpand([ :hashAlgorithmName = …, :prk = …, :outputLength = …, :info = … ])
Expand([ :hashAlgorithmName = …, :prk = …, :output = …, :info = … ])
static byte[] Expand(HashAlgorithmName hashAlgorithmName, byte[] prk, int outputLength, byte[] info = …)
static void Expand(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> prk, Span<byte> output, ReadOnlySpan<byte> info)
ExtractExtract([ :hashAlgorithmName = …, :ikm = …, :salt = … ])
Extract([ :hashAlgorithmName = …, :ikm = …, :salt = …, :prk = … ])
static byte[] Extract(HashAlgorithmName hashAlgorithmName, byte[] ikm, byte[] salt = …)
static int Extract(HashAlgorithmName hashAlgorithmName, ReadOnlySpan<byte> ikm, ReadOnlySpan<byte> salt, Span<byte> prk)
HMAC class abstract · extends KeyedHashAlgorithm

System.Security.Cryptography.HMAC · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Properties and fields

NameTypeAccessIn Ring
HashNamestringread, writeo.HashName o.HashName = v
Keybyte[]read, writeo.getKey() o.setKey(v)

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :algorithmName = … ])
static HMAC Create()
static HMAC Create(string algorithmName)
InitializecallMethod("Initialize",[])void Initialize()

Members of the base class are inherited.

HMACMD5 class · extends HMAC

System.Security.Cryptography.HMACMD5 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Constructors

new HMACMD5()
new HMACMD5(byte[] key)

Ring: new HMACMD5(args) uses one constructor; the others are chosen by the parameter names: new HMACMD5().@New([ :param = value ]) or dnNew("HMACMD5",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Keybyte[]read, writeo.getKey() o.setKey(v)
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
HashDataHashData(p1,p2)static byte[] HashData(byte[] key, byte[] source)
static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination)
static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
static byte[] HashData(byte[] key, Stream source)
HashDataAsyncHashDataAsync([ :key = …, :source = …, :cancellationToken = … ])
HashDataAsync([ :key = …, :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(byte[] key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
InitializecallMethod("Initialize",[])void Initialize()
TryHashDataTryHashData(p1,p2,p3)static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

HMACSHA1 class · extends HMAC

System.Security.Cryptography.HMACSHA1 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Constructors

new HMACSHA1()
new HMACSHA1(byte[] key)
new HMACSHA1(byte[] key, bool useManagedSha1)

Ring: new HMACSHA1(args) uses one constructor; the others are chosen by the parameter names: new HMACSHA1().@New([ :param = value ]) or dnNew("HMACSHA1",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Keybyte[]read, writeo.getKey() o.setKey(v)
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
HashDataHashData(p1,p2)static byte[] HashData(byte[] key, byte[] source)
static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination)
static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
static byte[] HashData(byte[] key, Stream source)
HashDataAsyncHashDataAsync([ :key = …, :source = …, :cancellationToken = … ])
HashDataAsync([ :key = …, :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(byte[] key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
InitializecallMethod("Initialize",[])void Initialize()
TryHashDataTryHashData(p1,p2,p3)static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

HMACSHA256 class · extends HMAC

System.Security.Cryptography.HMACSHA256 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Constructors

new HMACSHA256()
new HMACSHA256(byte[] key)

Ring: new HMACSHA256(args) uses one constructor; the others are chosen by the parameter names: new HMACSHA256().@New([ :param = value ]) or dnNew("HMACSHA256",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Keybyte[]read, writeo.getKey() o.setKey(v)
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
HashDataHashData(p1,p2)static byte[] HashData(byte[] key, byte[] source)
static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination)
static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
static byte[] HashData(byte[] key, Stream source)
HashDataAsyncHashDataAsync([ :key = …, :source = …, :cancellationToken = … ])
HashDataAsync([ :key = …, :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(byte[] key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
InitializecallMethod("Initialize",[])void Initialize()
TryHashDataTryHashData(p1,p2,p3)static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

HMACSHA384 class · extends HMAC

System.Security.Cryptography.HMACSHA384 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Constructors

new HMACSHA384()
new HMACSHA384(byte[] key)

Ring: new HMACSHA384(args) uses one constructor; the others are chosen by the parameter names: new HMACSHA384().@New([ :param = value ]) or dnNew("HMACSHA384",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
ProduceLegacyHmacValuesboolread, writeo.ProduceLegacyHmacValues o.ProduceLegacyHmacValues = v
Keybyte[]read, writeo.getKey() o.setKey(v)
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
HashDataHashData(p1,p2)static byte[] HashData(byte[] key, byte[] source)
static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination)
static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
static byte[] HashData(byte[] key, Stream source)
HashDataAsyncHashDataAsync([ :key = …, :source = …, :cancellationToken = … ])
HashDataAsync([ :key = …, :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(byte[] key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
InitializecallMethod("Initialize",[])void Initialize()
TryHashDataTryHashData(p1,p2,p3)static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

HMACSHA3_256 class · extends HMAC

System.Security.Cryptography.HMACSHA3_256 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Constructors

new HMACSHA3_256()
new HMACSHA3_256(byte[] key)

Ring: new HMACSHA3_256(args) uses one constructor; the others are chosen by the parameter names: new HMACSHA3_256().@New([ :param = value ]) or dnNew("HMACSHA3_256",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Keybyte[]read, writeo.getKey() o.setKey(v)
IsSupportedboolread · statico.IsSupported
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
HashDataHashData(p1,p2)static byte[] HashData(byte[] key, byte[] source)
static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination)
static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
static byte[] HashData(byte[] key, Stream source)
HashDataAsyncHashDataAsync([ :key = …, :source = …, :cancellationToken = … ])
HashDataAsync([ :key = …, :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(byte[] key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
InitializecallMethod("Initialize",[])void Initialize()
TryHashDataTryHashData(p1,p2,p3)static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

HMACSHA3_384 class · extends HMAC

System.Security.Cryptography.HMACSHA3_384 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Constructors

new HMACSHA3_384()
new HMACSHA3_384(byte[] key)

Ring: new HMACSHA3_384(args) uses one constructor; the others are chosen by the parameter names: new HMACSHA3_384().@New([ :param = value ]) or dnNew("HMACSHA3_384",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Keybyte[]read, writeo.getKey() o.setKey(v)
IsSupportedboolread · statico.IsSupported
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
HashDataHashData(p1,p2)static byte[] HashData(byte[] key, byte[] source)
static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination)
static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
static byte[] HashData(byte[] key, Stream source)
HashDataAsyncHashDataAsync([ :key = …, :source = …, :cancellationToken = … ])
HashDataAsync([ :key = …, :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(byte[] key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
InitializecallMethod("Initialize",[])void Initialize()
TryHashDataTryHashData(p1,p2,p3)static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

HMACSHA3_512 class · extends HMAC

System.Security.Cryptography.HMACSHA3_512 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Constructors

new HMACSHA3_512()
new HMACSHA3_512(byte[] key)

Ring: new HMACSHA3_512(args) uses one constructor; the others are chosen by the parameter names: new HMACSHA3_512().@New([ :param = value ]) or dnNew("HMACSHA3_512",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Keybyte[]read, writeo.getKey() o.setKey(v)
IsSupportedboolread · statico.IsSupported
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
HashDataHashData(p1,p2)static byte[] HashData(byte[] key, byte[] source)
static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination)
static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
static byte[] HashData(byte[] key, Stream source)
HashDataAsyncHashDataAsync([ :key = …, :source = …, :cancellationToken = … ])
HashDataAsync([ :key = …, :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(byte[] key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
InitializecallMethod("Initialize",[])void Initialize()
TryHashDataTryHashData(p1,p2,p3)static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

HMACSHA512 class · extends HMAC

System.Security.Cryptography.HMACSHA512 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Constructors

new HMACSHA512()
new HMACSHA512(byte[] key)

Ring: new HMACSHA512(args) uses one constructor; the others are chosen by the parameter names: new HMACSHA512().@New([ :param = value ]) or dnNew("HMACSHA512",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
ProduceLegacyHmacValuesboolread, writeo.ProduceLegacyHmacValues o.ProduceLegacyHmacValues = v
Keybyte[]read, writeo.getKey() o.setKey(v)
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
HashDataHashData(p1,p2)static byte[] HashData(byte[] key, byte[] source)
static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination)
static byte[] HashData(ReadOnlySpan<byte> key, Stream source)
static byte[] HashData(byte[] key, Stream source)
HashDataAsyncHashDataAsync([ :key = …, :source = …, :cancellationToken = … ])
HashDataAsync([ :key = …, :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(byte[] key, Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
InitializecallMethod("Initialize",[])void Initialize()
TryHashDataTryHashData(p1,p2,p3)static bool TryHashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

ICryptoTransform interface

System.Security.Cryptography.ICryptoTransform · assembly System.Security.Cryptography

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
InputBlockSizeintreado.InputBlockSize
OutputBlockSizeintreado.OutputBlockSize
CanTransformMultipleBlocksboolreado.CanTransformMultipleBlocks
CanReuseTransformboolreado.CanReuseTransform

Methods

MethodRing call.NET overloads
TransformBlockTransformBlock(p1,p2,p3,p4,p5)int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
TransformFinalBlockcallMethod("TransformFinalBlock",[p1,p2,p3])byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
ICspAsymmetricAlgorithm interface

System.Security.Cryptography.ICspAsymmetricAlgorithm · assembly System.Security.Cryptography

Properties and fields

NameTypeAccessIn Ring
CspKeyContainerInfoCspKeyContainerInforeado.CspKeyContainerInfo

Methods

MethodRing call.NET overloads
ExportCspBlobcallMethod("ExportCspBlob",[p1])byte[] ExportCspBlob(bool includePrivateParameters)
ImportCspBlobImportCspBlob(p1)void ImportCspBlob(byte[] rawData)
IncrementalHash class sealed

System.Security.Cryptography.IncrementalHash · assembly System.Security.Cryptography

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
HashLengthInBytesintreado.HashLengthInBytes
AlgorithmNameHashAlgorithmNamereado.AlgorithmName

Methods

MethodRing call.NET overloads
AppendDatacallMethod("AppendData",[p1])
callMethod("AppendData",[p1,p2,p3])
void AppendData(byte[] data)
void AppendData(byte[] data, int offset, int count)
void AppendData(ReadOnlySpan<byte> data)
ClonecallMethod("Clone",[])IncrementalHash Clone()
CreateHashCreateHash(p1)static IncrementalHash CreateHash(HashAlgorithmName hashAlgorithm)
CreateHMACCreateHMAC(p1,p2)static IncrementalHash CreateHMAC(HashAlgorithmName hashAlgorithm, byte[] key)
static IncrementalHash CreateHMAC(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key)
DisposecallMethod("Dispose",[])void Dispose()
GetCurrentHashcallMethod("GetCurrentHash",[])
callMethod("GetCurrentHash",[p1])
byte[] GetCurrentHash()
int GetCurrentHash(Span<byte> destination)
GetHashAndResetcallMethod("GetHashAndReset",[])
callMethod("GetHashAndReset",[p1])
byte[] GetHashAndReset()
int GetHashAndReset(Span<byte> destination)
TryGetCurrentHashTryGetCurrentHash(p1)bool TryGetCurrentHash(Span<byte> destination, out int bytesWritten)
TryGetHashAndResetTryGetHashAndReset(p1)bool TryGetHashAndReset(Span<byte> destination, out int bytesWritten)
KeyedHashAlgorithm class abstract · extends HashAlgorithm

System.Security.Cryptography.KeyedHashAlgorithm · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Properties and fields

NameTypeAccessIn Ring
Keybyte[]read, writeo.Key o.Key = v

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :algName = … ])
static KeyedHashAlgorithm Create()
static KeyedHashAlgorithm Create(string algName)

Members of the base class are inherited.

KeySizes class sealed

System.Security.Cryptography.KeySizes · assembly System.Security.Cryptography

Constructors

new KeySizes(int minSize, int maxSize, int skipSize)

Ring: new KeySizes(args) uses one constructor; the others are chosen by the parameter names: new KeySizes().@New([ :param = value ]) or dnNew("KeySizes",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
MinSizeintreado.MinSize
MaxSizeintreado.MaxSize
SkipSizeintreado.SkipSize
Kmac128 class sealed

System.Security.Cryptography.Kmac128 · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new Kmac128(byte[] key, byte[] customizationString = …)
new Kmac128(ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = …)

Ring: new Kmac128(args) uses one constructor; the others are chosen by the parameter names: new Kmac128().@New([ :param = value ]) or dnNew("Kmac128",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
IsSupportedboolread · statico.IsSupported

Methods

MethodRing call.NET overloads
AppendDataAppendData(p1)void AppendData(byte[] data)
void AppendData(ReadOnlySpan<byte> data)
ClonecallMethod("Clone",[])Kmac128 Clone()
DisposecallMethod("Dispose",[])void Dispose()
GetCurrentHashcallMethod("GetCurrentHash",[p1])byte[] GetCurrentHash(int outputLength)
void GetCurrentHash(Span<byte> destination)
GetHashAndResetcallMethod("GetHashAndReset",[p1])byte[] GetHashAndReset(int outputLength)
void GetHashAndReset(Span<byte> destination)
HashDataHashData([ :key = …, :source = …, :outputLength = …, :customizationString = … ])
HashData([ :key = …, :source = …, :destination = …, :customizationString = … ])
static byte[] HashData(byte[] key, byte[] source, int outputLength, byte[] customizationString = …)
static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, int outputLength, ReadOnlySpan<byte> customizationString = …)
static void HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, ReadOnlySpan<byte> customizationString = …)
static byte[] HashData(byte[] key, Stream source, int outputLength, byte[] customizationString = …)
static byte[] HashData(ReadOnlySpan<byte> key, Stream source, int outputLength, ReadOnlySpan<byte> customizationString = …)
static void HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination, ReadOnlySpan<byte> customizationString = …)
HashDataAsyncHashDataAsync([ :key = …, :source = …, :outputLength = …, :customizationString = …, :cancellationToken = … ])
HashDataAsync([ :key = …, :source = …, :destination = …, :customizationString = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(byte[] key, Stream source, int outputLength, byte[] customizationString = …, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, int outputLength, ReadOnlyMemory<byte> customizationString = …, CancellationToken cancellationToken = …)
static ValueTask HashDataAsync(ReadOnlyMemory<byte> key, Stream source, Memory<byte> destination, ReadOnlyMemory<byte> customizationString = …, CancellationToken cancellationToken = …)
Kmac256 class sealed

System.Security.Cryptography.Kmac256 · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new Kmac256(byte[] key, byte[] customizationString = …)
new Kmac256(ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = …)

Ring: new Kmac256(args) uses one constructor; the others are chosen by the parameter names: new Kmac256().@New([ :param = value ]) or dnNew("Kmac256",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
IsSupportedboolread · statico.IsSupported

Methods

MethodRing call.NET overloads
AppendDataAppendData(p1)void AppendData(byte[] data)
void AppendData(ReadOnlySpan<byte> data)
ClonecallMethod("Clone",[])Kmac256 Clone()
DisposecallMethod("Dispose",[])void Dispose()
GetCurrentHashcallMethod("GetCurrentHash",[p1])byte[] GetCurrentHash(int outputLength)
void GetCurrentHash(Span<byte> destination)
GetHashAndResetcallMethod("GetHashAndReset",[p1])byte[] GetHashAndReset(int outputLength)
void GetHashAndReset(Span<byte> destination)
HashDataHashData([ :key = …, :source = …, :outputLength = …, :customizationString = … ])
HashData([ :key = …, :source = …, :destination = …, :customizationString = … ])
static byte[] HashData(byte[] key, byte[] source, int outputLength, byte[] customizationString = …)
static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, int outputLength, ReadOnlySpan<byte> customizationString = …)
static void HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, ReadOnlySpan<byte> customizationString = …)
static byte[] HashData(byte[] key, Stream source, int outputLength, byte[] customizationString = …)
static byte[] HashData(ReadOnlySpan<byte> key, Stream source, int outputLength, ReadOnlySpan<byte> customizationString = …)
static void HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination, ReadOnlySpan<byte> customizationString = …)
HashDataAsyncHashDataAsync([ :key = …, :source = …, :outputLength = …, :customizationString = …, :cancellationToken = … ])
HashDataAsync([ :key = …, :source = …, :destination = …, :customizationString = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(byte[] key, Stream source, int outputLength, byte[] customizationString = …, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, int outputLength, ReadOnlyMemory<byte> customizationString = …, CancellationToken cancellationToken = …)
static ValueTask HashDataAsync(ReadOnlyMemory<byte> key, Stream source, Memory<byte> destination, ReadOnlyMemory<byte> customizationString = …, CancellationToken cancellationToken = …)
KmacXof128 class sealed

System.Security.Cryptography.KmacXof128 · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new KmacXof128(byte[] key, byte[] customizationString = …)
new KmacXof128(ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = …)

Ring: new KmacXof128(args) uses one constructor; the others are chosen by the parameter names: new KmacXof128().@New([ :param = value ]) or dnNew("KmacXof128",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
IsSupportedboolread · statico.IsSupported

Methods

MethodRing call.NET overloads
AppendDataAppendData(p1)void AppendData(byte[] data)
void AppendData(ReadOnlySpan<byte> data)
ClonecallMethod("Clone",[])KmacXof128 Clone()
DisposecallMethod("Dispose",[])void Dispose()
GetCurrentHashcallMethod("GetCurrentHash",[p1])byte[] GetCurrentHash(int outputLength)
void GetCurrentHash(Span<byte> destination)
GetHashAndResetcallMethod("GetHashAndReset",[p1])byte[] GetHashAndReset(int outputLength)
void GetHashAndReset(Span<byte> destination)
HashDataHashData([ :key = …, :source = …, :outputLength = …, :customizationString = … ])
HashData([ :key = …, :source = …, :destination = …, :customizationString = … ])
static byte[] HashData(byte[] key, byte[] source, int outputLength, byte[] customizationString = …)
static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, int outputLength, ReadOnlySpan<byte> customizationString = …)
static void HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, ReadOnlySpan<byte> customizationString = …)
static byte[] HashData(byte[] key, Stream source, int outputLength, byte[] customizationString = …)
static byte[] HashData(ReadOnlySpan<byte> key, Stream source, int outputLength, ReadOnlySpan<byte> customizationString = …)
static void HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination, ReadOnlySpan<byte> customizationString = …)
HashDataAsyncHashDataAsync([ :key = …, :source = …, :outputLength = …, :customizationString = …, :cancellationToken = … ])
HashDataAsync([ :key = …, :source = …, :destination = …, :customizationString = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(byte[] key, Stream source, int outputLength, byte[] customizationString = …, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, int outputLength, ReadOnlyMemory<byte> customizationString = …, CancellationToken cancellationToken = …)
static ValueTask HashDataAsync(ReadOnlyMemory<byte> key, Stream source, Memory<byte> destination, ReadOnlyMemory<byte> customizationString = …, CancellationToken cancellationToken = …)
KmacXof256 class sealed

System.Security.Cryptography.KmacXof256 · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new KmacXof256(byte[] key, byte[] customizationString = …)
new KmacXof256(ReadOnlySpan<byte> key, ReadOnlySpan<byte> customizationString = …)

Ring: new KmacXof256(args) uses one constructor; the others are chosen by the parameter names: new KmacXof256().@New([ :param = value ]) or dnNew("KmacXof256",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
IsSupportedboolread · statico.IsSupported

Methods

MethodRing call.NET overloads
AppendDataAppendData(p1)void AppendData(byte[] data)
void AppendData(ReadOnlySpan<byte> data)
ClonecallMethod("Clone",[])KmacXof256 Clone()
DisposecallMethod("Dispose",[])void Dispose()
GetCurrentHashcallMethod("GetCurrentHash",[p1])byte[] GetCurrentHash(int outputLength)
void GetCurrentHash(Span<byte> destination)
GetHashAndResetcallMethod("GetHashAndReset",[p1])byte[] GetHashAndReset(int outputLength)
void GetHashAndReset(Span<byte> destination)
HashDataHashData([ :key = …, :source = …, :outputLength = …, :customizationString = … ])
HashData([ :key = …, :source = …, :destination = …, :customizationString = … ])
static byte[] HashData(byte[] key, byte[] source, int outputLength, byte[] customizationString = …)
static byte[] HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, int outputLength, ReadOnlySpan<byte> customizationString = …)
static void HashData(ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, ReadOnlySpan<byte> customizationString = …)
static byte[] HashData(byte[] key, Stream source, int outputLength, byte[] customizationString = …)
static byte[] HashData(ReadOnlySpan<byte> key, Stream source, int outputLength, ReadOnlySpan<byte> customizationString = …)
static void HashData(ReadOnlySpan<byte> key, Stream source, Span<byte> destination, ReadOnlySpan<byte> customizationString = …)
HashDataAsyncHashDataAsync([ :key = …, :source = …, :outputLength = …, :customizationString = …, :cancellationToken = … ])
HashDataAsync([ :key = …, :source = …, :destination = …, :customizationString = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(byte[] key, Stream source, int outputLength, byte[] customizationString = …, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(ReadOnlyMemory<byte> key, Stream source, int outputLength, ReadOnlyMemory<byte> customizationString = …, CancellationToken cancellationToken = …)
static ValueTask HashDataAsync(ReadOnlyMemory<byte> key, Stream source, Memory<byte> destination, ReadOnlyMemory<byte> customizationString = …, CancellationToken cancellationToken = …)
MaskGenerationMethod class abstract

System.Security.Cryptography.MaskGenerationMethod · assembly System.Security.Cryptography

Methods

MethodRing call.NET overloads
GenerateMaskcallMethod("GenerateMask",[p1,p2])byte[] GenerateMask(byte[] rgbSeed, int cbReturn)
MD5 class abstract · extends HashAlgorithm

System.Security.Cryptography.MD5 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Properties and fields

NameTypeAccessIn Ring
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :algName = … ])
static MD5 Create()
static MD5 Create(string algName)
HashDataHashData(p1)static byte[] HashData(byte[] source)
static byte[] HashData(ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(Stream source, Span<byte> destination)
static byte[] HashData(Stream source)
HashDataAsyncHashDataAsync([ :source = …, :cancellationToken = … ])
HashDataAsync([ :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
TryHashDataTryHashData(p1,p2)static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

Oid class sealed

System.Security.Cryptography.Oid · assembly System.Security.Cryptography

Constructors

new Oid()
new Oid(string oid)
new Oid(string value, string friendlyName)
new Oid(Oid oid)

Ring: new Oid(args) uses one constructor; the others are chosen by the parameter names: new Oid().@New([ :param = value ]) or dnNew("Oid",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Valuestringread, writeo.Value o.Value = v
FriendlyNamestringread, writeo.FriendlyName o.FriendlyName = v

Methods

MethodRing call.NET overloads
FromFriendlyNameFromFriendlyName(p1,p2)static Oid FromFriendlyName(string friendlyName, OidGroup group)
FromOidValueFromOidValue(p1,p2)static Oid FromOidValue(string oidValue, OidGroup group)
OidCollection class sealed

System.Security.Cryptography.OidCollection · assembly System.Security.Cryptography

Implements: ICollection, IEnumerable

Constructors

new OidCollection()

Ring: new OidCollection(args) uses one constructor; the others are chosen by the parameter names: new OidCollection().@New([ :param = value ]) or dnNew("OidCollection",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Countintreado.Count
IsSynchronizedboolreado.IsSynchronized
SyncRootobjectreado.SyncRoot

Indexer

o.Item(int index) → Oid

Methods

MethodRing call.NET overloads
AddAdd(p1)int Add(Oid oid)
CopyToCopyTo(p1,p2)void CopyTo(Oid[] array, int index)
GetEnumeratorcallMethod("GetEnumerator",[])OidEnumerator GetEnumerator()
OidEnumerator class sealed

System.Security.Cryptography.OidEnumerator · assembly System.Security.Cryptography

Implements: IEnumerator

Properties and fields

NameTypeAccessIn Ring
CurrentOidreado.Current

Methods

MethodRing call.NET overloads
MoveNextcallMethod("MoveNext",[])bool MoveNext()
ResetcallMethod("Reset",[])void Reset()
PasswordDeriveBytes class · extends DeriveBytes

System.Security.Cryptography.PasswordDeriveBytes · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new PasswordDeriveBytes(string strPassword, byte[] rgbSalt)
new PasswordDeriveBytes(byte[] password, byte[] salt)
new PasswordDeriveBytes(string strPassword, byte[] rgbSalt, string strHashName, int iterations)
new PasswordDeriveBytes(byte[] password, byte[] salt, string hashName, int iterations)
new PasswordDeriveBytes(string strPassword, byte[] rgbSalt, CspParameters cspParams)
new PasswordDeriveBytes(byte[] password, byte[] salt, CspParameters cspParams)
new PasswordDeriveBytes(string strPassword, byte[] rgbSalt, string strHashName, int iterations, CspParameters cspParams)
new PasswordDeriveBytes(byte[] password, byte[] salt, string hashName, int iterations, CspParameters cspParams)

Ring: new PasswordDeriveBytes(args) uses one constructor; the others are chosen by the parameter names: new PasswordDeriveBytes().@New([ :param = value ]) or dnNew("PasswordDeriveBytes",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
HashNamestringread, writeo.HashName o.HashName = v
IterationCountintread, writeo.IterationCount o.IterationCount = v
Saltbyte[]read, writeo.Salt o.Salt = v

Methods

MethodRing call.NET overloads
CryptDeriveKeycallMethod("CryptDeriveKey",[p1,p2,p3,p4])byte[] CryptDeriveKey(string algname, string alghashname, int keySize, byte[] rgbIV)
GetBytescallMethod("GetBytes",[p1])byte[] GetBytes(int cb)
ResetcallMethod("Reset",[])void Reset()

Members of the base class are inherited.

PbeParameters class sealed

System.Security.Cryptography.PbeParameters · assembly System.Security.Cryptography

Constructors

new PbeParameters(PbeEncryptionAlgorithm encryptionAlgorithm, HashAlgorithmName hashAlgorithm, int iterationCount)

Ring: new PbeParameters(args) uses one constructor; the others are chosen by the parameter names: new PbeParameters().@New([ :param = value ]) or dnNew("PbeParameters",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
EncryptionAlgorithmPbeEncryptionAlgorithmreado.EncryptionAlgorithm
HashAlgorithmHashAlgorithmNamereado.HashAlgorithm
IterationCountintreado.IterationCount
PemEncoding class static

System.Security.Cryptography.PemEncoding · assembly System.Security.Cryptography

Methods

MethodRing call.NET overloads
FindFind(p1)static PemFields Find(ReadOnlySpan<char> pemData)
GetEncodedSizecallMethod("GetEncodedSize",[p1,p2])static int GetEncodedSize(int labelLength, int dataLength)
TryFindTryFind(p1)static bool TryFind(ReadOnlySpan<char> pemData, out PemFields fields)
TryWriteTryWrite(p1,p2,p3)static bool TryWrite(ReadOnlySpan<char> label, ReadOnlySpan<byte> data, Span<char> destination, out int charsWritten)
WriteWrite(p1,p2)static char[] Write(ReadOnlySpan<char> label, ReadOnlySpan<byte> data)
WriteStringWriteString(p1,p2)static string WriteString(ReadOnlySpan<char> label, ReadOnlySpan<byte> data)
PemFields struct

System.Security.Cryptography.PemFields · assembly System.Security.Cryptography

Properties and fields

NameTypeAccessIn Ring
LocationRangereado.Location
LabelRangereado.Label
Base64DataRangereado.Base64Data
DecodedDataLengthintreado.DecodedDataLength
PKCS1MaskGenerationMethod class · extends MaskGenerationMethod

System.Security.Cryptography.PKCS1MaskGenerationMethod · assembly System.Security.Cryptography

Constructors

new PKCS1MaskGenerationMethod()

Ring: new PKCS1MaskGenerationMethod(args) uses one constructor; the others are chosen by the parameter names: new PKCS1MaskGenerationMethod().@New([ :param = value ]) or dnNew("PKCS1MaskGenerationMethod",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
HashNamestringread, writeo.HashName o.HashName = v

Methods

MethodRing call.NET overloads
GenerateMaskcallMethod("GenerateMask",[p1,p2])byte[] GenerateMask(byte[] rgbSeed, int cbReturn)

Members of the base class are inherited.

RandomNumberGenerator class abstract

System.Security.Cryptography.RandomNumberGenerator · assembly System.Security.Cryptography

Implements: IDisposable

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :rngName = … ])
static RandomNumberGenerator Create()
static RandomNumberGenerator Create(string rngName)
DisposecallMethod("Dispose",[])void Dispose()
FillFill(p1)static void Fill(Span<byte> data)
GetBytesGetBytes(value)
GetBytes([ :data = … ])
GetBytes([ :count = … ])
GetBytes([ :data = …, :offset = …, :count = … ])
void GetBytes(byte[] data)
void GetBytes(byte[] data, int offset, int count)
void GetBytes(Span<byte> data)
static byte[] GetBytes(int count)
GetHexStringGetHexString([ :destination = …, :lowercase = … ])
GetHexString([ :stringLength = …, :lowercase = … ])
static void GetHexString(Span<char> destination, bool lowercase = …)
static string GetHexString(int stringLength, bool lowercase = …)
GetInt32GetInt32(value)
GetInt32([ :toExclusive = … ])
GetInt32([ :fromInclusive = …, :toExclusive = … ])
static int GetInt32(int fromInclusive, int toExclusive)
static int GetInt32(int toExclusive)
GetItemsGetItems(p1,p2)static void GetItems<T>(ReadOnlySpan<T> choices, Span<T> destination)
static T[] GetItems<T>(ReadOnlySpan<T> choices, int length)
GetNonZeroBytesGetNonZeroBytes(p1)void GetNonZeroBytes(byte[] data)
void GetNonZeroBytes(Span<byte> data)
GetStringGetString(p1,p2)static string GetString(ReadOnlySpan<char> choices, int length)
ShuffleShuffle(p1)static void Shuffle<T>(Span<T> values)
RC2 class abstract · extends SymmetricAlgorithm

System.Security.Cryptography.RC2 · assembly System.Security.Cryptography

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
KeySizeintread, writeo.getKeySize() o.setKeySize(v)
EffectiveKeySizeintread, writeo.EffectiveKeySize o.EffectiveKeySize = v

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :AlgName = … ])
static RC2 Create()
static RC2 Create(string AlgName)

Members of the base class are inherited.

Rfc2898DeriveBytes class · extends DeriveBytes

System.Security.Cryptography.Rfc2898DeriveBytes · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new Rfc2898DeriveBytes(byte[] password, byte[] salt, int iterations)
new Rfc2898DeriveBytes(byte[] password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm)
new Rfc2898DeriveBytes(string password, byte[] salt)
new Rfc2898DeriveBytes(string password, byte[] salt, int iterations)
new Rfc2898DeriveBytes(string password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm)
new Rfc2898DeriveBytes(string password, int saltSize)
new Rfc2898DeriveBytes(string password, int saltSize, int iterations)
new Rfc2898DeriveBytes(string password, int saltSize, int iterations, HashAlgorithmName hashAlgorithm)

Ring: new Rfc2898DeriveBytes(args) uses one constructor; the others are chosen by the parameter names: new Rfc2898DeriveBytes().@New([ :param = value ]) or dnNew("Rfc2898DeriveBytes",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
HashAlgorithmHashAlgorithmNamereado.HashAlgorithm
IterationCountintread, writeo.IterationCount o.IterationCount = v
Saltbyte[]read, writeo.Salt o.Salt = v

Methods

MethodRing call.NET overloads
CryptDeriveKeycallMethod("CryptDeriveKey",[p1,p2,p3,p4])byte[] CryptDeriveKey(string algname, string alghashname, int keySize, byte[] rgbIV)
GetBytescallMethod("GetBytes",[p1])byte[] GetBytes(int cb)
Pbkdf2Pbkdf2(p1,p2,p3,p4,p5)static byte[] Pbkdf2(byte[] password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm, int outputLength)
static byte[] Pbkdf2(ReadOnlySpan<byte> password, ReadOnlySpan<byte> salt, int iterations, HashAlgorithmName hashAlgorithm, int outputLength)
static void Pbkdf2(ReadOnlySpan<byte> password, ReadOnlySpan<byte> salt, Span<byte> destination, int iterations, HashAlgorithmName hashAlgorithm)
static byte[] Pbkdf2(string password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm, int outputLength)
static byte[] Pbkdf2(ReadOnlySpan<char> password, ReadOnlySpan<byte> salt, int iterations, HashAlgorithmName hashAlgorithm, int outputLength)
static void Pbkdf2(ReadOnlySpan<char> password, ReadOnlySpan<byte> salt, Span<byte> destination, int iterations, HashAlgorithmName hashAlgorithm)
ResetcallMethod("Reset",[])void Reset()

Members of the base class are inherited.

RSA class abstract · extends AsymmetricAlgorithm

System.Security.Cryptography.RSA · assembly System.Security.Cryptography

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
KeyExchangeAlgorithmstringreado.getKeyExchangeAlgorithm()
SignatureAlgorithmstringreado.getSignatureAlgorithm()

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :algName = … ])
Create([ :keySizeInBits = … ])
Create([ :parameters = … ])
static RSA Create()
static RSA Create(string algName)
static RSA Create(int keySizeInBits)
static RSA Create(RSAParameters parameters)
DecryptcallMethod("Decrypt",[p1,p2])
callMethod("Decrypt",[p1,p2,p3])
byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)
byte[] Decrypt(ReadOnlySpan<byte> data, RSAEncryptionPadding padding)
int Decrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding)
DecryptValuecallMethod("DecryptValue",[p1])byte[] DecryptValue(byte[] rgb)
EncryptcallMethod("Encrypt",[p1,p2])
callMethod("Encrypt",[p1,p2,p3])
byte[] Encrypt(byte[] data, RSAEncryptionPadding padding)
byte[] Encrypt(ReadOnlySpan<byte> data, RSAEncryptionPadding padding)
int Encrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding)
EncryptValuecallMethod("EncryptValue",[p1])byte[] EncryptValue(byte[] rgb)
ExportParameterscallMethod("ExportParameters",[p1])RSAParameters ExportParameters(bool includePrivateParameters)
ExportRSAPrivateKeycallMethod("ExportRSAPrivateKey",[])byte[] ExportRSAPrivateKey()
ExportRSAPrivateKeyPemcallMethod("ExportRSAPrivateKeyPem",[])string ExportRSAPrivateKeyPem()
ExportRSAPublicKeycallMethod("ExportRSAPublicKey",[])byte[] ExportRSAPublicKey()
ExportRSAPublicKeyPemcallMethod("ExportRSAPublicKeyPem",[])string ExportRSAPublicKeyPem()
FromXmlStringcallMethod("FromXmlString",[p1])void FromXmlString(string xmlString)
GetMaxOutputSizecallMethod("GetMaxOutputSize",[])int GetMaxOutputSize()
ImportEncryptedPkcs8PrivateKeyImportEncryptedPkcs8PrivateKey(p1,p2)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)
void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead)
ImportFromEncryptedPemImportFromEncryptedPem(p1,p2)void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password)
void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes)
ImportFromPemImportFromPem(p1)void ImportFromPem(ReadOnlySpan<char> input)
ImportParametersImportParameters(p1)void ImportParameters(RSAParameters parameters)
ImportPkcs8PrivateKeyImportPkcs8PrivateKey(p1)void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
ImportRSAPrivateKeyImportRSAPrivateKey(p1)void ImportRSAPrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
ImportRSAPublicKeyImportRSAPublicKey(p1)void ImportRSAPublicKey(ReadOnlySpan<byte> source, out int bytesRead)
ImportSubjectPublicKeyInfoImportSubjectPublicKeyInfo(p1)void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead)
SignDataSignData([ :data = …, :hashAlgorithm = …, :padding = … ])
SignData([ :data = …, :destination = …, :hashAlgorithm = …, :padding = … ])
SignData([ :data = …, :offset = …, :count = …, :hashAlgorithm = …, :padding = … ])
byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
byte[] SignData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
byte[] SignData(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
int SignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
SignHashcallMethod("SignHash",[p1,p2,p3])
callMethod("SignHash",[p1,p2,p3,p4])
byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
byte[] SignHash(ReadOnlySpan<byte> hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
int SignHash(ReadOnlySpan<byte> hash, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
ToXmlStringcallMethod("ToXmlString",[p1])string ToXmlString(bool includePrivateParameters)
TryDecryptTryDecrypt(p1,p2,p3)bool TryDecrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten)
TryEncryptTryEncrypt(p1,p2,p3)bool TryEncrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten)
TryExportEncryptedPkcs8PrivateKeyTryExportEncryptedPkcs8PrivateKey(p1,p2,p3)bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
TryExportPkcs8PrivateKeyTryExportPkcs8PrivateKey(p1)bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten)
TryExportRSAPrivateKeyTryExportRSAPrivateKey(p1)bool TryExportRSAPrivateKey(Span<byte> destination, out int bytesWritten)
TryExportRSAPrivateKeyPemTryExportRSAPrivateKeyPem(p1)bool TryExportRSAPrivateKeyPem(Span<char> destination, out int charsWritten)
TryExportRSAPublicKeyTryExportRSAPublicKey(p1)bool TryExportRSAPublicKey(Span<byte> destination, out int bytesWritten)
TryExportRSAPublicKeyPemTryExportRSAPublicKeyPem(p1)bool TryExportRSAPublicKeyPem(Span<char> destination, out int charsWritten)
TryExportSubjectPublicKeyInfoTryExportSubjectPublicKeyInfo(p1)bool TryExportSubjectPublicKeyInfo(Span<byte> destination, out int bytesWritten)
TrySignDataTrySignData(p1,p2,p3,p4)bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten)
TrySignHashTrySignHash(p1,p2,p3,p4)bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten)
VerifyDataVerifyData([ :data = …, :signature = …, :hashAlgorithm = …, :padding = … ])
VerifyData([ :data = …, :offset = …, :count = …, :signature = …, :hashAlgorithm = …, :padding = … ])
bool VerifyData(byte[] data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
bool VerifyData(byte[] data, int offset, int count, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
VerifyHashVerifyHash(p1,p2,p3,p4)bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)

Members of the base class are inherited.

RSACng class sealed · extends RSA

System.Security.Cryptography.RSACng · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new RSACng()
new RSACng(int keySize)
new RSACng(CngKey key)

Ring: new RSACng(args) uses one constructor; the others are chosen by the parameter names: new RSACng().@New([ :param = value ]) or dnNew("RSACng",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
LegalKeySizesKeySizes[]reado.getLegalKeySizes()
KeyCngKeyreado.Key

Methods

MethodRing call.NET overloads
DecryptcallMethod("Decrypt",[p1,p2])byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)
EncryptcallMethod("Encrypt",[p1,p2])byte[] Encrypt(byte[] data, RSAEncryptionPadding padding)
ExportEncryptedPkcs8PrivateKeycallMethod("ExportEncryptedPkcs8PrivateKey",[p1,p2])byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)
byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters)
ExportParameterscallMethod("ExportParameters",[p1])RSAParameters ExportParameters(bool includePrivateParameters)
ImportEncryptedPkcs8PrivateKeyImportEncryptedPkcs8PrivateKey(p1,p2)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)
void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead)
ImportParametersImportParameters(p1)void ImportParameters(RSAParameters parameters)
ImportPkcs8PrivateKeyImportPkcs8PrivateKey(p1)void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead)
SignHashcallMethod("SignHash",[p1,p2,p3])byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
TryDecryptTryDecrypt(p1,p2,p3)bool TryDecrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten)
TryEncryptTryEncrypt(p1,p2,p3)bool TryEncrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten)
TryExportEncryptedPkcs8PrivateKeyTryExportEncryptedPkcs8PrivateKey(p1,p2,p3)bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
bool TryExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters, Span<byte> destination, out int bytesWritten)
TryExportPkcs8PrivateKeyTryExportPkcs8PrivateKey(p1)bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten)
TrySignHashTrySignHash(p1,p2,p3,p4)bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten)
VerifyHashVerifyHash(p1,p2,p3,p4)bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)

Members of the base class are inherited.

RSACryptoServiceProvider class sealed · extends RSA

System.Security.Cryptography.RSACryptoServiceProvider · assembly System.Security.Cryptography

Implements: IDisposable, ICspAsymmetricAlgorithm

Constructors

new RSACryptoServiceProvider()
new RSACryptoServiceProvider(int dwKeySize)
new RSACryptoServiceProvider(int dwKeySize, CspParameters parameters)
new RSACryptoServiceProvider(CspParameters parameters)

Ring: new RSACryptoServiceProvider(args) uses one constructor; the others are chosen by the parameter names: new RSACryptoServiceProvider().@New([ :param = value ]) or dnNew("RSACryptoServiceProvider",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
CspKeyContainerInfoCspKeyContainerInforeado.CspKeyContainerInfo
KeySizeintreado.getKeySize()
LegalKeySizesKeySizes[]reado.getLegalKeySizes()
PersistKeyInCspboolread, writeo.PersistKeyInCsp o.PersistKeyInCsp = v
PublicOnlyboolreado.PublicOnly
KeyExchangeAlgorithmstringreado.getKeyExchangeAlgorithm()
SignatureAlgorithmstringreado.getSignatureAlgorithm()
UseMachineKeyStoreboolread, write · statico.UseMachineKeyStore o.UseMachineKeyStore = v

Methods

MethodRing call.NET overloads
DecryptcallMethod("Decrypt",[p1,p2])byte[] Decrypt(byte[] rgb, bool fOAEP)
byte[] Decrypt(byte[] data, RSAEncryptionPadding padding)
DecryptValuecallMethod("DecryptValue",[p1])byte[] DecryptValue(byte[] rgb)
EncryptcallMethod("Encrypt",[p1,p2])byte[] Encrypt(byte[] rgb, bool fOAEP)
byte[] Encrypt(byte[] data, RSAEncryptionPadding padding)
EncryptValuecallMethod("EncryptValue",[p1])byte[] EncryptValue(byte[] rgb)
ExportCspBlobcallMethod("ExportCspBlob",[p1])byte[] ExportCspBlob(bool includePrivateParameters)
ExportParameterscallMethod("ExportParameters",[p1])RSAParameters ExportParameters(bool includePrivateParameters)
ImportCspBlobImportCspBlob(p1)void ImportCspBlob(byte[] keyBlob)
ImportEncryptedPkcs8PrivateKeyImportEncryptedPkcs8PrivateKey(p1,p2)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)
void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead)
ImportParametersImportParameters(p1)void ImportParameters(RSAParameters parameters)
SignDataSignData([ :buffer = …, :halg = … ])
SignData([ :inputStream = …, :halg = … ])
SignData([ :buffer = …, :offset = …, :count = …, :halg = … ])
byte[] SignData(byte[] buffer, int offset, int count, object halg)
byte[] SignData(byte[] buffer, object halg)
byte[] SignData(Stream inputStream, object halg)
SignHashSignHash([ :rgbHash = …, :str = … ])
SignHash([ :hash = …, :hashAlgorithm = …, :padding = … ])
byte[] SignHash(byte[] rgbHash, string str)
byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
VerifyDataVerifyData([ :buffer = …, :halg = …, :signature = … ])bool VerifyData(byte[] buffer, object halg, byte[] signature)
VerifyHashVerifyHash([ :rgbHash = …, :str = …, :rgbSignature = … ])
VerifyHash([ :hash = …, :signature = …, :hashAlgorithm = …, :padding = … ])
bool VerifyHash(byte[] rgbHash, string str, byte[] rgbSignature)
bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)

Members of the base class are inherited.

RSAEncryptionPadding class sealed

System.Security.Cryptography.RSAEncryptionPadding · assembly System.Security.Cryptography

Properties and fields

NameTypeAccessIn Ring
ModeRSAEncryptionPaddingModereado.Mode
OaepHashAlgorithmHashAlgorithmNamereado.OaepHashAlgorithm
Pkcs1RSAEncryptionPaddingread · statico.Pkcs1
OaepSHA1RSAEncryptionPaddingread · statico.OaepSHA1
OaepSHA256RSAEncryptionPaddingread · statico.OaepSHA256
OaepSHA384RSAEncryptionPaddingread · statico.OaepSHA384
OaepSHA512RSAEncryptionPaddingread · statico.OaepSHA512
OaepSHA3_256RSAEncryptionPaddingread · statico.OaepSHA3_256
OaepSHA3_384RSAEncryptionPaddingread · statico.OaepSHA3_384
OaepSHA3_512RSAEncryptionPaddingread · statico.OaepSHA3_512

Methods

MethodRing call.NET overloads
CreateOaepCreateOaep(p1)static RSAEncryptionPadding CreateOaep(HashAlgorithmName hashAlgorithm)
EqualsEquals(p1)bool Equals(object obj)
bool Equals(RSAEncryptionPadding other)
GetHashCodecallMethod("GetHashCode",[])int GetHashCode()
ToStringcallMethod("ToString",[])string ToString()
RSAOAEPKeyExchangeDeformatter class · extends AsymmetricKeyExchangeDeformatter

System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter · assembly System.Security.Cryptography

Constructors

new RSAOAEPKeyExchangeDeformatter()
new RSAOAEPKeyExchangeDeformatter(AsymmetricAlgorithm key)

Ring: new RSAOAEPKeyExchangeDeformatter(args) uses one constructor; the others are chosen by the parameter names: new RSAOAEPKeyExchangeDeformatter().@New([ :param = value ]) or dnNew("RSAOAEPKeyExchangeDeformatter",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Parametersstringread, writeo.getParameters() o.setParameters(v)

Methods

MethodRing call.NET overloads
DecryptKeyExchangecallMethod("DecryptKeyExchange",[p1])byte[] DecryptKeyExchange(byte[] rgbData)
SetKeySetKey(p1)void SetKey(AsymmetricAlgorithm key)

Members of the base class are inherited.

RSAOAEPKeyExchangeFormatter class · extends AsymmetricKeyExchangeFormatter

System.Security.Cryptography.RSAOAEPKeyExchangeFormatter · assembly System.Security.Cryptography

Constructors

new RSAOAEPKeyExchangeFormatter()
new RSAOAEPKeyExchangeFormatter(AsymmetricAlgorithm key)

Ring: new RSAOAEPKeyExchangeFormatter(args) uses one constructor; the others are chosen by the parameter names: new RSAOAEPKeyExchangeFormatter().@New([ :param = value ]) or dnNew("RSAOAEPKeyExchangeFormatter",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Parameterbyte[]read, writeo.Parameter o.Parameter = v
Parametersstringreado.getParameters()
RngRandomNumberGeneratorread, writeo.Rng o.Rng = v

Methods

MethodRing call.NET overloads
CreateKeyExchangeCreateKeyExchange(value)
CreateKeyExchange([ :rgbData = … ])
CreateKeyExchange([ :rgbData = …, :symAlgType = … ])
byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)
byte[] CreateKeyExchange(byte[] rgbData)
SetKeySetKey(p1)void SetKey(AsymmetricAlgorithm key)

Members of the base class are inherited.

RSAOpenSsl class sealed · extends RSA

System.Security.Cryptography.RSAOpenSsl · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new RSAOpenSsl()
new RSAOpenSsl(int keySize)
new RSAOpenSsl(IntPtr handle)
new RSAOpenSsl(RSAParameters parameters)
new RSAOpenSsl(SafeEvpPKeyHandle pkeyHandle)

Ring: new RSAOpenSsl(args) uses one constructor; the others are chosen by the parameter names: new RSAOpenSsl().@New([ :param = value ]) or dnNew("RSAOpenSsl",[ :param = value ]).

Methods

MethodRing call.NET overloads
DuplicateKeyHandlecallMethod("DuplicateKeyHandle",[])SafeEvpPKeyHandle DuplicateKeyHandle()
ExportParameterscallMethod("ExportParameters",[p1])RSAParameters ExportParameters(bool includePrivateParameters)
ImportParametersImportParameters(p1)void ImportParameters(RSAParameters parameters)

Members of the base class are inherited.

RSAParameters struct

System.Security.Cryptography.RSAParameters · assembly System.Security.Cryptography

Properties and fields

NameTypeAccessIn Ring
Dbyte[]read, writeo.D o.D = v
DPbyte[]read, writeo.DP o.DP = v
DQbyte[]read, writeo.DQ o.DQ = v
Exponentbyte[]read, writeo.Exponent o.Exponent = v
InverseQbyte[]read, writeo.InverseQ o.InverseQ = v
Modulusbyte[]read, writeo.Modulus o.Modulus = v
Pbyte[]read, writeo.P o.P = v
Qbyte[]read, writeo.Q o.Q = v
RSAPKCS1KeyExchangeDeformatter class · extends AsymmetricKeyExchangeDeformatter

System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter · assembly System.Security.Cryptography

Constructors

new RSAPKCS1KeyExchangeDeformatter()
new RSAPKCS1KeyExchangeDeformatter(AsymmetricAlgorithm key)

Ring: new RSAPKCS1KeyExchangeDeformatter(args) uses one constructor; the others are chosen by the parameter names: new RSAPKCS1KeyExchangeDeformatter().@New([ :param = value ]) or dnNew("RSAPKCS1KeyExchangeDeformatter",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
RNGRandomNumberGeneratorread, writeo.RNG o.RNG = v
Parametersstringread, writeo.getParameters() o.setParameters(v)

Methods

MethodRing call.NET overloads
DecryptKeyExchangecallMethod("DecryptKeyExchange",[p1])byte[] DecryptKeyExchange(byte[] rgbIn)
SetKeySetKey(p1)void SetKey(AsymmetricAlgorithm key)

Members of the base class are inherited.

RSAPKCS1KeyExchangeFormatter class · extends AsymmetricKeyExchangeFormatter

System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter · assembly System.Security.Cryptography

Constructors

new RSAPKCS1KeyExchangeFormatter()
new RSAPKCS1KeyExchangeFormatter(AsymmetricAlgorithm key)

Ring: new RSAPKCS1KeyExchangeFormatter(args) uses one constructor; the others are chosen by the parameter names: new RSAPKCS1KeyExchangeFormatter().@New([ :param = value ]) or dnNew("RSAPKCS1KeyExchangeFormatter",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Parametersstringreado.getParameters()
RngRandomNumberGeneratorread, writeo.Rng o.Rng = v

Methods

MethodRing call.NET overloads
CreateKeyExchangeCreateKeyExchange(value)
CreateKeyExchange([ :rgbData = … ])
CreateKeyExchange([ :rgbData = …, :symAlgType = … ])
byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)
byte[] CreateKeyExchange(byte[] rgbData)
SetKeySetKey(p1)void SetKey(AsymmetricAlgorithm key)

Members of the base class are inherited.

RSAPKCS1SignatureDeformatter class · extends AsymmetricSignatureDeformatter

System.Security.Cryptography.RSAPKCS1SignatureDeformatter · assembly System.Security.Cryptography

Constructors

new RSAPKCS1SignatureDeformatter()
new RSAPKCS1SignatureDeformatter(AsymmetricAlgorithm key)

Ring: new RSAPKCS1SignatureDeformatter(args) uses one constructor; the others are chosen by the parameter names: new RSAPKCS1SignatureDeformatter().@New([ :param = value ]) or dnNew("RSAPKCS1SignatureDeformatter",[ :param = value ]).

Methods

MethodRing call.NET overloads
SetHashAlgorithmcallMethod("SetHashAlgorithm",[p1])void SetHashAlgorithm(string strName)
SetKeySetKey(p1)void SetKey(AsymmetricAlgorithm key)
VerifySignatureVerifySignature(p1,p2)bool VerifySignature(byte[] rgbHash, byte[] rgbSignature)

Members of the base class are inherited.

RSAPKCS1SignatureFormatter class · extends AsymmetricSignatureFormatter

System.Security.Cryptography.RSAPKCS1SignatureFormatter · assembly System.Security.Cryptography

Constructors

new RSAPKCS1SignatureFormatter()
new RSAPKCS1SignatureFormatter(AsymmetricAlgorithm key)

Ring: new RSAPKCS1SignatureFormatter(args) uses one constructor; the others are chosen by the parameter names: new RSAPKCS1SignatureFormatter().@New([ :param = value ]) or dnNew("RSAPKCS1SignatureFormatter",[ :param = value ]).

Methods

MethodRing call.NET overloads
CreateSignaturecallMethod("CreateSignature",[p1])byte[] CreateSignature(byte[] rgbHash)
SetHashAlgorithmcallMethod("SetHashAlgorithm",[p1])void SetHashAlgorithm(string strName)
SetKeySetKey(p1)void SetKey(AsymmetricAlgorithm key)

Members of the base class are inherited.

RSASignaturePadding class sealed

System.Security.Cryptography.RSASignaturePadding · assembly System.Security.Cryptography

Properties and fields

NameTypeAccessIn Ring
ModeRSASignaturePaddingModereado.Mode
Pkcs1RSASignaturePaddingread · statico.Pkcs1
PssRSASignaturePaddingread · statico.Pss

Methods

MethodRing call.NET overloads
EqualsEquals(p1)bool Equals(object obj)
bool Equals(RSASignaturePadding other)
GetHashCodecallMethod("GetHashCode",[])int GetHashCode()
ToStringcallMethod("ToString",[])string ToString()
SafeEvpPKeyHandle class sealed · extends SafeHandle

System.Security.Cryptography.SafeEvpPKeyHandle · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new SafeEvpPKeyHandle()
new SafeEvpPKeyHandle(IntPtr handle, bool ownsHandle)

Ring: new SafeEvpPKeyHandle(args) uses one constructor; the others are chosen by the parameter names: new SafeEvpPKeyHandle().@New([ :param = value ]) or dnNew("SafeEvpPKeyHandle",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
IsInvalidboolreado.getIsInvalid()
OpenSslVersionlongread · statico.OpenSslVersion

Methods

MethodRing call.NET overloads
DuplicateHandlecallMethod("DuplicateHandle",[])SafeEvpPKeyHandle DuplicateHandle()
OpenKeyFromProviderOpenKeyFromProvider(p1,p2)static SafeEvpPKeyHandle OpenKeyFromProvider(string providerName, string keyUri)
OpenPrivateKeyFromEngineOpenPrivateKeyFromEngine(p1,p2)static SafeEvpPKeyHandle OpenPrivateKeyFromEngine(string engineName, string keyId)
OpenPublicKeyFromEngineOpenPublicKeyFromEngine(p1,p2)static SafeEvpPKeyHandle OpenPublicKeyFromEngine(string engineName, string keyId)

Members of the base class are inherited.

SHA1 class abstract · extends HashAlgorithm

System.Security.Cryptography.SHA1 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Properties and fields

NameTypeAccessIn Ring
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :hashName = … ])
static SHA1 Create()
static SHA1 Create(string hashName)
HashDataHashData(p1)static byte[] HashData(byte[] source)
static byte[] HashData(ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(Stream source, Span<byte> destination)
static byte[] HashData(Stream source)
HashDataAsyncHashDataAsync([ :source = …, :cancellationToken = … ])
HashDataAsync([ :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
TryHashDataTryHashData(p1,p2)static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

SHA256 class abstract · extends HashAlgorithm

System.Security.Cryptography.SHA256 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Properties and fields

NameTypeAccessIn Ring
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :hashName = … ])
static SHA256 Create()
static SHA256 Create(string hashName)
HashDataHashData(p1)static byte[] HashData(byte[] source)
static byte[] HashData(ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(Stream source, Span<byte> destination)
static byte[] HashData(Stream source)
HashDataAsyncHashDataAsync([ :source = …, :cancellationToken = … ])
HashDataAsync([ :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
TryHashDataTryHashData(p1,p2)static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

SHA384 class abstract · extends HashAlgorithm

System.Security.Cryptography.SHA384 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Properties and fields

NameTypeAccessIn Ring
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :hashName = … ])
static SHA384 Create()
static SHA384 Create(string hashName)
HashDataHashData(p1)static byte[] HashData(byte[] source)
static byte[] HashData(ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(Stream source, Span<byte> destination)
static byte[] HashData(Stream source)
HashDataAsyncHashDataAsync([ :source = …, :cancellationToken = … ])
HashDataAsync([ :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
TryHashDataTryHashData(p1,p2)static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

SHA3_256 class abstract · extends HashAlgorithm

System.Security.Cryptography.SHA3_256 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Properties and fields

NameTypeAccessIn Ring
IsSupportedboolread · statico.IsSupported
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
CreateCreate()static SHA3_256 Create()
HashDataHashData(p1)static byte[] HashData(byte[] source)
static byte[] HashData(ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(Stream source, Span<byte> destination)
static byte[] HashData(Stream source)
HashDataAsyncHashDataAsync([ :source = …, :cancellationToken = … ])
HashDataAsync([ :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
TryHashDataTryHashData(p1,p2)static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

SHA3_384 class abstract · extends HashAlgorithm

System.Security.Cryptography.SHA3_384 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Properties and fields

NameTypeAccessIn Ring
IsSupportedboolread · statico.IsSupported
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
CreateCreate()static SHA3_384 Create()
HashDataHashData(p1)static byte[] HashData(byte[] source)
static byte[] HashData(ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(Stream source, Span<byte> destination)
static byte[] HashData(Stream source)
HashDataAsyncHashDataAsync([ :source = …, :cancellationToken = … ])
HashDataAsync([ :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
TryHashDataTryHashData(p1,p2)static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

SHA3_512 class abstract · extends HashAlgorithm

System.Security.Cryptography.SHA3_512 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Properties and fields

NameTypeAccessIn Ring
IsSupportedboolread · statico.IsSupported
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
CreateCreate()static SHA3_512 Create()
HashDataHashData(p1)static byte[] HashData(byte[] source)
static byte[] HashData(ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(Stream source, Span<byte> destination)
static byte[] HashData(Stream source)
HashDataAsyncHashDataAsync([ :source = …, :cancellationToken = … ])
HashDataAsync([ :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
TryHashDataTryHashData(p1,p2)static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

SHA512 class abstract · extends HashAlgorithm

System.Security.Cryptography.SHA512 · assembly System.Security.Cryptography

Implements: IDisposable, ICryptoTransform

Properties and fields

NameTypeAccessIn Ring
HashSizeInBitsintconstant · statico.HashSizeInBits
HashSizeInBytesintconstant · statico.HashSizeInBytes

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :hashName = … ])
static SHA512 Create()
static SHA512 Create(string hashName)
HashDataHashData(p1)static byte[] HashData(byte[] source)
static byte[] HashData(ReadOnlySpan<byte> source)
static int HashData(ReadOnlySpan<byte> source, Span<byte> destination)
static int HashData(Stream source, Span<byte> destination)
static byte[] HashData(Stream source)
HashDataAsyncHashDataAsync([ :source = …, :cancellationToken = … ])
HashDataAsync([ :source = …, :destination = …, :cancellationToken = … ])
static ValueTask<byte[]> HashDataAsync(Stream source, CancellationToken cancellationToken = …)
static ValueTask<int> HashDataAsync(Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
TryHashDataTryHashData(p1,p2)static bool TryHashData(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)

Members of the base class are inherited.

Shake128 class sealed

System.Security.Cryptography.Shake128 · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new Shake128()

Ring: new Shake128(args) uses one constructor; the others are chosen by the parameter names: new Shake128().@New([ :param = value ]) or dnNew("Shake128",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
IsSupportedboolread · statico.IsSupported

Methods

MethodRing call.NET overloads
AppendDataAppendData(p1)void AppendData(byte[] data)
void AppendData(ReadOnlySpan<byte> data)
ClonecallMethod("Clone",[])Shake128 Clone()
DisposecallMethod("Dispose",[])void Dispose()
GetCurrentHashcallMethod("GetCurrentHash",[p1])byte[] GetCurrentHash(int outputLength)
void GetCurrentHash(Span<byte> destination)
GetHashAndResetcallMethod("GetHashAndReset",[p1])byte[] GetHashAndReset(int outputLength)
void GetHashAndReset(Span<byte> destination)
HashDataHashData(p1,p2)static byte[] HashData(byte[] source, int outputLength)
static byte[] HashData(ReadOnlySpan<byte> source, int outputLength)
static void HashData(ReadOnlySpan<byte> source, Span<byte> destination)
static byte[] HashData(Stream source, int outputLength)
static void HashData(Stream source, Span<byte> destination)
HashDataAsyncHashDataAsync([ :source = …, :destination = …, :cancellationToken = … ])
HashDataAsync([ :source = …, :outputLength = …, :cancellationToken = … ])
static ValueTask HashDataAsync(Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(Stream source, int outputLength, CancellationToken cancellationToken = …)
ReadcallMethod("Read",[p1])byte[] Read(int outputLength)
void Read(Span<byte> destination)
ResetcallMethod("Reset",[])void Reset()
Shake256 class sealed

System.Security.Cryptography.Shake256 · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new Shake256()

Ring: new Shake256(args) uses one constructor; the others are chosen by the parameter names: new Shake256().@New([ :param = value ]) or dnNew("Shake256",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
IsSupportedboolread · statico.IsSupported

Methods

MethodRing call.NET overloads
AppendDataAppendData(p1)void AppendData(byte[] data)
void AppendData(ReadOnlySpan<byte> data)
ClonecallMethod("Clone",[])Shake256 Clone()
DisposecallMethod("Dispose",[])void Dispose()
GetCurrentHashcallMethod("GetCurrentHash",[p1])byte[] GetCurrentHash(int outputLength)
void GetCurrentHash(Span<byte> destination)
GetHashAndResetcallMethod("GetHashAndReset",[p1])byte[] GetHashAndReset(int outputLength)
void GetHashAndReset(Span<byte> destination)
HashDataHashData(p1,p2)static byte[] HashData(byte[] source, int outputLength)
static byte[] HashData(ReadOnlySpan<byte> source, int outputLength)
static void HashData(ReadOnlySpan<byte> source, Span<byte> destination)
static byte[] HashData(Stream source, int outputLength)
static void HashData(Stream source, Span<byte> destination)
HashDataAsyncHashDataAsync([ :source = …, :destination = …, :cancellationToken = … ])
HashDataAsync([ :source = …, :outputLength = …, :cancellationToken = … ])
static ValueTask HashDataAsync(Stream source, Memory<byte> destination, CancellationToken cancellationToken = …)
static ValueTask<byte[]> HashDataAsync(Stream source, int outputLength, CancellationToken cancellationToken = …)
ReadcallMethod("Read",[p1])byte[] Read(int outputLength)
void Read(Span<byte> destination)
ResetcallMethod("Reset",[])void Reset()
SignatureDescription class

System.Security.Cryptography.SignatureDescription · assembly System.Security.Cryptography

Constructors

new SignatureDescription()
new SignatureDescription(SecurityElement el)

Ring: new SignatureDescription(args) uses one constructor; the others are chosen by the parameter names: new SignatureDescription().@New([ :param = value ]) or dnNew("SignatureDescription",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
KeyAlgorithmstringread, writeo.KeyAlgorithm o.KeyAlgorithm = v
DigestAlgorithmstringread, writeo.DigestAlgorithm o.DigestAlgorithm = v
FormatterAlgorithmstringread, writeo.FormatterAlgorithm o.FormatterAlgorithm = v
DeformatterAlgorithmstringread, writeo.DeformatterAlgorithm o.DeformatterAlgorithm = v

Methods

MethodRing call.NET overloads
CreateDeformattercallMethod("CreateDeformatter",[p1])AsymmetricSignatureDeformatter CreateDeformatter(AsymmetricAlgorithm key)
CreateDigestcallMethod("CreateDigest",[])HashAlgorithm CreateDigest()
CreateFormattercallMethod("CreateFormatter",[p1])AsymmetricSignatureFormatter CreateFormatter(AsymmetricAlgorithm key)
SP800108HmacCounterKdf class sealed

System.Security.Cryptography.SP800108HmacCounterKdf · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new SP800108HmacCounterKdf(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm)
new SP800108HmacCounterKdf(byte[] key, HashAlgorithmName hashAlgorithm)

Ring: new SP800108HmacCounterKdf(args) uses one constructor; the others are chosen by the parameter names: new SP800108HmacCounterKdf().@New([ :param = value ]) or dnNew("SP800108HmacCounterKdf",[ :param = value ]).

Methods

MethodRing call.NET overloads
DeriveBytesDeriveBytes(p1,p2,p3,p4,p5)static byte[] DeriveBytes(byte[] key, HashAlgorithmName hashAlgorithm, byte[] label, byte[] context, int derivedKeyLengthInBytes)
static byte[] DeriveBytes(byte[] key, HashAlgorithmName hashAlgorithm, string label, string context, int derivedKeyLengthInBytes)
static byte[] DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, int derivedKeyLengthInBytes)
static void DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination)
static byte[] DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes)
static void DeriveBytes(ReadOnlySpan<byte> key, HashAlgorithmName hashAlgorithm, ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination)
DeriveKeycallMethod("DeriveKey",[p1,p2,p3])byte[] DeriveKey(byte[] label, byte[] context, int derivedKeyLengthInBytes)
byte[] DeriveKey(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, int derivedKeyLengthInBytes)
void DeriveKey(ReadOnlySpan<byte> label, ReadOnlySpan<byte> context, Span<byte> destination)
byte[] DeriveKey(ReadOnlySpan<char> label, ReadOnlySpan<char> context, int derivedKeyLengthInBytes)
void DeriveKey(ReadOnlySpan<char> label, ReadOnlySpan<char> context, Span<byte> destination)
byte[] DeriveKey(string label, string context, int derivedKeyLengthInBytes)
DisposecallMethod("Dispose",[])void Dispose()
SymmetricAlgorithm class abstract

System.Security.Cryptography.SymmetricAlgorithm · assembly System.Security.Cryptography

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
FeedbackSizeintread, writeo.FeedbackSize o.FeedbackSize = v
BlockSizeintread, writeo.BlockSize o.BlockSize = v
IVbyte[]read, writeo.IV o.IV = v
Keybyte[]read, writeo.Key o.Key = v
KeySizeintread, writeo.KeySize o.KeySize = v
LegalBlockSizesKeySizes[]reado.LegalBlockSizes
LegalKeySizesKeySizes[]reado.LegalKeySizes
ModeCipherModeread, writeo.Mode o.Mode = v
PaddingPaddingModeread, writeo.Padding o.Padding = v

Methods

MethodRing call.NET overloads
ClearcallMethod("Clear",[])void Clear()
CreateCreate(NULL)
Create(value)
Create([ :algName = … ])
static SymmetricAlgorithm Create()
static SymmetricAlgorithm Create(string algName)
CreateDecryptorCreateDecryptor(NULL)
CreateDecryptor([ :rgbKey = …, :rgbIV = … ])
ICryptoTransform CreateDecryptor()
ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
CreateEncryptorCreateEncryptor(NULL)
CreateEncryptor([ :rgbKey = …, :rgbIV = … ])
ICryptoTransform CreateEncryptor()
ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
DecryptCbcDecryptCbc([ :ciphertext = …, :iv = …, :paddingMode = … ])
DecryptCbc([ :ciphertext = …, :iv = …, :destination = …, :paddingMode = … ])
byte[] DecryptCbc(byte[] ciphertext, byte[] iv, PaddingMode paddingMode = …)
byte[] DecryptCbc(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, PaddingMode paddingMode = …)
int DecryptCbc(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, Span<byte> destination, PaddingMode paddingMode = …)
DecryptCfbDecryptCfb([ :ciphertext = …, :iv = …, :paddingMode = …, :feedbackSizeInBits = … ])
DecryptCfb([ :ciphertext = …, :iv = …, :destination = …, :paddingMode = …, :feedbackSizeInBits = … ])
byte[] DecryptCfb(byte[] ciphertext, byte[] iv, PaddingMode paddingMode = …, int feedbackSizeInBits = …)
byte[] DecryptCfb(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, PaddingMode paddingMode = …, int feedbackSizeInBits = …)
int DecryptCfb(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, Span<byte> destination, PaddingMode paddingMode = …, int feedbackSizeInBits = …)
DecryptEcbcallMethod("DecryptEcb",[p1,p2])
callMethod("DecryptEcb",[p1,p2,p3])
byte[] DecryptEcb(byte[] ciphertext, PaddingMode paddingMode)
byte[] DecryptEcb(ReadOnlySpan<byte> ciphertext, PaddingMode paddingMode)
int DecryptEcb(ReadOnlySpan<byte> ciphertext, Span<byte> destination, PaddingMode paddingMode)
DisposecallMethod("Dispose",[])void Dispose()
EncryptCbcEncryptCbc([ :plaintext = …, :iv = …, :paddingMode = … ])
EncryptCbc([ :plaintext = …, :iv = …, :destination = …, :paddingMode = … ])
byte[] EncryptCbc(byte[] plaintext, byte[] iv, PaddingMode paddingMode = …)
byte[] EncryptCbc(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> iv, PaddingMode paddingMode = …)
int EncryptCbc(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> iv, Span<byte> destination, PaddingMode paddingMode = …)
EncryptCfbEncryptCfb([ :plaintext = …, :iv = …, :paddingMode = …, :feedbackSizeInBits = … ])
EncryptCfb([ :plaintext = …, :iv = …, :destination = …, :paddingMode = …, :feedbackSizeInBits = … ])
byte[] EncryptCfb(byte[] plaintext, byte[] iv, PaddingMode paddingMode = …, int feedbackSizeInBits = …)
byte[] EncryptCfb(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> iv, PaddingMode paddingMode = …, int feedbackSizeInBits = …)
int EncryptCfb(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> iv, Span<byte> destination, PaddingMode paddingMode = …, int feedbackSizeInBits = …)
EncryptEcbcallMethod("EncryptEcb",[p1,p2])
callMethod("EncryptEcb",[p1,p2,p3])
byte[] EncryptEcb(byte[] plaintext, PaddingMode paddingMode)
byte[] EncryptEcb(ReadOnlySpan<byte> plaintext, PaddingMode paddingMode)
int EncryptEcb(ReadOnlySpan<byte> plaintext, Span<byte> destination, PaddingMode paddingMode)
GenerateIVcallMethod("GenerateIV",[])void GenerateIV()
GenerateKeycallMethod("GenerateKey",[])void GenerateKey()
GetCiphertextLengthCbccallMethod("GetCiphertextLengthCbc",[p1,p2])int GetCiphertextLengthCbc(int plaintextLength, PaddingMode paddingMode = …)
GetCiphertextLengthCfbcallMethod("GetCiphertextLengthCfb",[p1,p2,p3])int GetCiphertextLengthCfb(int plaintextLength, PaddingMode paddingMode = …, int feedbackSizeInBits = …)
GetCiphertextLengthEcbGetCiphertextLengthEcb(p1,p2)int GetCiphertextLengthEcb(int plaintextLength, PaddingMode paddingMode)
TryDecryptCbcTryDecryptCbc([ :ciphertext = …, :iv = …, :destination = …, :bytesWritten = …, :paddingMode = … ])bool TryDecryptCbc(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, Span<byte> destination, out int bytesWritten, PaddingMode paddingMode = …)
TryDecryptCfbTryDecryptCfb([ :ciphertext = …, :iv = …, :destination = …, :bytesWritten = …, :paddingMode = …, :feedbackSizeInBits = … ])bool TryDecryptCfb(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, Span<byte> destination, out int bytesWritten, PaddingMode paddingMode = …, int feedbackSizeInBits = …)
TryDecryptEcbTryDecryptEcb(p1,p2,p3)bool TryDecryptEcb(ReadOnlySpan<byte> ciphertext, Span<byte> destination, PaddingMode paddingMode, out int bytesWritten)
TryEncryptCbcTryEncryptCbc([ :plaintext = …, :iv = …, :destination = …, :bytesWritten = …, :paddingMode = … ])bool TryEncryptCbc(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> iv, Span<byte> destination, out int bytesWritten, PaddingMode paddingMode = …)
TryEncryptCfbTryEncryptCfb([ :plaintext = …, :iv = …, :destination = …, :bytesWritten = …, :paddingMode = …, :feedbackSizeInBits = … ])bool TryEncryptCfb(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> iv, Span<byte> destination, out int bytesWritten, PaddingMode paddingMode = …, int feedbackSizeInBits = …)
TryEncryptEcbTryEncryptEcb(p1,p2,p3)bool TryEncryptEcb(ReadOnlySpan<byte> plaintext, Span<byte> destination, PaddingMode paddingMode, out int bytesWritten)
ValidKeySizecallMethod("ValidKeySize",[p1])bool ValidKeySize(int bitLength)
ToBase64Transform class

System.Security.Cryptography.ToBase64Transform · assembly System.Security.Cryptography

Implements: ICryptoTransform, IDisposable

Constructors

new ToBase64Transform()

Ring: new ToBase64Transform(args) uses one constructor; the others are chosen by the parameter names: new ToBase64Transform().@New([ :param = value ]) or dnNew("ToBase64Transform",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
InputBlockSizeintreado.InputBlockSize
OutputBlockSizeintreado.OutputBlockSize
CanTransformMultipleBlocksboolreado.CanTransformMultipleBlocks
CanReuseTransformboolreado.CanReuseTransform

Methods

MethodRing call.NET overloads
ClearcallMethod("Clear",[])void Clear()
DisposecallMethod("Dispose",[])void Dispose()
TransformBlockTransformBlock(p1,p2,p3,p4,p5)int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
TransformFinalBlockcallMethod("TransformFinalBlock",[p1,p2,p3])byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
TripleDES class abstract · extends SymmetricAlgorithm

System.Security.Cryptography.TripleDES · assembly System.Security.Cryptography

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
Keybyte[]read, writeo.getKey() o.setKey(v)

Methods

MethodRing call.NET overloads
CreateCreate(NULL)
Create(value)
Create([ :str = … ])
static TripleDES Create()
static TripleDES Create(string str)
IsWeakKeyIsWeakKey(p1)static bool IsWeakKey(byte[] rgbKey)

Members of the base class are inherited.

TripleDESCng class sealed · extends TripleDES

System.Security.Cryptography.TripleDESCng · assembly System.Security.Cryptography

Implements: IDisposable

Constructors

new TripleDESCng()
new TripleDESCng(string keyName)
new TripleDESCng(string keyName, CngProvider provider)
new TripleDESCng(string keyName, CngProvider provider, CngKeyOpenOptions openOptions)

Ring: new TripleDESCng(args) uses one constructor; the others are chosen by the parameter names: new TripleDESCng().@New([ :param = value ]) or dnNew("TripleDESCng",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
Keybyte[]read, writeo.getKey() o.setKey(v)
KeySizeintread, writeo.getKeySize() o.setKeySize(v)

Methods

MethodRing call.NET overloads
CreateDecryptorCreateDecryptor(NULL)
CreateDecryptor([ :rgbKey = …, :rgbIV = … ])
ICryptoTransform CreateDecryptor()
ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV)
CreateEncryptorCreateEncryptor(NULL)
CreateEncryptor([ :rgbKey = …, :rgbIV = … ])
ICryptoTransform CreateEncryptor()
ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV)
GenerateIVcallMethod("GenerateIV",[])void GenerateIV()
GenerateKeycallMethod("GenerateKey",[])void GenerateKey()

Members of the base class are inherited.