System.Security.Cryptography
116 wrapped types. Load them with using { "System.Security.Cryptography" }. Click a class to open it.
Aes class abstract · extends SymmetricAlgorithm
System.Security.Cryptography.Aes · assembly System.Security.Cryptography
Implements: IDisposable
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(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
| Name | Type | Access | In Ring |
|---|---|---|---|
NonceByteSizes | KeySizes | read · static | o.NonceByteSizes |
TagByteSizes | KeySizes | read · static | o.TagByteSizes |
IsSupported | bool | read · static | o.IsSupported |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Decrypt | Decrypt([ :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 = …) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
Encrypt | Encrypt([ :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
| Name | Type | Access | In Ring |
|---|---|---|---|
Key | byte[] | read, write | o.getKey() o.setKey(v) |
KeySize | int | read, write | o.getKeySize() o.setKeySize(v) |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateDecryptor | CreateDecryptor(NULL)CreateDecryptor([ :rgbKey = …, :rgbIV = … ]) | ICryptoTransform CreateDecryptor()ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV) |
CreateEncryptor | CreateEncryptor(NULL)CreateEncryptor([ :rgbKey = …, :rgbIV = … ]) | ICryptoTransform CreateEncryptor()ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV) |
GenerateIV | callMethod("GenerateIV",[]) | void GenerateIV() |
GenerateKey | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
TagSizeInBytes | int? | read | o.TagSizeInBytes |
NonceByteSizes | KeySizes | read · static | o.NonceByteSizes |
IsSupported | bool | read · static | o.IsSupported |
TagByteSizes | KeySizes | read · static | o.TagByteSizes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Decrypt | Decrypt([ :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 = …) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
Encrypt | Encrypt([ :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
| Name | Type | Access | In Ring |
|---|---|---|---|
Oid | Oid | read, write | o.Oid o.Oid = v |
RawData | byte[] | read, write | o.RawData o.RawData = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CopyFrom | CopyFrom(p1) | void CopyFrom(AsnEncodedData asnEncodedData) |
Format | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.Count |
IsSynchronized | bool | read | o.IsSynchronized |
SyncRoot | object | read | o.SyncRoot |
Indexer
o.Item(int index) → AsnEncodedData
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Add | Add(p1) | int Add(AsnEncodedData asnEncodedData) |
CopyTo | CopyTo(p1,p2) | void CopyTo(AsnEncodedData[] array, int index) |
GetEnumerator | callMethod("GetEnumerator",[]) | AsnEncodedDataEnumerator GetEnumerator() |
Remove | Remove(p1) | void Remove(AsnEncodedData asnEncodedData) |
AsnEncodedDataEnumerator class sealed
System.Security.Cryptography.AsnEncodedDataEnumerator · assembly System.Security.Cryptography
Implements: IEnumerator
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Current | AsnEncodedData | read | o.Current |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
MoveNext | callMethod("MoveNext",[]) | bool MoveNext() |
Reset | callMethod("Reset",[]) | void Reset() |
AsymmetricAlgorithm class abstract
System.Security.Cryptography.AsymmetricAlgorithm · assembly System.Security.Cryptography
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
KeySize | int | read, write | o.KeySize o.KeySize = v |
LegalKeySizes | KeySizes[] | read | o.LegalKeySizes |
SignatureAlgorithm | string | read | o.SignatureAlgorithm |
KeyExchangeAlgorithm | string | read | o.KeyExchangeAlgorithm |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Clear | callMethod("Clear",[]) | void Clear() |
Create | Create(NULL)Create(value)Create([ :algName = … ]) | static AsymmetricAlgorithm Create()static AsymmetricAlgorithm Create(string algName) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
ExportEncryptedPkcs8PrivateKey | callMethod("ExportEncryptedPkcs8PrivateKey",[p1,p2]) | byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) |
ExportEncryptedPkcs8PrivateKeyPem | ExportEncryptedPkcs8PrivateKeyPem(p1,p2) | string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<char> password, PbeParameters pbeParameters)string ExportEncryptedPkcs8PrivateKeyPem(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters) |
ExportPkcs8PrivateKey | callMethod("ExportPkcs8PrivateKey",[]) | byte[] ExportPkcs8PrivateKey() |
ExportPkcs8PrivateKeyPem | callMethod("ExportPkcs8PrivateKeyPem",[]) | string ExportPkcs8PrivateKeyPem() |
ExportSubjectPublicKeyInfo | callMethod("ExportSubjectPublicKeyInfo",[]) | byte[] ExportSubjectPublicKeyInfo() |
ExportSubjectPublicKeyInfoPem | callMethod("ExportSubjectPublicKeyInfoPem",[]) | string ExportSubjectPublicKeyInfoPem() |
FromXmlString | callMethod("FromXmlString",[p1]) | void FromXmlString(string xmlString) |
ImportEncryptedPkcs8PrivateKey | ImportEncryptedPkcs8PrivateKey(p1,p2) | void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead) |
ImportFromEncryptedPem | ImportFromEncryptedPem(p1,p2) | void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password)void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) |
ImportFromPem | ImportFromPem(p1) | void ImportFromPem(ReadOnlySpan<char> input) |
ImportPkcs8PrivateKey | ImportPkcs8PrivateKey(p1) | void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) |
ImportSubjectPublicKeyInfo | ImportSubjectPublicKeyInfo(p1) | void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) |
ToXmlString | callMethod("ToXmlString",[p1]) | string ToXmlString(bool includePrivateParameters) |
TryExportEncryptedPkcs8PrivateKey | TryExportEncryptedPkcs8PrivateKey(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) |
TryExportEncryptedPkcs8PrivateKeyPem | TryExportEncryptedPkcs8PrivateKeyPem(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) |
TryExportPkcs8PrivateKey | TryExportPkcs8PrivateKey(p1) | bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten) |
TryExportPkcs8PrivateKeyPem | TryExportPkcs8PrivateKeyPem(p1) | bool TryExportPkcs8PrivateKeyPem(Span<char> destination, out int charsWritten) |
TryExportSubjectPublicKeyInfo | TryExportSubjectPublicKeyInfo(p1) | bool TryExportSubjectPublicKeyInfo(Span<byte> destination, out int bytesWritten) |
TryExportSubjectPublicKeyInfoPem | TryExportSubjectPublicKeyInfoPem(p1) | bool TryExportSubjectPublicKeyInfoPem(Span<char> destination, out int charsWritten) |
AsymmetricKeyExchangeDeformatter class abstract
System.Security.Cryptography.AsymmetricKeyExchangeDeformatter · assembly System.Security.Cryptography
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Parameters | string | read, write | o.Parameters o.Parameters = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
DecryptKeyExchange | callMethod("DecryptKeyExchange",[p1]) | byte[] DecryptKeyExchange(byte[] rgb) |
SetKey | SetKey(p1) | void SetKey(AsymmetricAlgorithm key) |
AsymmetricKeyExchangeFormatter class abstract
System.Security.Cryptography.AsymmetricKeyExchangeFormatter · assembly System.Security.Cryptography
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Parameters | string | read | o.Parameters |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateKeyExchange | CreateKeyExchange(value)CreateKeyExchange([ :data = … ])CreateKeyExchange([ :data = …, :symAlgType = … ]) | byte[] CreateKeyExchange(byte[] data)byte[] CreateKeyExchange(byte[] data, Type symAlgType) |
SetKey | SetKey(p1) | void SetKey(AsymmetricAlgorithm key) |
AsymmetricSignatureDeformatter class abstract
System.Security.Cryptography.AsymmetricSignatureDeformatter · assembly System.Security.Cryptography
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
SetHashAlgorithm | callMethod("SetHashAlgorithm",[p1]) | void SetHashAlgorithm(string strName) |
SetKey | SetKey(p1) | void SetKey(AsymmetricAlgorithm key) |
VerifySignature | VerifySignature(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
| Method | Ring call | .NET overloads |
|---|---|---|
CreateSignature | callMethod("CreateSignature",[p1]) | byte[] CreateSignature(HashAlgorithm hash)byte[] CreateSignature(byte[] rgbHash) |
SetHashAlgorithm | callMethod("SetHashAlgorithm",[p1]) | void SetHashAlgorithm(string strName) |
SetKey | SetKey(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
| Name | Type | Access | In Ring |
|---|---|---|---|
IsSupported | bool | read · static | o.IsSupported |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Decrypt | Decrypt([ :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 = …) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
Encrypt | Encrypt([ :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
| Name | Type | Access | In Ring |
|---|---|---|---|
Algorithm | string | read | o.Algorithm |
Rsa | CngAlgorithm | read · static | o.Rsa |
ECDiffieHellman | CngAlgorithm | read · static | o.ECDiffieHellman |
ECDiffieHellmanP256 | CngAlgorithm | read · static | o.ECDiffieHellmanP256 |
ECDiffieHellmanP384 | CngAlgorithm | read · static | o.ECDiffieHellmanP384 |
ECDiffieHellmanP521 | CngAlgorithm | read · static | o.ECDiffieHellmanP521 |
ECDsa | CngAlgorithm | read · static | o.ECDsa |
ECDsaP256 | CngAlgorithm | read · static | o.ECDsaP256 |
ECDsaP384 | CngAlgorithm | read · static | o.ECDsaP384 |
ECDsaP521 | CngAlgorithm | read · static | o.ECDsaP521 |
MD5 | CngAlgorithm | read · static | o.MD5 |
Sha1 | CngAlgorithm | read · static | o.Sha1 |
Sha256 | CngAlgorithm | read · static | o.Sha256 |
Sha384 | CngAlgorithm | read · static | o.Sha384 |
Sha512 | CngAlgorithm | read · static | o.Sha512 |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(object obj)bool Equals(CngAlgorithm other) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
ToString | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
AlgorithmGroup | string | read | o.AlgorithmGroup |
DiffieHellman | CngAlgorithmGroup | read · static | o.DiffieHellman |
Dsa | CngAlgorithmGroup | read · static | o.Dsa |
ECDiffieHellman | CngAlgorithmGroup | read · static | o.ECDiffieHellman |
ECDsa | CngAlgorithmGroup | read · static | o.ECDsa |
Rsa | CngAlgorithmGroup | read · static | o.Rsa |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(object obj)bool Equals(CngAlgorithmGroup other) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
ToString | callMethod("ToString",[]) | string ToString() |
CngKey class sealed
System.Security.Cryptography.CngKey · assembly System.Security.Cryptography
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Algorithm | CngAlgorithm | read | o.Algorithm |
AlgorithmGroup | CngAlgorithmGroup | read | o.AlgorithmGroup |
ExportPolicy | CngExportPolicies | read | o.ExportPolicy |
Handle | SafeNCryptKeyHandle | read | o.Handle |
IsEphemeral | bool | read | o.IsEphemeral |
IsMachineKey | bool | read | o.IsMachineKey |
KeyName | string | read | o.KeyName |
KeySize | int | read | o.KeySize |
KeyUsage | CngKeyUsages | read | o.KeyUsage |
ParentWindowHandle | IntPtr | read, write | o.ParentWindowHandle o.ParentWindowHandle = v |
Provider | CngProvider | read | o.Provider |
ProviderHandle | SafeNCryptProviderHandle | read | o.ProviderHandle |
UIPolicy | CngUIPolicy | read | o.UIPolicy |
UniqueName | string | read | o.UniqueName |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(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) |
Delete | callMethod("Delete",[]) | void Delete() |
Dispose | callMethod("Dispose",[]) | void Dispose() |
Exists | Exists(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) |
Export | callMethod("Export",[p1]) | byte[] Export(CngKeyBlobFormat format) |
GetProperty | callMethod("GetProperty",[p1,p2]) | CngProperty GetProperty(string name, CngPropertyOptions options) |
HasProperty | HasProperty(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) |
Open | Open(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) |
SetProperty | SetProperty(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Format | string | read | o.Format |
EccPrivateBlob | CngKeyBlobFormat | read · static | o.EccPrivateBlob |
EccPublicBlob | CngKeyBlobFormat | read · static | o.EccPublicBlob |
EccFullPrivateBlob | CngKeyBlobFormat | read · static | o.EccFullPrivateBlob |
EccFullPublicBlob | CngKeyBlobFormat | read · static | o.EccFullPublicBlob |
GenericPrivateBlob | CngKeyBlobFormat | read · static | o.GenericPrivateBlob |
GenericPublicBlob | CngKeyBlobFormat | read · static | o.GenericPublicBlob |
OpaqueTransportBlob | CngKeyBlobFormat | read · static | o.OpaqueTransportBlob |
Pkcs8PrivateBlob | CngKeyBlobFormat | read · static | o.Pkcs8PrivateBlob |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(object obj)bool Equals(CngKeyBlobFormat other) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
ToString | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
ExportPolicy | CngExportPolicies? | read, write | o.ExportPolicy o.ExportPolicy = v |
KeyCreationOptions | CngKeyCreationOptions | read, write | o.KeyCreationOptions o.KeyCreationOptions = v |
KeyUsage | CngKeyUsages? | read, write | o.KeyUsage o.KeyUsage = v |
Parameters | CngPropertyCollection | read | o.Parameters |
ParentWindowHandle | IntPtr | read, write | o.ParentWindowHandle o.ParentWindowHandle = v |
Provider | CngProvider | read, write | o.Provider o.Provider = v |
UIPolicy | CngUIPolicy | read, write | o.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
| Name | Type | Access | In Ring |
|---|---|---|---|
Name | string | read | o.Name |
Options | CngPropertyOptions | read | o.Options |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(object obj)bool Equals(CngProperty other) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
GetValue | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.getCount() |
Indexer
o.Item(int index) → CngProperty · o.SetItem(index,value)
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Add | callMethod("Add",[p1]) | void Add(CngProperty item) |
Clear | callMethod("Clear",[]) | void Clear() |
Contains | callMethod("Contains",[p1]) | bool Contains(CngProperty item) |
CopyTo | CopyTo(p1,p2) | void CopyTo(CngProperty[] array, int index) |
GetEnumerator | callMethod("GetEnumerator",[]) | IEnumerator<CngProperty> GetEnumerator() |
IndexOf | callMethod("IndexOf",[p1]) | int IndexOf(CngProperty item) |
Insert | callMethod("Insert",[p1,p2]) | void Insert(int index, CngProperty item) |
Remove | callMethod("Remove",[p1]) | bool Remove(CngProperty item) |
RemoveAt | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
Provider | string | read | o.Provider |
MicrosoftPlatformCryptoProvider | CngProvider | read · static | o.MicrosoftPlatformCryptoProvider |
MicrosoftSmartCardKeyStorageProvider | CngProvider | read · static | o.MicrosoftSmartCardKeyStorageProvider |
MicrosoftSoftwareKeyStorageProvider | CngProvider | read · static | o.MicrosoftSoftwareKeyStorageProvider |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(object obj)bool Equals(CngProvider other) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
ToString | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
ProtectionLevel | CngUIProtectionLevels | read | o.ProtectionLevel |
FriendlyName | string | read | o.FriendlyName |
Description | string | read | o.Description |
UseContext | string | read | o.UseContext |
CreationTitle | string | read | o.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
| Name | Type | Access | In Ring |
|---|---|---|---|
AllowOnlyFipsAlgorithms | bool | read · static | o.AllowOnlyFipsAlgorithms |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AddAlgorithm | AddAlgorithm(p1,p2) | static void AddAlgorithm(Type algorithm, string[] names) |
AddOID | AddOID(p1,p2) | static void AddOID(string oid, string[] names) |
CreateFromName | CreateFromName(value)CreateFromName([ :name = … ])CreateFromName([ :name = …, :args = … ]) | static object CreateFromName(string name, object[] args)static object CreateFromName(string name) |
EncodeOID | EncodeOID(p1) | static byte[] EncodeOID(string str) |
MapNameToOID | callMethod("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
| Method | Ring call | .NET overloads |
|---|---|---|
FixedTimeEquals | FixedTimeEquals(p1,p2) | static bool FixedTimeEquals(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right) |
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
HmacData | HmacData(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) |
HmacDataAsync | HmacDataAsync([ :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 = …) |
TryHashData | TryHashData(p1,p2,p3) | static bool TryHashData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) |
TryHmacData | TryHmacData(p1,p2,p3,p4) | static bool TryHmacData(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) |
ZeroMemory | ZeroMemory(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
| Name | Type | Access | In Ring |
|---|---|---|---|
CanRead | bool | read | o.getCanRead() |
CanSeek | bool | read | o.getCanSeek() |
CanWrite | bool | read | o.getCanWrite() |
Length | long | read | o.getLength() |
Position | long | read, write | o.getPosition() o.setPosition(v) |
HasFlushedFinalBlock | bool | read | o.HasFlushedFinalBlock |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
BeginRead | callMethod("BeginRead",[p1,p2,p3,p4,p5]) | IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state) |
BeginWrite | callMethod("BeginWrite",[p1,p2,p3,p4,p5]) | IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state) |
Clear | callMethod("Clear",[]) | void Clear() |
CopyTo | callMethod("CopyTo",[p1,p2]) | void CopyTo(Stream destination, int bufferSize) |
CopyToAsync | CopyToAsync([ :destination = …, :bufferSize = …, :cancellationToken = … ]) | Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) |
DisposeAsync | callMethod("DisposeAsync",[]) | ValueTask DisposeAsync() |
EndRead | EndRead(p1) | int EndRead(IAsyncResult asyncResult) |
EndWrite | EndWrite(p1) | void EndWrite(IAsyncResult asyncResult) |
Flush | callMethod("Flush",[]) | void Flush() |
FlushAsync | FlushAsync(value)FlushAsync([ :cancellationToken = … ]) | Task FlushAsync(CancellationToken cancellationToken) |
FlushFinalBlock | callMethod("FlushFinalBlock",[]) | void FlushFinalBlock() |
FlushFinalBlockAsync | FlushFinalBlockAsync(value)FlushFinalBlockAsync([ :cancellationToken = … ]) | ValueTask FlushFinalBlockAsync(CancellationToken cancellationToken = …) |
Read | Read(p1,p2,p3) | int Read(byte[] buffer, int offset, int count) |
ReadAsync | ReadAsync([ :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 = …) |
ReadByte | callMethod("ReadByte",[]) | int ReadByte() |
Seek | Seek(p1,p2) | long Seek(long offset, SeekOrigin origin) |
SetLength | callMethod("SetLength",[p1]) | void SetLength(long value) |
Write | Write(p1,p2,p3) | void Write(byte[] buffer, int offset, int count)void Write(ReadOnlySpan<byte> buffer) |
WriteAsync | WriteAsync([ :buffer = …, :cancellationToken = … ])WriteAsync([ :buffer = …, :offset = …, :count = …, :cancellationToken = … ]) | Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = …) |
WriteByte | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
Accessible | bool | read | o.Accessible |
Exportable | bool | read | o.Exportable |
HardwareDevice | bool | read | o.HardwareDevice |
KeyContainerName | string | read | o.KeyContainerName |
KeyNumber | KeyNumber | read | o.KeyNumber |
MachineKeyStore | bool | read | o.MachineKeyStore |
Protected | bool | read | o.Protected |
ProviderName | string | read | o.ProviderName |
ProviderType | int | read | o.ProviderType |
RandomlyGenerated | bool | read | o.RandomlyGenerated |
Removable | bool | read | o.Removable |
UniqueKeyContainerName | string | read | o.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
| Name | Type | Access | In Ring |
|---|---|---|---|
Flags | CspProviderFlags | read, write | o.Flags o.Flags = v |
KeyPassword | SecureString | read, write | o.KeyPassword o.KeyPassword = v |
ParentWindowHandle | IntPtr | read, write | o.ParentWindowHandle o.ParentWindowHandle = v |
ProviderType | int | read, write | o.ProviderType o.ProviderType = v |
ProviderName | string | read, write | o.ProviderName o.ProviderName = v |
KeyContainerName | string | read, write | o.KeyContainerName o.KeyContainerName = v |
KeyNumber | int | read, write | o.KeyNumber o.KeyNumber = v |
DeriveBytes class abstract
System.Security.Cryptography.DeriveBytes · assembly System.Security.Cryptography
Implements: IDisposable
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetBytes | callMethod("GetBytes",[p1]) | byte[] GetBytes(int cb) |
Reset | callMethod("Reset",[]) | void Reset() |
DES class abstract · extends SymmetricAlgorithm
System.Security.Cryptography.DES · assembly System.Security.Cryptography
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Key | byte[] | read, write | o.getKey() o.setKey(v) |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(NULL)Create(value)Create([ :algName = … ]) | static DES Create()static DES Create(string algName) |
IsSemiWeakKey | IsSemiWeakKey(p1) | static bool IsSemiWeakKey(byte[] rgbKey) |
IsWeakKey | IsWeakKey(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
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(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) |
CreateSignature | CreateSignature(value)CreateSignature([ :rgbHash = … ])CreateSignature([ :rgbHash = …, :signatureFormat = … ]) | byte[] CreateSignature(byte[] rgbHash)byte[] CreateSignature(byte[] rgbHash, DSASignatureFormat signatureFormat) |
ExportParameters | callMethod("ExportParameters",[p1]) | DSAParameters ExportParameters(bool includePrivateParameters) |
FromXmlString | callMethod("FromXmlString",[p1]) | void FromXmlString(string xmlString) |
GetMaxSignatureSize | GetMaxSignatureSize(p1) | int GetMaxSignatureSize(DSASignatureFormat signatureFormat) |
ImportEncryptedPkcs8PrivateKey | ImportEncryptedPkcs8PrivateKey(p1,p2) | void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead) |
ImportFromEncryptedPem | ImportFromEncryptedPem(p1,p2) | void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password)void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) |
ImportFromPem | ImportFromPem(p1) | void ImportFromPem(ReadOnlySpan<char> input) |
ImportParameters | ImportParameters(p1) | void ImportParameters(DSAParameters parameters) |
ImportPkcs8PrivateKey | ImportPkcs8PrivateKey(p1) | void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) |
ImportSubjectPublicKeyInfo | ImportSubjectPublicKeyInfo(p1) | void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) |
SignData | SignData([ :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) |
ToXmlString | callMethod("ToXmlString",[p1]) | string ToXmlString(bool includePrivateParameters) |
TryCreateSignature | TryCreateSignature([ :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) |
TryExportEncryptedPkcs8PrivateKey | TryExportEncryptedPkcs8PrivateKey(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) |
TryExportPkcs8PrivateKey | TryExportPkcs8PrivateKey(p1) | bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten) |
TryExportSubjectPublicKeyInfo | TryExportSubjectPublicKeyInfo(p1) | bool TryExportSubjectPublicKeyInfo(Span<byte> destination, out int bytesWritten) |
TrySignData | TrySignData([ :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) |
VerifyData | VerifyData([ :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) |
VerifySignature | VerifySignature([ :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
| Name | Type | Access | In Ring |
|---|---|---|---|
LegalKeySizes | KeySizes[] | read | o.getLegalKeySizes() |
SignatureAlgorithm | string | read | o.getSignatureAlgorithm() |
KeyExchangeAlgorithm | string | read | o.getKeyExchangeAlgorithm() |
Key | CngKey | read | o.Key |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateSignature | CreateSignature(value)CreateSignature([ :rgbHash = … ]) | byte[] CreateSignature(byte[] rgbHash) |
ExportEncryptedPkcs8PrivateKey | callMethod("ExportEncryptedPkcs8PrivateKey",[p1,p2]) | byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) |
ExportParameters | callMethod("ExportParameters",[p1]) | DSAParameters ExportParameters(bool includePrivateParameters) |
ImportEncryptedPkcs8PrivateKey | ImportEncryptedPkcs8PrivateKey(p1,p2) | void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead) |
ImportParameters | ImportParameters(p1) | void ImportParameters(DSAParameters parameters) |
TryExportEncryptedPkcs8PrivateKey | TryExportEncryptedPkcs8PrivateKey(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) |
TryExportPkcs8PrivateKey | TryExportPkcs8PrivateKey(p1) | bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten) |
VerifySignature | VerifySignature([ :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
| Name | Type | Access | In Ring |
|---|---|---|---|
CspKeyContainerInfo | CspKeyContainerInfo | read | o.CspKeyContainerInfo |
KeySize | int | read | o.getKeySize() |
LegalKeySizes | KeySizes[] | read | o.getLegalKeySizes() |
PersistKeyInCsp | bool | read, write | o.PersistKeyInCsp o.PersistKeyInCsp = v |
PublicOnly | bool | read | o.PublicOnly |
KeyExchangeAlgorithm | string | read | o.getKeyExchangeAlgorithm() |
SignatureAlgorithm | string | read | o.getSignatureAlgorithm() |
UseMachineKeyStore | bool | read, write · static | o.UseMachineKeyStore o.UseMachineKeyStore = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateSignature | CreateSignature(value)CreateSignature([ :rgbHash = … ]) | byte[] CreateSignature(byte[] rgbHash) |
ExportCspBlob | callMethod("ExportCspBlob",[p1]) | byte[] ExportCspBlob(bool includePrivateParameters) |
ExportParameters | callMethod("ExportParameters",[p1]) | DSAParameters ExportParameters(bool includePrivateParameters) |
ImportCspBlob | ImportCspBlob(p1) | void ImportCspBlob(byte[] keyBlob) |
ImportEncryptedPkcs8PrivateKey | ImportEncryptedPkcs8PrivateKey(p1,p2) | void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead) |
ImportParameters | ImportParameters(p1) | void ImportParameters(DSAParameters parameters) |
SignData | SignData(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) |
SignHash | callMethod("SignHash",[p1,p2]) | byte[] SignHash(byte[] rgbHash, string str) |
VerifyData | VerifyData([ :rgbData = …, :rgbSignature = … ]) | bool VerifyData(byte[] rgbData, byte[] rgbSignature) |
VerifyHash | VerifyHash(p1,p2,p3) | bool VerifyHash(byte[] rgbHash, string str, byte[] rgbSignature) |
VerifySignature | VerifySignature([ :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
| Method | Ring call | .NET overloads |
|---|---|---|
CreateSignature | CreateSignature(value)CreateSignature([ :rgbHash = … ]) | byte[] CreateSignature(byte[] rgbHash) |
DuplicateKeyHandle | callMethod("DuplicateKeyHandle",[]) | SafeEvpPKeyHandle DuplicateKeyHandle() |
ExportParameters | callMethod("ExportParameters",[p1]) | DSAParameters ExportParameters(bool includePrivateParameters) |
ImportParameters | ImportParameters(p1) | void ImportParameters(DSAParameters parameters) |
VerifySignature | VerifySignature([ :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
| Name | Type | Access | In Ring |
|---|---|---|---|
P | byte[] | read, write | o.P o.P = v |
Q | byte[] | read, write | o.Q o.Q = v |
G | byte[] | read, write | o.G o.G = v |
Y | byte[] | read, write | o.Y o.Y = v |
J | byte[] | read, write | o.J o.J = v |
X | byte[] | read, write | o.X o.X = v |
Seed | byte[] | read, write | o.Seed o.Seed = v |
Counter | int | read, write | o.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
| Method | Ring call | .NET overloads |
|---|---|---|
SetHashAlgorithm | callMethod("SetHashAlgorithm",[p1]) | void SetHashAlgorithm(string strName) |
SetKey | SetKey(p1) | void SetKey(AsymmetricAlgorithm key) |
VerifySignature | VerifySignature(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
| Method | Ring call | .NET overloads |
|---|---|---|
CreateSignature | callMethod("CreateSignature",[p1]) | byte[] CreateSignature(byte[] rgbHash) |
SetHashAlgorithm | callMethod("SetHashAlgorithm",[p1]) | void SetHashAlgorithm(string strName) |
SetKey | SetKey(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
| Method | Ring call | .NET overloads |
|---|---|---|
ExportECPrivateKey | callMethod("ExportECPrivateKey",[]) | byte[] ExportECPrivateKey() |
ExportECPrivateKeyPem | callMethod("ExportECPrivateKeyPem",[]) | string ExportECPrivateKeyPem() |
ExportExplicitParameters | callMethod("ExportExplicitParameters",[p1]) | ECParameters ExportExplicitParameters(bool includePrivateParameters) |
ExportParameters | callMethod("ExportParameters",[p1]) | ECParameters ExportParameters(bool includePrivateParameters) |
GenerateKey | GenerateKey(p1) | void GenerateKey(ECCurve curve) |
ImportECPrivateKey | ImportECPrivateKey(p1) | void ImportECPrivateKey(ReadOnlySpan<byte> source, out int bytesRead) |
ImportEncryptedPkcs8PrivateKey | ImportEncryptedPkcs8PrivateKey(p1,p2) | void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead) |
ImportFromEncryptedPem | ImportFromEncryptedPem(p1,p2) | void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password)void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) |
ImportFromPem | ImportFromPem(p1) | void ImportFromPem(ReadOnlySpan<char> input) |
ImportParameters | ImportParameters(p1) | void ImportParameters(ECParameters parameters) |
ImportPkcs8PrivateKey | ImportPkcs8PrivateKey(p1) | void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) |
ImportSubjectPublicKeyInfo | ImportSubjectPublicKeyInfo(p1) | void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) |
TryExportECPrivateKey | TryExportECPrivateKey(p1) | bool TryExportECPrivateKey(Span<byte> destination, out int bytesWritten) |
TryExportECPrivateKeyPem | TryExportECPrivateKeyPem(p1) | bool TryExportECPrivateKeyPem(Span<char> destination, out int charsWritten) |
TryExportEncryptedPkcs8PrivateKey | TryExportEncryptedPkcs8PrivateKey(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) |
TryExportPkcs8PrivateKey | TryExportPkcs8PrivateKey(p1) | bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten) |
TryExportSubjectPublicKeyInfo | TryExportSubjectPublicKeyInfo(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Oid | Oid | read | o.Oid |
IsPrime | bool | read | o.IsPrime |
IsCharacteristic2 | bool | read | o.IsCharacteristic2 |
IsExplicit | bool | read | o.IsExplicit |
IsNamed | bool | read | o.IsNamed |
A | byte[] | read, write | o.A o.A = v |
B | byte[] | read, write | o.B o.B = v |
G | ECPoint | read, write | o.G o.G = v |
Order | byte[] | read, write | o.Order o.Order = v |
Cofactor | byte[] | read, write | o.Cofactor o.Cofactor = v |
Seed | byte[] | read, write | o.Seed o.Seed = v |
CurveType | ECCurve.ECCurveType | read, write | o.CurveType o.CurveType = v |
Hash | HashAlgorithmName? | read, write | o.Hash o.Hash = v |
Polynomial | byte[] | read, write | o.Polynomial o.Polynomial = v |
Prime | byte[] | read, write | o.Prime o.Prime = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateFromFriendlyName | CreateFromFriendlyName(p1) | static ECCurve CreateFromFriendlyName(string oidFriendlyName) |
CreateFromOid | CreateFromOid(p1) | static ECCurve CreateFromOid(Oid curveOid) |
CreateFromValue | CreateFromValue(p1) | static ECCurve CreateFromValue(string oidValue) |
Validate | callMethod("Validate",[]) | void Validate() |
ECCurveNamedCurves class static
System.Security.Cryptography.ECCurve+NamedCurves · assembly System.Security.Cryptography
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
brainpoolP160r1 | ECCurve | read · static | o.brainpoolP160r1 |
brainpoolP160t1 | ECCurve | read · static | o.brainpoolP160t1 |
brainpoolP192r1 | ECCurve | read · static | o.brainpoolP192r1 |
brainpoolP192t1 | ECCurve | read · static | o.brainpoolP192t1 |
brainpoolP224r1 | ECCurve | read · static | o.brainpoolP224r1 |
brainpoolP224t1 | ECCurve | read · static | o.brainpoolP224t1 |
brainpoolP256r1 | ECCurve | read · static | o.brainpoolP256r1 |
brainpoolP256t1 | ECCurve | read · static | o.brainpoolP256t1 |
brainpoolP320r1 | ECCurve | read · static | o.brainpoolP320r1 |
brainpoolP320t1 | ECCurve | read · static | o.brainpoolP320t1 |
brainpoolP384r1 | ECCurve | read · static | o.brainpoolP384r1 |
brainpoolP384t1 | ECCurve | read · static | o.brainpoolP384t1 |
brainpoolP512r1 | ECCurve | read · static | o.brainpoolP512r1 |
brainpoolP512t1 | ECCurve | read · static | o.brainpoolP512t1 |
nistP256 | ECCurve | read · static | o.nistP256 |
nistP384 | ECCurve | read · static | o.nistP384 |
nistP521 | ECCurve | read · static | o.nistP521 |
ECDiffieHellman class abstract · extends ECAlgorithm
System.Security.Cryptography.ECDiffieHellman · assembly System.Security.Cryptography
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
KeyExchangeAlgorithm | string | read | o.getKeyExchangeAlgorithm() |
SignatureAlgorithm | string | read | o.getSignatureAlgorithm() |
PublicKey | ECDiffieHellmanPublicKey | read | o.PublicKey |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(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) |
DeriveKeyFromHash | DeriveKeyFromHash([ :otherPartyPublicKey = …, :hashAlgorithm = … ])DeriveKeyFromHash([ :otherPartyPublicKey = …, :hashAlgorithm = …, :secretPrepend = …, :secretAppend = … ]) | byte[] DeriveKeyFromHash(ECDiffieHellmanPublicKey otherPartyPublicKey, HashAlgorithmName hashAlgorithm)byte[] DeriveKeyFromHash(ECDiffieHellmanPublicKey otherPartyPublicKey, HashAlgorithmName hashAlgorithm, byte[] secretPrepend, byte[] secretAppend) |
DeriveKeyFromHmac | DeriveKeyFromHmac([ :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) |
DeriveKeyMaterial | callMethod("DeriveKeyMaterial",[p1]) | byte[] DeriveKeyMaterial(ECDiffieHellmanPublicKey otherPartyPublicKey) |
DeriveKeyTls | callMethod("DeriveKeyTls",[p1,p2,p3]) | byte[] DeriveKeyTls(ECDiffieHellmanPublicKey otherPartyPublicKey, byte[] prfLabel, byte[] prfSeed) |
DeriveRawSecretAgreement | callMethod("DeriveRawSecretAgreement",[p1]) | byte[] DeriveRawSecretAgreement(ECDiffieHellmanPublicKey otherPartyPublicKey) |
FromXmlString | callMethod("FromXmlString",[p1]) | void FromXmlString(string xmlString) |
ToXmlString | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
KeySize | int | read, write | o.getKeySize() o.setKeySize(v) |
LegalKeySizes | KeySizes[] | read | o.getLegalKeySizes() |
HashAlgorithm | CngAlgorithm | read, write | o.HashAlgorithm o.HashAlgorithm = v |
KeyDerivationFunction | ECDiffieHellmanKeyDerivationFunction | read, write | o.KeyDerivationFunction o.KeyDerivationFunction = v |
HmacKey | byte[] | read, write | o.HmacKey o.HmacKey = v |
Label | byte[] | read, write | o.Label o.Label = v |
SecretAppend | byte[] | read, write | o.SecretAppend o.SecretAppend = v |
SecretPrepend | byte[] | read, write | o.SecretPrepend o.SecretPrepend = v |
Seed | byte[] | read, write | o.Seed o.Seed = v |
UseSecretAgreementAsHmacKey | bool | read | o.UseSecretAgreementAsHmacKey |
PublicKey | ECDiffieHellmanPublicKey | read | o.getPublicKey() |
Key | CngKey | read | o.Key |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
DeriveKeyFromHash | DeriveKeyFromHash([ :otherPartyPublicKey = …, :hashAlgorithm = …, :secretPrepend = …, :secretAppend = … ]) | byte[] DeriveKeyFromHash(ECDiffieHellmanPublicKey otherPartyPublicKey, HashAlgorithmName hashAlgorithm, byte[] secretPrepend, byte[] secretAppend) |
DeriveKeyFromHmac | DeriveKeyFromHmac([ :otherPartyPublicKey = …, :hashAlgorithm = …, :hmacKey = …, :secretPrepend = …, :secretAppend = … ]) | byte[] DeriveKeyFromHmac(ECDiffieHellmanPublicKey otherPartyPublicKey, HashAlgorithmName hashAlgorithm, byte[] hmacKey, byte[] secretPrepend, byte[] secretAppend) |
DeriveKeyMaterial | callMethod("DeriveKeyMaterial",[p1]) | byte[] DeriveKeyMaterial(ECDiffieHellmanPublicKey otherPartyPublicKey)byte[] DeriveKeyMaterial(CngKey otherPartyPublicKey) |
DeriveKeyTls | callMethod("DeriveKeyTls",[p1,p2,p3]) | byte[] DeriveKeyTls(ECDiffieHellmanPublicKey otherPartyPublicKey, byte[] prfLabel, byte[] prfSeed) |
DeriveRawSecretAgreement | callMethod("DeriveRawSecretAgreement",[p1]) | byte[] DeriveRawSecretAgreement(ECDiffieHellmanPublicKey otherPartyPublicKey) |
DeriveSecretAgreementHandle | callMethod("DeriveSecretAgreementHandle",[p1]) | SafeNCryptSecretHandle DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey otherPartyPublicKey)SafeNCryptSecretHandle DeriveSecretAgreementHandle(CngKey otherPartyPublicKey) |
ExportEncryptedPkcs8PrivateKey | callMethod("ExportEncryptedPkcs8PrivateKey",[p1,p2]) | byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) |
ExportExplicitParameters | callMethod("ExportExplicitParameters",[p1]) | ECParameters ExportExplicitParameters(bool includePrivateParameters) |
ExportParameters | callMethod("ExportParameters",[p1]) | ECParameters ExportParameters(bool includePrivateParameters) |
FromXmlString | callMethod("FromXmlString",[p1,p2]) | void FromXmlString(string xml, ECKeyXmlFormat format) |
GenerateKey | GenerateKey(p1) | void GenerateKey(ECCurve curve) |
ImportEncryptedPkcs8PrivateKey | ImportEncryptedPkcs8PrivateKey(p1,p2) | void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead) |
ImportParameters | ImportParameters(p1) | void ImportParameters(ECParameters parameters) |
ImportPkcs8PrivateKey | ImportPkcs8PrivateKey(p1) | void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) |
ToXmlString | ToXmlString(p1) | string ToXmlString(ECKeyXmlFormat format) |
TryExportEncryptedPkcs8PrivateKey | TryExportEncryptedPkcs8PrivateKey(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) |
TryExportPkcs8PrivateKey | TryExportPkcs8PrivateKey(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
| Name | Type | Access | In Ring |
|---|---|---|---|
BlobFormat | CngKeyBlobFormat | read | o.BlobFormat |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ExportExplicitParameters | callMethod("ExportExplicitParameters",[]) | ECParameters ExportExplicitParameters() |
ExportParameters | callMethod("ExportParameters",[]) | ECParameters ExportParameters() |
FromByteArray | FromByteArray(p1,p2) | static ECDiffieHellmanPublicKey FromByteArray(byte[] publicKeyBlob, CngKeyBlobFormat format) |
FromXmlString | FromXmlString(p1) | static ECDiffieHellmanCngPublicKey FromXmlString(string xml) |
Import | callMethod("Import",[]) | CngKey Import() |
ToXmlString | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
PublicKey | ECDiffieHellmanPublicKey | read | o.getPublicKey() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
DuplicateKeyHandle | callMethod("DuplicateKeyHandle",[]) | SafeEvpPKeyHandle DuplicateKeyHandle() |
ExportParameters | callMethod("ExportParameters",[p1]) | ECParameters ExportParameters(bool includePrivateParameters) |
ImportParameters | ImportParameters(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
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
ExportExplicitParameters | callMethod("ExportExplicitParameters",[]) | ECParameters ExportExplicitParameters() |
ExportParameters | callMethod("ExportParameters",[]) | ECParameters ExportParameters() |
ExportSubjectPublicKeyInfo | callMethod("ExportSubjectPublicKeyInfo",[]) | byte[] ExportSubjectPublicKeyInfo() |
ToByteArray | callMethod("ToByteArray",[]) | byte[] ToByteArray() |
ToXmlString | callMethod("ToXmlString",[]) | string ToXmlString() |
TryExportSubjectPublicKeyInfo | TryExportSubjectPublicKeyInfo(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
| Name | Type | Access | In Ring |
|---|---|---|---|
KeyExchangeAlgorithm | string | read | o.getKeyExchangeAlgorithm() |
SignatureAlgorithm | string | read | o.getSignatureAlgorithm() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(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) |
FromXmlString | callMethod("FromXmlString",[p1]) | void FromXmlString(string xmlString) |
GetMaxSignatureSize | GetMaxSignatureSize(p1) | int GetMaxSignatureSize(DSASignatureFormat signatureFormat) |
SignData | SignData([ :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) |
SignHash | SignHash(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) |
ToXmlString | callMethod("ToXmlString",[p1]) | string ToXmlString(bool includePrivateParameters) |
TrySignData | TrySignData([ :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) |
TrySignHash | TrySignHash([ :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) |
VerifyData | VerifyData([ :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) |
VerifyHash | VerifyHash([ :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
| Name | Type | Access | In Ring |
|---|---|---|---|
KeySize | int | read, write | o.getKeySize() o.setKeySize(v) |
LegalKeySizes | KeySizes[] | read | o.getLegalKeySizes() |
HashAlgorithm | CngAlgorithm | read, write | o.HashAlgorithm o.HashAlgorithm = v |
Key | CngKey | read | o.Key |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ExportEncryptedPkcs8PrivateKey | callMethod("ExportEncryptedPkcs8PrivateKey",[p1,p2]) | byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) |
ExportExplicitParameters | callMethod("ExportExplicitParameters",[p1]) | ECParameters ExportExplicitParameters(bool includePrivateParameters) |
ExportParameters | callMethod("ExportParameters",[p1]) | ECParameters ExportParameters(bool includePrivateParameters) |
FromXmlString | callMethod("FromXmlString",[p1,p2]) | void FromXmlString(string xml, ECKeyXmlFormat format) |
GenerateKey | GenerateKey(p1) | void GenerateKey(ECCurve curve) |
ImportEncryptedPkcs8PrivateKey | ImportEncryptedPkcs8PrivateKey(p1,p2) | void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead) |
ImportParameters | ImportParameters(p1) | void ImportParameters(ECParameters parameters) |
ImportPkcs8PrivateKey | ImportPkcs8PrivateKey(p1) | void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) |
SignData | SignData(value)SignData([ :data = … ])SignData([ :data = …, :offset = …, :count = … ]) | byte[] SignData(byte[] data)byte[] SignData(byte[] data, int offset, int count)byte[] SignData(Stream data) |
SignHash | SignHash(value)SignHash([ :hash = … ]) | byte[] SignHash(byte[] hash) |
ToXmlString | ToXmlString(p1) | string ToXmlString(ECKeyXmlFormat format) |
TryExportEncryptedPkcs8PrivateKey | TryExportEncryptedPkcs8PrivateKey(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) |
TryExportPkcs8PrivateKey | TryExportPkcs8PrivateKey(p1) | bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten) |
TrySignHash | TrySignHash([ :source = …, :destination = …, :bytesWritten = … ]) | bool TrySignHash(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) |
VerifyData | VerifyData([ :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) |
VerifyHash | VerifyHash([ :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
| Method | Ring call | .NET overloads |
|---|---|---|
DuplicateKeyHandle | callMethod("DuplicateKeyHandle",[]) | SafeEvpPKeyHandle DuplicateKeyHandle() |
SignHash | SignHash(value)SignHash([ :hash = … ]) | byte[] SignHash(byte[] hash) |
VerifyHash | VerifyHash([ :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
| Name | Type | Access | In Ring |
|---|---|---|---|
Q | ECPoint | read, write | o.Q o.Q = v |
D | byte[] | read, write | o.D o.D = v |
Curve | ECCurve | read, write | o.Curve o.Curve = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Validate | callMethod("Validate",[]) | void Validate() |
ECPoint struct
System.Security.Cryptography.ECPoint · assembly System.Security.Cryptography
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
X | byte[] | read, write | o.X o.X = v |
Y | byte[] | read, write | o.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
| Name | Type | Access | In Ring |
|---|---|---|---|
InputBlockSize | int | read | o.InputBlockSize |
OutputBlockSize | int | read | o.OutputBlockSize |
CanTransformMultipleBlocks | bool | read | o.CanTransformMultipleBlocks |
CanReuseTransform | bool | read | o.CanReuseTransform |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Clear | callMethod("Clear",[]) | void Clear() |
Dispose | callMethod("Dispose",[]) | void Dispose() |
TransformBlock | TransformBlock(p1,p2,p3,p4,p5) | int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset) |
TransformFinalBlock | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
HashSize | int | read | o.HashSize |
Hash | byte[] | read | o.Hash |
InputBlockSize | int | read | o.InputBlockSize |
OutputBlockSize | int | read | o.OutputBlockSize |
CanTransformMultipleBlocks | bool | read | o.CanTransformMultipleBlocks |
CanReuseTransform | bool | read | o.CanReuseTransform |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Clear | callMethod("Clear",[]) | void Clear() |
ComputeHash | ComputeHash(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) |
ComputeHashAsync | ComputeHashAsync([ :inputStream = …, :cancellationToken = … ]) | Task<byte[]> ComputeHashAsync(Stream inputStream, CancellationToken cancellationToken = …) |
Create | Create(NULL)Create(value)Create([ :hashName = … ]) | static HashAlgorithm Create()static HashAlgorithm Create(string hashName) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
Initialize | callMethod("Initialize",[]) | void Initialize() |
TransformBlock | TransformBlock(p1,p2,p3,p4,p5) | int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset) |
TransformFinalBlock | callMethod("TransformFinalBlock",[p1,p2,p3]) | byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount) |
TryComputeHash | TryComputeHash(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Name | string | read | o.Name |
MD5 | HashAlgorithmName | read · static | o.MD5 |
SHA1 | HashAlgorithmName | read · static | o.SHA1 |
SHA256 | HashAlgorithmName | read · static | o.SHA256 |
SHA384 | HashAlgorithmName | read · static | o.SHA384 |
SHA512 | HashAlgorithmName | read · static | o.SHA512 |
SHA3_256 | HashAlgorithmName | read · static | o.SHA3_256 |
SHA3_384 | HashAlgorithmName | read · static | o.SHA3_384 |
SHA3_512 | HashAlgorithmName | read · static | o.SHA3_512 |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(object obj)bool Equals(HashAlgorithmName other) |
FromOid | FromOid(p1) | static HashAlgorithmName FromOid(string oidValue) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
ToString | callMethod("ToString",[]) | string ToString() |
TryFromOid | TryFromOid(p1) | static bool TryFromOid(string oidValue, out HashAlgorithmName value) |
HKDF class static
System.Security.Cryptography.HKDF · assembly System.Security.Cryptography
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
DeriveKey | DeriveKey([ :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) |
Expand | Expand([ :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) |
Extract | Extract([ :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
| Name | Type | Access | In Ring |
|---|---|---|---|
HashName | string | read, write | o.HashName o.HashName = v |
Key | byte[] | read, write | o.getKey() o.setKey(v) |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(NULL)Create(value)Create([ :algorithmName = … ]) | static HMAC Create()static HMAC Create(string algorithmName) |
Initialize | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
Key | byte[] | read, write | o.getKey() o.setKey(v) |
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
Initialize | callMethod("Initialize",[]) | void Initialize() |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Key | byte[] | read, write | o.getKey() o.setKey(v) |
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
Initialize | callMethod("Initialize",[]) | void Initialize() |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Key | byte[] | read, write | o.getKey() o.setKey(v) |
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
Initialize | callMethod("Initialize",[]) | void Initialize() |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
ProduceLegacyHmacValues | bool | read, write | o.ProduceLegacyHmacValues o.ProduceLegacyHmacValues = v |
Key | byte[] | read, write | o.getKey() o.setKey(v) |
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
Initialize | callMethod("Initialize",[]) | void Initialize() |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Key | byte[] | read, write | o.getKey() o.setKey(v) |
IsSupported | bool | read · static | o.IsSupported |
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
Initialize | callMethod("Initialize",[]) | void Initialize() |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Key | byte[] | read, write | o.getKey() o.setKey(v) |
IsSupported | bool | read · static | o.IsSupported |
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
Initialize | callMethod("Initialize",[]) | void Initialize() |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Key | byte[] | read, write | o.getKey() o.setKey(v) |
IsSupported | bool | read · static | o.IsSupported |
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
Initialize | callMethod("Initialize",[]) | void Initialize() |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
ProduceLegacyHmacValues | bool | read, write | o.ProduceLegacyHmacValues o.ProduceLegacyHmacValues = v |
Key | byte[] | read, write | o.getKey() o.setKey(v) |
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
Initialize | callMethod("Initialize",[]) | void Initialize() |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
InputBlockSize | int | read | o.InputBlockSize |
OutputBlockSize | int | read | o.OutputBlockSize |
CanTransformMultipleBlocks | bool | read | o.CanTransformMultipleBlocks |
CanReuseTransform | bool | read | o.CanReuseTransform |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
TransformBlock | TransformBlock(p1,p2,p3,p4,p5) | int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset) |
TransformFinalBlock | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
CspKeyContainerInfo | CspKeyContainerInfo | read | o.CspKeyContainerInfo |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ExportCspBlob | callMethod("ExportCspBlob",[p1]) | byte[] ExportCspBlob(bool includePrivateParameters) |
ImportCspBlob | ImportCspBlob(p1) | void ImportCspBlob(byte[] rawData) |
IncrementalHash class sealed
System.Security.Cryptography.IncrementalHash · assembly System.Security.Cryptography
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
HashLengthInBytes | int | read | o.HashLengthInBytes |
AlgorithmName | HashAlgorithmName | read | o.AlgorithmName |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AppendData | callMethod("AppendData",[p1])callMethod("AppendData",[p1,p2,p3]) | void AppendData(byte[] data)void AppendData(byte[] data, int offset, int count)void AppendData(ReadOnlySpan<byte> data) |
Clone | callMethod("Clone",[]) | IncrementalHash Clone() |
CreateHash | CreateHash(p1) | static IncrementalHash CreateHash(HashAlgorithmName hashAlgorithm) |
CreateHMAC | CreateHMAC(p1,p2) | static IncrementalHash CreateHMAC(HashAlgorithmName hashAlgorithm, byte[] key)static IncrementalHash CreateHMAC(HashAlgorithmName hashAlgorithm, ReadOnlySpan<byte> key) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetCurrentHash | callMethod("GetCurrentHash",[])callMethod("GetCurrentHash",[p1]) | byte[] GetCurrentHash()int GetCurrentHash(Span<byte> destination) |
GetHashAndReset | callMethod("GetHashAndReset",[])callMethod("GetHashAndReset",[p1]) | byte[] GetHashAndReset()int GetHashAndReset(Span<byte> destination) |
TryGetCurrentHash | TryGetCurrentHash(p1) | bool TryGetCurrentHash(Span<byte> destination, out int bytesWritten) |
TryGetHashAndReset | TryGetHashAndReset(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Key | byte[] | read, write | o.Key o.Key = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(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
| Name | Type | Access | In Ring |
|---|---|---|---|
MinSize | int | read | o.MinSize |
MaxSize | int | read | o.MaxSize |
SkipSize | int | read | o.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
| Name | Type | Access | In Ring |
|---|---|---|---|
IsSupported | bool | read · static | o.IsSupported |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AppendData | AppendData(p1) | void AppendData(byte[] data)void AppendData(ReadOnlySpan<byte> data) |
Clone | callMethod("Clone",[]) | Kmac128 Clone() |
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetCurrentHash | callMethod("GetCurrentHash",[p1]) | byte[] GetCurrentHash(int outputLength)void GetCurrentHash(Span<byte> destination) |
GetHashAndReset | callMethod("GetHashAndReset",[p1]) | byte[] GetHashAndReset(int outputLength)void GetHashAndReset(Span<byte> destination) |
HashData | HashData([ :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 = …) |
HashDataAsync | HashDataAsync([ :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
| Name | Type | Access | In Ring |
|---|---|---|---|
IsSupported | bool | read · static | o.IsSupported |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AppendData | AppendData(p1) | void AppendData(byte[] data)void AppendData(ReadOnlySpan<byte> data) |
Clone | callMethod("Clone",[]) | Kmac256 Clone() |
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetCurrentHash | callMethod("GetCurrentHash",[p1]) | byte[] GetCurrentHash(int outputLength)void GetCurrentHash(Span<byte> destination) |
GetHashAndReset | callMethod("GetHashAndReset",[p1]) | byte[] GetHashAndReset(int outputLength)void GetHashAndReset(Span<byte> destination) |
HashData | HashData([ :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 = …) |
HashDataAsync | HashDataAsync([ :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
| Name | Type | Access | In Ring |
|---|---|---|---|
IsSupported | bool | read · static | o.IsSupported |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AppendData | AppendData(p1) | void AppendData(byte[] data)void AppendData(ReadOnlySpan<byte> data) |
Clone | callMethod("Clone",[]) | KmacXof128 Clone() |
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetCurrentHash | callMethod("GetCurrentHash",[p1]) | byte[] GetCurrentHash(int outputLength)void GetCurrentHash(Span<byte> destination) |
GetHashAndReset | callMethod("GetHashAndReset",[p1]) | byte[] GetHashAndReset(int outputLength)void GetHashAndReset(Span<byte> destination) |
HashData | HashData([ :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 = …) |
HashDataAsync | HashDataAsync([ :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
| Name | Type | Access | In Ring |
|---|---|---|---|
IsSupported | bool | read · static | o.IsSupported |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AppendData | AppendData(p1) | void AppendData(byte[] data)void AppendData(ReadOnlySpan<byte> data) |
Clone | callMethod("Clone",[]) | KmacXof256 Clone() |
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetCurrentHash | callMethod("GetCurrentHash",[p1]) | byte[] GetCurrentHash(int outputLength)void GetCurrentHash(Span<byte> destination) |
GetHashAndReset | callMethod("GetHashAndReset",[p1]) | byte[] GetHashAndReset(int outputLength)void GetHashAndReset(Span<byte> destination) |
HashData | HashData([ :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 = …) |
HashDataAsync | HashDataAsync([ :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
| Method | Ring call | .NET overloads |
|---|---|---|
GenerateMask | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(NULL)Create(value)Create([ :algName = … ]) | static MD5 Create()static MD5 Create(string algName) |
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Value | string | read, write | o.Value o.Value = v |
FriendlyName | string | read, write | o.FriendlyName o.FriendlyName = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
FromFriendlyName | FromFriendlyName(p1,p2) | static Oid FromFriendlyName(string friendlyName, OidGroup group) |
FromOidValue | FromOidValue(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.Count |
IsSynchronized | bool | read | o.IsSynchronized |
SyncRoot | object | read | o.SyncRoot |
Indexer
o.Item(int index) → Oid
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Add | Add(p1) | int Add(Oid oid) |
CopyTo | CopyTo(p1,p2) | void CopyTo(Oid[] array, int index) |
GetEnumerator | callMethod("GetEnumerator",[]) | OidEnumerator GetEnumerator() |
OidEnumerator class sealed
System.Security.Cryptography.OidEnumerator · assembly System.Security.Cryptography
Implements: IEnumerator
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Current | Oid | read | o.Current |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
MoveNext | callMethod("MoveNext",[]) | bool MoveNext() |
Reset | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
HashName | string | read, write | o.HashName o.HashName = v |
IterationCount | int | read, write | o.IterationCount o.IterationCount = v |
Salt | byte[] | read, write | o.Salt o.Salt = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CryptDeriveKey | callMethod("CryptDeriveKey",[p1,p2,p3,p4]) | byte[] CryptDeriveKey(string algname, string alghashname, int keySize, byte[] rgbIV) |
GetBytes | callMethod("GetBytes",[p1]) | byte[] GetBytes(int cb) |
Reset | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
EncryptionAlgorithm | PbeEncryptionAlgorithm | read | o.EncryptionAlgorithm |
HashAlgorithm | HashAlgorithmName | read | o.HashAlgorithm |
IterationCount | int | read | o.IterationCount |
PemEncoding class static
System.Security.Cryptography.PemEncoding · assembly System.Security.Cryptography
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Find | Find(p1) | static PemFields Find(ReadOnlySpan<char> pemData) |
GetEncodedSize | callMethod("GetEncodedSize",[p1,p2]) | static int GetEncodedSize(int labelLength, int dataLength) |
TryFind | TryFind(p1) | static bool TryFind(ReadOnlySpan<char> pemData, out PemFields fields) |
TryWrite | TryWrite(p1,p2,p3) | static bool TryWrite(ReadOnlySpan<char> label, ReadOnlySpan<byte> data, Span<char> destination, out int charsWritten) |
Write | Write(p1,p2) | static char[] Write(ReadOnlySpan<char> label, ReadOnlySpan<byte> data) |
WriteString | WriteString(p1,p2) | static string WriteString(ReadOnlySpan<char> label, ReadOnlySpan<byte> data) |
PemFields struct
System.Security.Cryptography.PemFields · assembly System.Security.Cryptography
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Location | Range | read | o.Location |
Label | Range | read | o.Label |
Base64Data | Range | read | o.Base64Data |
DecodedDataLength | int | read | o.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
| Name | Type | Access | In Ring |
|---|---|---|---|
HashName | string | read, write | o.HashName o.HashName = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GenerateMask | callMethod("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
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(NULL)Create(value)Create([ :rngName = … ]) | static RandomNumberGenerator Create()static RandomNumberGenerator Create(string rngName) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
Fill | Fill(p1) | static void Fill(Span<byte> data) |
GetBytes | GetBytes(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) |
GetHexString | GetHexString([ :destination = …, :lowercase = … ])GetHexString([ :stringLength = …, :lowercase = … ]) | static void GetHexString(Span<char> destination, bool lowercase = …)static string GetHexString(int stringLength, bool lowercase = …) |
GetInt32 | GetInt32(value)GetInt32([ :toExclusive = … ])GetInt32([ :fromInclusive = …, :toExclusive = … ]) | static int GetInt32(int fromInclusive, int toExclusive)static int GetInt32(int toExclusive) |
GetItems | GetItems(p1,p2) | static void GetItems<T>(ReadOnlySpan<T> choices, Span<T> destination)static T[] GetItems<T>(ReadOnlySpan<T> choices, int length) |
GetNonZeroBytes | GetNonZeroBytes(p1) | void GetNonZeroBytes(byte[] data)void GetNonZeroBytes(Span<byte> data) |
GetString | GetString(p1,p2) | static string GetString(ReadOnlySpan<char> choices, int length) |
Shuffle | Shuffle(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
| Name | Type | Access | In Ring |
|---|---|---|---|
KeySize | int | read, write | o.getKeySize() o.setKeySize(v) |
EffectiveKeySize | int | read, write | o.EffectiveKeySize o.EffectiveKeySize = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(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
| Name | Type | Access | In Ring |
|---|---|---|---|
HashAlgorithm | HashAlgorithmName | read | o.HashAlgorithm |
IterationCount | int | read, write | o.IterationCount o.IterationCount = v |
Salt | byte[] | read, write | o.Salt o.Salt = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CryptDeriveKey | callMethod("CryptDeriveKey",[p1,p2,p3,p4]) | byte[] CryptDeriveKey(string algname, string alghashname, int keySize, byte[] rgbIV) |
GetBytes | callMethod("GetBytes",[p1]) | byte[] GetBytes(int cb) |
Pbkdf2 | Pbkdf2(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) |
Reset | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
KeyExchangeAlgorithm | string | read | o.getKeyExchangeAlgorithm() |
SignatureAlgorithm | string | read | o.getSignatureAlgorithm() |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(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) |
Decrypt | callMethod("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) |
DecryptValue | callMethod("DecryptValue",[p1]) | byte[] DecryptValue(byte[] rgb) |
Encrypt | callMethod("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) |
EncryptValue | callMethod("EncryptValue",[p1]) | byte[] EncryptValue(byte[] rgb) |
ExportParameters | callMethod("ExportParameters",[p1]) | RSAParameters ExportParameters(bool includePrivateParameters) |
ExportRSAPrivateKey | callMethod("ExportRSAPrivateKey",[]) | byte[] ExportRSAPrivateKey() |
ExportRSAPrivateKeyPem | callMethod("ExportRSAPrivateKeyPem",[]) | string ExportRSAPrivateKeyPem() |
ExportRSAPublicKey | callMethod("ExportRSAPublicKey",[]) | byte[] ExportRSAPublicKey() |
ExportRSAPublicKeyPem | callMethod("ExportRSAPublicKeyPem",[]) | string ExportRSAPublicKeyPem() |
FromXmlString | callMethod("FromXmlString",[p1]) | void FromXmlString(string xmlString) |
GetMaxOutputSize | callMethod("GetMaxOutputSize",[]) | int GetMaxOutputSize() |
ImportEncryptedPkcs8PrivateKey | ImportEncryptedPkcs8PrivateKey(p1,p2) | void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead) |
ImportFromEncryptedPem | ImportFromEncryptedPem(p1,p2) | void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<char> password)void ImportFromEncryptedPem(ReadOnlySpan<char> input, ReadOnlySpan<byte> passwordBytes) |
ImportFromPem | ImportFromPem(p1) | void ImportFromPem(ReadOnlySpan<char> input) |
ImportParameters | ImportParameters(p1) | void ImportParameters(RSAParameters parameters) |
ImportPkcs8PrivateKey | ImportPkcs8PrivateKey(p1) | void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) |
ImportRSAPrivateKey | ImportRSAPrivateKey(p1) | void ImportRSAPrivateKey(ReadOnlySpan<byte> source, out int bytesRead) |
ImportRSAPublicKey | ImportRSAPublicKey(p1) | void ImportRSAPublicKey(ReadOnlySpan<byte> source, out int bytesRead) |
ImportSubjectPublicKeyInfo | ImportSubjectPublicKeyInfo(p1) | void ImportSubjectPublicKeyInfo(ReadOnlySpan<byte> source, out int bytesRead) |
SignData | SignData([ :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) |
SignHash | callMethod("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) |
ToXmlString | callMethod("ToXmlString",[p1]) | string ToXmlString(bool includePrivateParameters) |
TryDecrypt | TryDecrypt(p1,p2,p3) | bool TryDecrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten) |
TryEncrypt | TryEncrypt(p1,p2,p3) | bool TryEncrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten) |
TryExportEncryptedPkcs8PrivateKey | TryExportEncryptedPkcs8PrivateKey(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) |
TryExportPkcs8PrivateKey | TryExportPkcs8PrivateKey(p1) | bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten) |
TryExportRSAPrivateKey | TryExportRSAPrivateKey(p1) | bool TryExportRSAPrivateKey(Span<byte> destination, out int bytesWritten) |
TryExportRSAPrivateKeyPem | TryExportRSAPrivateKeyPem(p1) | bool TryExportRSAPrivateKeyPem(Span<char> destination, out int charsWritten) |
TryExportRSAPublicKey | TryExportRSAPublicKey(p1) | bool TryExportRSAPublicKey(Span<byte> destination, out int bytesWritten) |
TryExportRSAPublicKeyPem | TryExportRSAPublicKeyPem(p1) | bool TryExportRSAPublicKeyPem(Span<char> destination, out int charsWritten) |
TryExportSubjectPublicKeyInfo | TryExportSubjectPublicKeyInfo(p1) | bool TryExportSubjectPublicKeyInfo(Span<byte> destination, out int bytesWritten) |
TrySignData | TrySignData(p1,p2,p3,p4) | bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten) |
TrySignHash | TrySignHash(p1,p2,p3,p4) | bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten) |
VerifyData | VerifyData([ :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) |
VerifyHash | VerifyHash(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
| Name | Type | Access | In Ring |
|---|---|---|---|
LegalKeySizes | KeySizes[] | read | o.getLegalKeySizes() |
Key | CngKey | read | o.Key |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Decrypt | callMethod("Decrypt",[p1,p2]) | byte[] Decrypt(byte[] data, RSAEncryptionPadding padding) |
Encrypt | callMethod("Encrypt",[p1,p2]) | byte[] Encrypt(byte[] data, RSAEncryptionPadding padding) |
ExportEncryptedPkcs8PrivateKey | callMethod("ExportEncryptedPkcs8PrivateKey",[p1,p2]) | byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, PbeParameters pbeParameters)byte[] ExportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, PbeParameters pbeParameters) |
ExportParameters | callMethod("ExportParameters",[p1]) | RSAParameters ExportParameters(bool includePrivateParameters) |
ImportEncryptedPkcs8PrivateKey | ImportEncryptedPkcs8PrivateKey(p1,p2) | void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead) |
ImportParameters | ImportParameters(p1) | void ImportParameters(RSAParameters parameters) |
ImportPkcs8PrivateKey | ImportPkcs8PrivateKey(p1) | void ImportPkcs8PrivateKey(ReadOnlySpan<byte> source, out int bytesRead) |
SignHash | callMethod("SignHash",[p1,p2,p3]) | byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) |
TryDecrypt | TryDecrypt(p1,p2,p3) | bool TryDecrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten) |
TryEncrypt | TryEncrypt(p1,p2,p3) | bool TryEncrypt(ReadOnlySpan<byte> data, Span<byte> destination, RSAEncryptionPadding padding, out int bytesWritten) |
TryExportEncryptedPkcs8PrivateKey | TryExportEncryptedPkcs8PrivateKey(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) |
TryExportPkcs8PrivateKey | TryExportPkcs8PrivateKey(p1) | bool TryExportPkcs8PrivateKey(Span<byte> destination, out int bytesWritten) |
TrySignHash | TrySignHash(p1,p2,p3,p4) | bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten) |
VerifyHash | VerifyHash(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
| Name | Type | Access | In Ring |
|---|---|---|---|
CspKeyContainerInfo | CspKeyContainerInfo | read | o.CspKeyContainerInfo |
KeySize | int | read | o.getKeySize() |
LegalKeySizes | KeySizes[] | read | o.getLegalKeySizes() |
PersistKeyInCsp | bool | read, write | o.PersistKeyInCsp o.PersistKeyInCsp = v |
PublicOnly | bool | read | o.PublicOnly |
KeyExchangeAlgorithm | string | read | o.getKeyExchangeAlgorithm() |
SignatureAlgorithm | string | read | o.getSignatureAlgorithm() |
UseMachineKeyStore | bool | read, write · static | o.UseMachineKeyStore o.UseMachineKeyStore = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Decrypt | callMethod("Decrypt",[p1,p2]) | byte[] Decrypt(byte[] rgb, bool fOAEP)byte[] Decrypt(byte[] data, RSAEncryptionPadding padding) |
DecryptValue | callMethod("DecryptValue",[p1]) | byte[] DecryptValue(byte[] rgb) |
Encrypt | callMethod("Encrypt",[p1,p2]) | byte[] Encrypt(byte[] rgb, bool fOAEP)byte[] Encrypt(byte[] data, RSAEncryptionPadding padding) |
EncryptValue | callMethod("EncryptValue",[p1]) | byte[] EncryptValue(byte[] rgb) |
ExportCspBlob | callMethod("ExportCspBlob",[p1]) | byte[] ExportCspBlob(bool includePrivateParameters) |
ExportParameters | callMethod("ExportParameters",[p1]) | RSAParameters ExportParameters(bool includePrivateParameters) |
ImportCspBlob | ImportCspBlob(p1) | void ImportCspBlob(byte[] keyBlob) |
ImportEncryptedPkcs8PrivateKey | ImportEncryptedPkcs8PrivateKey(p1,p2) | void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<byte> passwordBytes, ReadOnlySpan<byte> source, out int bytesRead)void ImportEncryptedPkcs8PrivateKey(ReadOnlySpan<char> password, ReadOnlySpan<byte> source, out int bytesRead) |
ImportParameters | ImportParameters(p1) | void ImportParameters(RSAParameters parameters) |
SignData | SignData([ :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) |
SignHash | SignHash([ :rgbHash = …, :str = … ])SignHash([ :hash = …, :hashAlgorithm = …, :padding = … ]) | byte[] SignHash(byte[] rgbHash, string str)byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) |
VerifyData | VerifyData([ :buffer = …, :halg = …, :signature = … ]) | bool VerifyData(byte[] buffer, object halg, byte[] signature) |
VerifyHash | VerifyHash([ :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
| Name | Type | Access | In Ring |
|---|---|---|---|
Mode | RSAEncryptionPaddingMode | read | o.Mode |
OaepHashAlgorithm | HashAlgorithmName | read | o.OaepHashAlgorithm |
Pkcs1 | RSAEncryptionPadding | read · static | o.Pkcs1 |
OaepSHA1 | RSAEncryptionPadding | read · static | o.OaepSHA1 |
OaepSHA256 | RSAEncryptionPadding | read · static | o.OaepSHA256 |
OaepSHA384 | RSAEncryptionPadding | read · static | o.OaepSHA384 |
OaepSHA512 | RSAEncryptionPadding | read · static | o.OaepSHA512 |
OaepSHA3_256 | RSAEncryptionPadding | read · static | o.OaepSHA3_256 |
OaepSHA3_384 | RSAEncryptionPadding | read · static | o.OaepSHA3_384 |
OaepSHA3_512 | RSAEncryptionPadding | read · static | o.OaepSHA3_512 |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateOaep | CreateOaep(p1) | static RSAEncryptionPadding CreateOaep(HashAlgorithmName hashAlgorithm) |
Equals | Equals(p1) | bool Equals(object obj)bool Equals(RSAEncryptionPadding other) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
ToString | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
Parameters | string | read, write | o.getParameters() o.setParameters(v) |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
DecryptKeyExchange | callMethod("DecryptKeyExchange",[p1]) | byte[] DecryptKeyExchange(byte[] rgbData) |
SetKey | SetKey(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Parameter | byte[] | read, write | o.Parameter o.Parameter = v |
Parameters | string | read | o.getParameters() |
Rng | RandomNumberGenerator | read, write | o.Rng o.Rng = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateKeyExchange | CreateKeyExchange(value)CreateKeyExchange([ :rgbData = … ])CreateKeyExchange([ :rgbData = …, :symAlgType = … ]) | byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)byte[] CreateKeyExchange(byte[] rgbData) |
SetKey | SetKey(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
| Method | Ring call | .NET overloads |
|---|---|---|
DuplicateKeyHandle | callMethod("DuplicateKeyHandle",[]) | SafeEvpPKeyHandle DuplicateKeyHandle() |
ExportParameters | callMethod("ExportParameters",[p1]) | RSAParameters ExportParameters(bool includePrivateParameters) |
ImportParameters | ImportParameters(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
| Name | Type | Access | In Ring |
|---|---|---|---|
D | byte[] | read, write | o.D o.D = v |
DP | byte[] | read, write | o.DP o.DP = v |
DQ | byte[] | read, write | o.DQ o.DQ = v |
Exponent | byte[] | read, write | o.Exponent o.Exponent = v |
InverseQ | byte[] | read, write | o.InverseQ o.InverseQ = v |
Modulus | byte[] | read, write | o.Modulus o.Modulus = v |
P | byte[] | read, write | o.P o.P = v |
Q | byte[] | read, write | o.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
| Name | Type | Access | In Ring |
|---|---|---|---|
RNG | RandomNumberGenerator | read, write | o.RNG o.RNG = v |
Parameters | string | read, write | o.getParameters() o.setParameters(v) |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
DecryptKeyExchange | callMethod("DecryptKeyExchange",[p1]) | byte[] DecryptKeyExchange(byte[] rgbIn) |
SetKey | SetKey(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Parameters | string | read | o.getParameters() |
Rng | RandomNumberGenerator | read, write | o.Rng o.Rng = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateKeyExchange | CreateKeyExchange(value)CreateKeyExchange([ :rgbData = … ])CreateKeyExchange([ :rgbData = …, :symAlgType = … ]) | byte[] CreateKeyExchange(byte[] rgbData, Type symAlgType)byte[] CreateKeyExchange(byte[] rgbData) |
SetKey | SetKey(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
| Method | Ring call | .NET overloads |
|---|---|---|
SetHashAlgorithm | callMethod("SetHashAlgorithm",[p1]) | void SetHashAlgorithm(string strName) |
SetKey | SetKey(p1) | void SetKey(AsymmetricAlgorithm key) |
VerifySignature | VerifySignature(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
| Method | Ring call | .NET overloads |
|---|---|---|
CreateSignature | callMethod("CreateSignature",[p1]) | byte[] CreateSignature(byte[] rgbHash) |
SetHashAlgorithm | callMethod("SetHashAlgorithm",[p1]) | void SetHashAlgorithm(string strName) |
SetKey | SetKey(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Mode | RSASignaturePaddingMode | read | o.Mode |
Pkcs1 | RSASignaturePadding | read · static | o.Pkcs1 |
Pss | RSASignaturePadding | read · static | o.Pss |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(object obj)bool Equals(RSASignaturePadding other) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
ToString | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
IsInvalid | bool | read | o.getIsInvalid() |
OpenSslVersion | long | read · static | o.OpenSslVersion |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
DuplicateHandle | callMethod("DuplicateHandle",[]) | SafeEvpPKeyHandle DuplicateHandle() |
OpenKeyFromProvider | OpenKeyFromProvider(p1,p2) | static SafeEvpPKeyHandle OpenKeyFromProvider(string providerName, string keyUri) |
OpenPrivateKeyFromEngine | OpenPrivateKeyFromEngine(p1,p2) | static SafeEvpPKeyHandle OpenPrivateKeyFromEngine(string engineName, string keyId) |
OpenPublicKeyFromEngine | OpenPublicKeyFromEngine(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
| Name | Type | Access | In Ring |
|---|---|---|---|
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(NULL)Create(value)Create([ :hashName = … ]) | static SHA1 Create()static SHA1 Create(string hashName) |
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(NULL)Create(value)Create([ :hashName = … ]) | static SHA256 Create()static SHA256 Create(string hashName) |
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(NULL)Create(value)Create([ :hashName = … ]) | static SHA384 Create()static SHA384 Create(string hashName) |
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
IsSupported | bool | read · static | o.IsSupported |
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create() | static SHA3_256 Create() |
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
IsSupported | bool | read · static | o.IsSupported |
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create() | static SHA3_384 Create() |
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
IsSupported | bool | read · static | o.IsSupported |
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create() | static SHA3_512 Create() |
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
HashSizeInBits | int | constant · static | o.HashSizeInBits |
HashSizeInBytes | int | constant · static | o.HashSizeInBytes |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(NULL)Create(value)Create([ :hashName = … ]) | static SHA512 Create()static SHA512 Create(string hashName) |
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
TryHashData | TryHashData(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
| Name | Type | Access | In Ring |
|---|---|---|---|
IsSupported | bool | read · static | o.IsSupported |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AppendData | AppendData(p1) | void AppendData(byte[] data)void AppendData(ReadOnlySpan<byte> data) |
Clone | callMethod("Clone",[]) | Shake128 Clone() |
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetCurrentHash | callMethod("GetCurrentHash",[p1]) | byte[] GetCurrentHash(int outputLength)void GetCurrentHash(Span<byte> destination) |
GetHashAndReset | callMethod("GetHashAndReset",[p1]) | byte[] GetHashAndReset(int outputLength)void GetHashAndReset(Span<byte> destination) |
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
Read | callMethod("Read",[p1]) | byte[] Read(int outputLength)void Read(Span<byte> destination) |
Reset | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
IsSupported | bool | read · static | o.IsSupported |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AppendData | AppendData(p1) | void AppendData(byte[] data)void AppendData(ReadOnlySpan<byte> data) |
Clone | callMethod("Clone",[]) | Shake256 Clone() |
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetCurrentHash | callMethod("GetCurrentHash",[p1]) | byte[] GetCurrentHash(int outputLength)void GetCurrentHash(Span<byte> destination) |
GetHashAndReset | callMethod("GetHashAndReset",[p1]) | byte[] GetHashAndReset(int outputLength)void GetHashAndReset(Span<byte> destination) |
HashData | HashData(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) |
HashDataAsync | HashDataAsync([ :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 = …) |
Read | callMethod("Read",[p1]) | byte[] Read(int outputLength)void Read(Span<byte> destination) |
Reset | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
KeyAlgorithm | string | read, write | o.KeyAlgorithm o.KeyAlgorithm = v |
DigestAlgorithm | string | read, write | o.DigestAlgorithm o.DigestAlgorithm = v |
FormatterAlgorithm | string | read, write | o.FormatterAlgorithm o.FormatterAlgorithm = v |
DeformatterAlgorithm | string | read, write | o.DeformatterAlgorithm o.DeformatterAlgorithm = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateDeformatter | callMethod("CreateDeformatter",[p1]) | AsymmetricSignatureDeformatter CreateDeformatter(AsymmetricAlgorithm key) |
CreateDigest | callMethod("CreateDigest",[]) | HashAlgorithm CreateDigest() |
CreateFormatter | callMethod("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
| Method | Ring call | .NET overloads |
|---|---|---|
DeriveBytes | DeriveBytes(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) |
DeriveKey | callMethod("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) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
SymmetricAlgorithm class abstract
System.Security.Cryptography.SymmetricAlgorithm · assembly System.Security.Cryptography
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
FeedbackSize | int | read, write | o.FeedbackSize o.FeedbackSize = v |
BlockSize | int | read, write | o.BlockSize o.BlockSize = v |
IV | byte[] | read, write | o.IV o.IV = v |
Key | byte[] | read, write | o.Key o.Key = v |
KeySize | int | read, write | o.KeySize o.KeySize = v |
LegalBlockSizes | KeySizes[] | read | o.LegalBlockSizes |
LegalKeySizes | KeySizes[] | read | o.LegalKeySizes |
Mode | CipherMode | read, write | o.Mode o.Mode = v |
Padding | PaddingMode | read, write | o.Padding o.Padding = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Clear | callMethod("Clear",[]) | void Clear() |
Create | Create(NULL)Create(value)Create([ :algName = … ]) | static SymmetricAlgorithm Create()static SymmetricAlgorithm Create(string algName) |
CreateDecryptor | CreateDecryptor(NULL)CreateDecryptor([ :rgbKey = …, :rgbIV = … ]) | ICryptoTransform CreateDecryptor()ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV) |
CreateEncryptor | CreateEncryptor(NULL)CreateEncryptor([ :rgbKey = …, :rgbIV = … ]) | ICryptoTransform CreateEncryptor()ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV) |
DecryptCbc | DecryptCbc([ :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 = …) |
DecryptCfb | DecryptCfb([ :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 = …) |
DecryptEcb | callMethod("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) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
EncryptCbc | EncryptCbc([ :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 = …) |
EncryptCfb | EncryptCfb([ :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 = …) |
EncryptEcb | callMethod("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) |
GenerateIV | callMethod("GenerateIV",[]) | void GenerateIV() |
GenerateKey | callMethod("GenerateKey",[]) | void GenerateKey() |
GetCiphertextLengthCbc | callMethod("GetCiphertextLengthCbc",[p1,p2]) | int GetCiphertextLengthCbc(int plaintextLength, PaddingMode paddingMode = …) |
GetCiphertextLengthCfb | callMethod("GetCiphertextLengthCfb",[p1,p2,p3]) | int GetCiphertextLengthCfb(int plaintextLength, PaddingMode paddingMode = …, int feedbackSizeInBits = …) |
GetCiphertextLengthEcb | GetCiphertextLengthEcb(p1,p2) | int GetCiphertextLengthEcb(int plaintextLength, PaddingMode paddingMode) |
TryDecryptCbc | TryDecryptCbc([ :ciphertext = …, :iv = …, :destination = …, :bytesWritten = …, :paddingMode = … ]) | bool TryDecryptCbc(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, Span<byte> destination, out int bytesWritten, PaddingMode paddingMode = …) |
TryDecryptCfb | TryDecryptCfb([ :ciphertext = …, :iv = …, :destination = …, :bytesWritten = …, :paddingMode = …, :feedbackSizeInBits = … ]) | bool TryDecryptCfb(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, Span<byte> destination, out int bytesWritten, PaddingMode paddingMode = …, int feedbackSizeInBits = …) |
TryDecryptEcb | TryDecryptEcb(p1,p2,p3) | bool TryDecryptEcb(ReadOnlySpan<byte> ciphertext, Span<byte> destination, PaddingMode paddingMode, out int bytesWritten) |
TryEncryptCbc | TryEncryptCbc([ :plaintext = …, :iv = …, :destination = …, :bytesWritten = …, :paddingMode = … ]) | bool TryEncryptCbc(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> iv, Span<byte> destination, out int bytesWritten, PaddingMode paddingMode = …) |
TryEncryptCfb | TryEncryptCfb([ :plaintext = …, :iv = …, :destination = …, :bytesWritten = …, :paddingMode = …, :feedbackSizeInBits = … ]) | bool TryEncryptCfb(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> iv, Span<byte> destination, out int bytesWritten, PaddingMode paddingMode = …, int feedbackSizeInBits = …) |
TryEncryptEcb | TryEncryptEcb(p1,p2,p3) | bool TryEncryptEcb(ReadOnlySpan<byte> plaintext, Span<byte> destination, PaddingMode paddingMode, out int bytesWritten) |
ValidKeySize | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
InputBlockSize | int | read | o.InputBlockSize |
OutputBlockSize | int | read | o.OutputBlockSize |
CanTransformMultipleBlocks | bool | read | o.CanTransformMultipleBlocks |
CanReuseTransform | bool | read | o.CanReuseTransform |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Clear | callMethod("Clear",[]) | void Clear() |
Dispose | callMethod("Dispose",[]) | void Dispose() |
TransformBlock | TransformBlock(p1,p2,p3,p4,p5) | int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset) |
TransformFinalBlock | callMethod("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
| Name | Type | Access | In Ring |
|---|---|---|---|
Key | byte[] | read, write | o.getKey() o.setKey(v) |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Create | Create(NULL)Create(value)Create([ :str = … ]) | static TripleDES Create()static TripleDES Create(string str) |
IsWeakKey | IsWeakKey(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
| Name | Type | Access | In Ring |
|---|---|---|---|
Key | byte[] | read, write | o.getKey() o.setKey(v) |
KeySize | int | read, write | o.getKeySize() o.setKeySize(v) |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateDecryptor | CreateDecryptor(NULL)CreateDecryptor([ :rgbKey = …, :rgbIV = … ]) | ICryptoTransform CreateDecryptor()ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV) |
CreateEncryptor | CreateEncryptor(NULL)CreateEncryptor([ :rgbKey = …, :rgbIV = … ]) | ICryptoTransform CreateEncryptor()ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV) |
GenerateIV | callMethod("GenerateIV",[]) | void GenerateIV() |
GenerateKey | callMethod("GenerateKey",[]) | void GenerateKey() |
Members of the base class are inherited.