@tsonic/dotnet-types
Version:
TypeScript declarations and metadata for .NET 10.0 assemblies
736 lines (679 loc) • 236 kB
TypeScript
// Auto-generated by generatedts on 2025-11-02T09:57:50Z - do not edit by hand.
type int = number & { __brand: "int" };
type uint = number & { __brand: "uint" };
type byte = number & { __brand: "byte" };
type sbyte = number & { __brand: "sbyte" };
type short = number & { __brand: "short" };
type ushort = number & { __brand: "ushort" };
type long = number & { __brand: "long" };
type ulong = number & { __brand: "ulong" };
type float = number & { __brand: "float" };
type double = number & { __brand: "double" };
type decimal = number & { __brand: "decimal" };
declare namespace Microsoft.Win32.SafeHandles {
class SafeNCryptHandle extends Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid implements System.IDisposable {
}
class SafeNCryptKeyHandle extends Microsoft.Win32.SafeHandles.SafeNCryptHandle implements System.IDisposable {
constructor();
constructor(handle: number, parentHandle: System.Runtime.InteropServices.SafeHandle);
}
class SafeNCryptProviderHandle extends Microsoft.Win32.SafeHandles.SafeNCryptHandle implements System.IDisposable {
constructor();
}
class SafeNCryptSecretHandle extends Microsoft.Win32.SafeHandles.SafeNCryptHandle implements System.IDisposable {
constructor();
}
class SafeX509ChainHandle extends Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid implements System.IDisposable {
constructor();
}
}
declare namespace System.Security.Cryptography {
class Aes extends System.Security.Cryptography.SymmetricAlgorithm implements System.IDisposable {
static Create(): System.Security.Cryptography.Aes;
static Create(algorithmName: string): System.Security.Cryptography.Aes;
static GetKeyWrapPaddedLength(plaintextLengthInBytes: int): int;
EncryptKeyWrapPadded(plaintext: ReadonlyArray<byte>): ReadonlyArray<byte>;
EncryptKeyWrapPadded(plaintext: System.ReadOnlySpan<byte>): ReadonlyArray<byte>;
EncryptKeyWrapPadded(plaintext: System.ReadOnlySpan<byte>, destination: System.Span<byte>): void;
DecryptKeyWrapPadded(ciphertext: ReadonlyArray<byte>): ReadonlyArray<byte>;
DecryptKeyWrapPadded(ciphertext: System.ReadOnlySpan<byte>): ReadonlyArray<byte>;
DecryptKeyWrapPadded(ciphertext: System.ReadOnlySpan<byte>, destination: System.Span<byte>): int;
TryDecryptKeyWrapPadded(ciphertext: System.ReadOnlySpan<byte>, destination: System.Span<byte>, bytesWritten: int): boolean;
}
class AesCcm implements System.IDisposable {
constructor(key: System.ReadOnlySpan<byte>);
constructor(key: ReadonlyArray<byte>);
static readonly NonceByteSizes: System.Security.Cryptography.KeySizes;
static readonly TagByteSizes: System.Security.Cryptography.KeySizes;
static readonly IsSupported: boolean;
Encrypt(nonce: ReadonlyArray<byte>, plaintext: ReadonlyArray<byte>, ciphertext: ReadonlyArray<byte>, tag: ReadonlyArray<byte>, associatedData?: ReadonlyArray<byte>): void;
Encrypt(nonce: System.ReadOnlySpan<byte>, plaintext: System.ReadOnlySpan<byte>, ciphertext: System.Span<byte>, tag: System.Span<byte>, associatedData?: System.ReadOnlySpan<byte>): void;
Decrypt(nonce: ReadonlyArray<byte>, ciphertext: ReadonlyArray<byte>, tag: ReadonlyArray<byte>, plaintext: ReadonlyArray<byte>, associatedData?: ReadonlyArray<byte>): void;
Decrypt(nonce: System.ReadOnlySpan<byte>, ciphertext: System.ReadOnlySpan<byte>, tag: System.ReadOnlySpan<byte>, plaintext: System.Span<byte>, associatedData?: System.ReadOnlySpan<byte>): void;
Dispose(): void;
}
class AesCng extends System.Security.Cryptography.Aes implements System.IDisposable {
constructor();
constructor(keyName: string);
constructor(keyName: string, provider: System.Security.Cryptography.CngProvider);
constructor(keyName: string, provider: System.Security.Cryptography.CngProvider, openOptions: System.Security.Cryptography.CngKeyOpenOptions);
constructor(key: System.Security.Cryptography.CngKey);
GenerateKey(): void;
GenerateIV(): void;
CreateEncryptor(rgbKey: ReadonlyArray<byte>, rgbIV: ReadonlyArray<byte>): System.Security.Cryptography.ICryptoTransform;
CreateDecryptor(rgbKey: ReadonlyArray<byte>, rgbIV: ReadonlyArray<byte>): System.Security.Cryptography.ICryptoTransform;
}
class AesCryptoServiceProvider extends System.Security.Cryptography.Aes implements System.IDisposable {
constructor();
FeedbackSize: int;
BlockSize: int;
IV: ReadonlyArray<byte>;
Key: ReadonlyArray<byte>;
KeySize: int;
Mode: System.Security.Cryptography.CipherMode;
Padding: System.Security.Cryptography.PaddingMode;
readonly LegalBlockSizes: ReadonlyArray<System.Security.Cryptography.KeySizes>;
readonly LegalKeySizes: ReadonlyArray<System.Security.Cryptography.KeySizes>;
CreateEncryptor(): System.Security.Cryptography.ICryptoTransform;
CreateEncryptor(rgbKey: ReadonlyArray<byte>, rgbIV: ReadonlyArray<byte>): System.Security.Cryptography.ICryptoTransform;
CreateDecryptor(): System.Security.Cryptography.ICryptoTransform;
CreateDecryptor(rgbKey: ReadonlyArray<byte>, rgbIV: ReadonlyArray<byte>): System.Security.Cryptography.ICryptoTransform;
GenerateIV(): void;
GenerateKey(): void;
}
class AesGcm implements System.IDisposable {
constructor(key: System.ReadOnlySpan<byte>, tagSizeInBytes: int);
constructor(key: ReadonlyArray<byte>, tagSizeInBytes: int);
constructor(key: System.ReadOnlySpan<byte>);
constructor(key: ReadonlyArray<byte>);
static readonly NonceByteSizes: System.Security.Cryptography.KeySizes;
readonly TagSizeInBytes: int | null;
static readonly TagByteSizes: System.Security.Cryptography.KeySizes;
static readonly IsSupported: boolean;
Encrypt(nonce: ReadonlyArray<byte>, plaintext: ReadonlyArray<byte>, ciphertext: ReadonlyArray<byte>, tag: ReadonlyArray<byte>, associatedData?: ReadonlyArray<byte>): void;
Encrypt(nonce: System.ReadOnlySpan<byte>, plaintext: System.ReadOnlySpan<byte>, ciphertext: System.Span<byte>, tag: System.Span<byte>, associatedData?: System.ReadOnlySpan<byte>): void;
Decrypt(nonce: ReadonlyArray<byte>, ciphertext: ReadonlyArray<byte>, tag: ReadonlyArray<byte>, plaintext: ReadonlyArray<byte>, associatedData?: ReadonlyArray<byte>): void;
Decrypt(nonce: System.ReadOnlySpan<byte>, ciphertext: System.ReadOnlySpan<byte>, tag: System.ReadOnlySpan<byte>, plaintext: System.Span<byte>, associatedData?: System.ReadOnlySpan<byte>): void;
Dispose(): void;
}
class AesManaged extends System.Security.Cryptography.Aes implements System.IDisposable {
constructor();
FeedbackSize: int;
BlockSize: int;
IV: ReadonlyArray<byte>;
Key: ReadonlyArray<byte>;
KeySize: int;
Mode: System.Security.Cryptography.CipherMode;
Padding: System.Security.Cryptography.PaddingMode;
readonly LegalBlockSizes: ReadonlyArray<System.Security.Cryptography.KeySizes>;
readonly LegalKeySizes: ReadonlyArray<System.Security.Cryptography.KeySizes>;
CreateEncryptor(): System.Security.Cryptography.ICryptoTransform;
CreateEncryptor(rgbKey: ReadonlyArray<byte>, rgbIV: ReadonlyArray<byte>): System.Security.Cryptography.ICryptoTransform;
CreateDecryptor(): System.Security.Cryptography.ICryptoTransform;
CreateDecryptor(rgbKey: ReadonlyArray<byte>, rgbIV: ReadonlyArray<byte>): System.Security.Cryptography.ICryptoTransform;
GenerateIV(): void;
GenerateKey(): void;
}
class AsnEncodedData {
constructor(rawData: ReadonlyArray<byte>);
constructor(rawData: System.ReadOnlySpan<byte>);
constructor(asnEncodedData: System.Security.Cryptography.AsnEncodedData);
constructor(oid: System.Security.Cryptography.Oid, rawData: ReadonlyArray<byte>);
constructor(oid: string, rawData: ReadonlyArray<byte>);
constructor(oid: System.Security.Cryptography.Oid, rawData: System.ReadOnlySpan<byte>);
constructor(oid: string, rawData: System.ReadOnlySpan<byte>);
Oid: System.Security.Cryptography.Oid;
RawData: ReadonlyArray<byte>;
CopyFrom(asnEncodedData: System.Security.Cryptography.AsnEncodedData): void;
Format(multiLine: boolean): string;
}
class AsnEncodedDataCollection implements System.Collections.ICollection, System.Collections.IEnumerable {
constructor();
constructor(asnEncodedData: System.Security.Cryptography.AsnEncodedData);
readonly Item: System.Security.Cryptography.AsnEncodedData;
readonly Count: int;
readonly IsSynchronized: boolean;
readonly SyncRoot: any;
Add(asnEncodedData: System.Security.Cryptography.AsnEncodedData): int;
Remove(asnEncodedData: System.Security.Cryptography.AsnEncodedData): void;
GetEnumerator(): System.Security.Cryptography.AsnEncodedDataEnumerator;
CopyTo(array: ReadonlyArray<System.Security.Cryptography.AsnEncodedData>, index: int): void;
}
class AsnEncodedDataEnumerator implements System.Collections.IEnumerator {
readonly Current: System.Security.Cryptography.AsnEncodedData;
MoveNext(): boolean;
Reset(): void;
}
class AsymmetricAlgorithm implements System.IDisposable {
KeySize: int;
readonly LegalKeySizes: ReadonlyArray<System.Security.Cryptography.KeySizes>;
readonly SignatureAlgorithm: string;
readonly KeyExchangeAlgorithm: string;
static Create(): System.Security.Cryptography.AsymmetricAlgorithm;
static Create(algName: string): System.Security.Cryptography.AsymmetricAlgorithm;
FromXmlString(xmlString: string): void;
ToXmlString(includePrivateParameters: boolean): string;
Clear(): void;
Dispose(): void;
ImportEncryptedPkcs8PrivateKey(passwordBytes: System.ReadOnlySpan<byte>, source: System.ReadOnlySpan<byte>, bytesRead: int): void;
ImportEncryptedPkcs8PrivateKey(password: System.ReadOnlySpan<number>, source: System.ReadOnlySpan<byte>, bytesRead: int): void;
ImportPkcs8PrivateKey(source: System.ReadOnlySpan<byte>, bytesRead: int): void;
ImportSubjectPublicKeyInfo(source: System.ReadOnlySpan<byte>, bytesRead: int): void;
ExportEncryptedPkcs8PrivateKey(passwordBytes: System.ReadOnlySpan<byte>, pbeParameters: System.Security.Cryptography.PbeParameters): ReadonlyArray<byte>;
ExportEncryptedPkcs8PrivateKey(password: System.ReadOnlySpan<number>, pbeParameters: System.Security.Cryptography.PbeParameters): ReadonlyArray<byte>;
ExportPkcs8PrivateKey(): ReadonlyArray<byte>;
ExportSubjectPublicKeyInfo(): ReadonlyArray<byte>;
TryExportEncryptedPkcs8PrivateKey(passwordBytes: System.ReadOnlySpan<byte>, pbeParameters: System.Security.Cryptography.PbeParameters, destination: System.Span<byte>, bytesWritten: int): boolean;
TryExportEncryptedPkcs8PrivateKey(password: System.ReadOnlySpan<number>, pbeParameters: System.Security.Cryptography.PbeParameters, destination: System.Span<byte>, bytesWritten: int): boolean;
TryExportPkcs8PrivateKey(destination: System.Span<byte>, bytesWritten: int): boolean;
TryExportSubjectPublicKeyInfo(destination: System.Span<byte>, bytesWritten: int): boolean;
ImportFromEncryptedPem(input: System.ReadOnlySpan<number>, password: System.ReadOnlySpan<number>): void;
ImportFromEncryptedPem(input: System.ReadOnlySpan<number>, passwordBytes: System.ReadOnlySpan<byte>): void;
ImportFromPem(input: System.ReadOnlySpan<number>): void;
ExportPkcs8PrivateKeyPem(): string;
ExportEncryptedPkcs8PrivateKeyPem(password: System.ReadOnlySpan<number>, pbeParameters: System.Security.Cryptography.PbeParameters): string;
ExportEncryptedPkcs8PrivateKeyPem(passwordBytes: System.ReadOnlySpan<byte>, pbeParameters: System.Security.Cryptography.PbeParameters): string;
ExportSubjectPublicKeyInfoPem(): string;
TryExportSubjectPublicKeyInfoPem(destination: System.Span<number>, charsWritten: int): boolean;
TryExportPkcs8PrivateKeyPem(destination: System.Span<number>, charsWritten: int): boolean;
TryExportEncryptedPkcs8PrivateKeyPem(password: System.ReadOnlySpan<number>, pbeParameters: System.Security.Cryptography.PbeParameters, destination: System.Span<number>, charsWritten: int): boolean;
TryExportEncryptedPkcs8PrivateKeyPem(passwordBytes: System.ReadOnlySpan<byte>, pbeParameters: System.Security.Cryptography.PbeParameters, destination: System.Span<number>, charsWritten: int): boolean;
}
class AsymmetricKeyExchangeDeformatter {
Parameters: string;
SetKey(key: System.Security.Cryptography.AsymmetricAlgorithm): void;
DecryptKeyExchange(rgb: ReadonlyArray<byte>): ReadonlyArray<byte>;
}
class AsymmetricKeyExchangeFormatter {
readonly Parameters: string;
SetKey(key: System.Security.Cryptography.AsymmetricAlgorithm): void;
CreateKeyExchange(data: ReadonlyArray<byte>): ReadonlyArray<byte>;
CreateKeyExchange(data: ReadonlyArray<byte>, symAlgType: System.Type): ReadonlyArray<byte>;
}
class AsymmetricSignatureDeformatter {
SetKey(key: System.Security.Cryptography.AsymmetricAlgorithm): void;
SetHashAlgorithm(strName: string): void;
VerifySignature(hash: System.Security.Cryptography.HashAlgorithm, rgbSignature: ReadonlyArray<byte>): boolean;
VerifySignature(rgbHash: ReadonlyArray<byte>, rgbSignature: ReadonlyArray<byte>): boolean;
}
class AsymmetricSignatureFormatter {
SetKey(key: System.Security.Cryptography.AsymmetricAlgorithm): void;
SetHashAlgorithm(strName: string): void;
CreateSignature(hash: System.Security.Cryptography.HashAlgorithm): ReadonlyArray<byte>;
CreateSignature(rgbHash: ReadonlyArray<byte>): ReadonlyArray<byte>;
}
class AuthenticationTagMismatchException extends System.Security.Cryptography.CryptographicException implements System.Runtime.Serialization.ISerializable {
constructor();
constructor(message: string);
constructor(message: string, inner: System.Exception);
}
class ChaCha20Poly1305 implements System.IDisposable {
constructor(key: System.ReadOnlySpan<byte>);
constructor(key: ReadonlyArray<byte>);
static readonly IsSupported: boolean;
Encrypt(nonce: ReadonlyArray<byte>, plaintext: ReadonlyArray<byte>, ciphertext: ReadonlyArray<byte>, tag: ReadonlyArray<byte>, associatedData?: ReadonlyArray<byte>): void;
Encrypt(nonce: System.ReadOnlySpan<byte>, plaintext: System.ReadOnlySpan<byte>, ciphertext: System.Span<byte>, tag: System.Span<byte>, associatedData?: System.ReadOnlySpan<byte>): void;
Decrypt(nonce: ReadonlyArray<byte>, ciphertext: ReadonlyArray<byte>, tag: ReadonlyArray<byte>, plaintext: ReadonlyArray<byte>, associatedData?: ReadonlyArray<byte>): void;
Decrypt(nonce: System.ReadOnlySpan<byte>, ciphertext: System.ReadOnlySpan<byte>, tag: System.ReadOnlySpan<byte>, plaintext: System.Span<byte>, associatedData?: System.ReadOnlySpan<byte>): void;
Dispose(): void;
}
enum CipherMode {
CBC = 1,
ECB = 2,
OFB = 3,
CFB = 4,
CTS = 5
}
class CngAlgorithm implements System.IEquatable<System.Security.Cryptography.CngAlgorithm> {
constructor(algorithm: string);
readonly Algorithm: string;
static readonly Rsa: System.Security.Cryptography.CngAlgorithm;
static readonly ECDiffieHellman: System.Security.Cryptography.CngAlgorithm;
static readonly ECDiffieHellmanP256: System.Security.Cryptography.CngAlgorithm;
static readonly ECDiffieHellmanP384: System.Security.Cryptography.CngAlgorithm;
static readonly ECDiffieHellmanP521: System.Security.Cryptography.CngAlgorithm;
static readonly ECDsa: System.Security.Cryptography.CngAlgorithm;
static readonly ECDsaP256: System.Security.Cryptography.CngAlgorithm;
static readonly ECDsaP384: System.Security.Cryptography.CngAlgorithm;
static readonly ECDsaP521: System.Security.Cryptography.CngAlgorithm;
static readonly MD5: System.Security.Cryptography.CngAlgorithm;
static readonly Sha1: System.Security.Cryptography.CngAlgorithm;
static readonly Sha256: System.Security.Cryptography.CngAlgorithm;
static readonly Sha384: System.Security.Cryptography.CngAlgorithm;
static readonly Sha512: System.Security.Cryptography.CngAlgorithm;
static readonly MLDsa: System.Security.Cryptography.CngAlgorithm;
static readonly MLKem: System.Security.Cryptography.CngAlgorithm;
static readonly SlhDsa: System.Security.Cryptography.CngAlgorithm;
}
class CngAlgorithmGroup implements System.IEquatable<System.Security.Cryptography.CngAlgorithmGroup> {
constructor(algorithmGroup: string);
readonly AlgorithmGroup: string;
static readonly DiffieHellman: System.Security.Cryptography.CngAlgorithmGroup;
static readonly Dsa: System.Security.Cryptography.CngAlgorithmGroup;
static readonly ECDiffieHellman: System.Security.Cryptography.CngAlgorithmGroup;
static readonly ECDsa: System.Security.Cryptography.CngAlgorithmGroup;
static readonly Rsa: System.Security.Cryptography.CngAlgorithmGroup;
static readonly MLDsa: System.Security.Cryptography.CngAlgorithmGroup;
static readonly MLKem: System.Security.Cryptography.CngAlgorithmGroup;
static readonly SlhDsa: System.Security.Cryptography.CngAlgorithmGroup;
}
enum CngExportPolicies {
None = 0,
AllowExport = 1,
AllowPlaintextExport = 2,
AllowArchiving = 4,
AllowPlaintextArchiving = 8
}
class CngKey implements System.IDisposable {
readonly Algorithm: System.Security.Cryptography.CngAlgorithm;
readonly AlgorithmGroup: System.Security.Cryptography.CngAlgorithmGroup;
readonly ExportPolicy: System.Security.Cryptography.CngExportPolicies;
readonly Handle: Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle;
readonly IsEphemeral: boolean;
readonly IsMachineKey: boolean;
readonly KeyName: string;
readonly KeySize: int;
readonly KeyUsage: System.Security.Cryptography.CngKeyUsages;
ParentWindowHandle: number;
readonly Provider: System.Security.Cryptography.CngProvider;
readonly ProviderHandle: Microsoft.Win32.SafeHandles.SafeNCryptProviderHandle;
readonly UIPolicy: System.Security.Cryptography.CngUIPolicy;
readonly UniqueName: string;
Delete(): void;
Dispose(): void;
Export(format: System.Security.Cryptography.CngKeyBlobFormat): ReadonlyArray<byte>;
GetProperty(name: string, options: System.Security.Cryptography.CngPropertyOptions): System.Security.Cryptography.CngProperty;
HasProperty(name: string, options: System.Security.Cryptography.CngPropertyOptions): boolean;
SetProperty(property: System.Security.Cryptography.CngProperty): void;
static Create(algorithm: System.Security.Cryptography.CngAlgorithm): System.Security.Cryptography.CngKey;
static Create(algorithm: System.Security.Cryptography.CngAlgorithm, keyName: string): System.Security.Cryptography.CngKey;
static Create(algorithm: System.Security.Cryptography.CngAlgorithm, keyName: string, creationParameters: System.Security.Cryptography.CngKeyCreationParameters): System.Security.Cryptography.CngKey;
static Exists(keyName: string): boolean;
static Exists(keyName: string, provider: System.Security.Cryptography.CngProvider): boolean;
static Exists(keyName: string, provider: System.Security.Cryptography.CngProvider, options: System.Security.Cryptography.CngKeyOpenOptions): boolean;
static Import(keyBlob: ReadonlyArray<byte>, format: System.Security.Cryptography.CngKeyBlobFormat): System.Security.Cryptography.CngKey;
static Import(keyBlob: ReadonlyArray<byte>, format: System.Security.Cryptography.CngKeyBlobFormat, provider: System.Security.Cryptography.CngProvider): System.Security.Cryptography.CngKey;
static Open(keyHandle: Microsoft.Win32.SafeHandles.SafeNCryptKeyHandle, keyHandleOpenOptions: System.Security.Cryptography.CngKeyHandleOpenOptions): System.Security.Cryptography.CngKey;
static Open(keyName: string): System.Security.Cryptography.CngKey;
static Open(keyName: string, provider: System.Security.Cryptography.CngProvider): System.Security.Cryptography.CngKey;
static Open(keyName: string, provider: System.Security.Cryptography.CngProvider, openOptions: System.Security.Cryptography.CngKeyOpenOptions): System.Security.Cryptography.CngKey;
}
class CngKeyBlobFormat implements System.IEquatable<System.Security.Cryptography.CngKeyBlobFormat> {
constructor(format: string);
readonly Format: string;
static readonly EccPrivateBlob: System.Security.Cryptography.CngKeyBlobFormat;
static readonly EccPublicBlob: System.Security.Cryptography.CngKeyBlobFormat;
static readonly EccFullPrivateBlob: System.Security.Cryptography.CngKeyBlobFormat;
static readonly EccFullPublicBlob: System.Security.Cryptography.CngKeyBlobFormat;
static readonly GenericPrivateBlob: System.Security.Cryptography.CngKeyBlobFormat;
static readonly GenericPublicBlob: System.Security.Cryptography.CngKeyBlobFormat;
static readonly PQDsaPublicBlob: System.Security.Cryptography.CngKeyBlobFormat;
static readonly PQDsaPrivateBlob: System.Security.Cryptography.CngKeyBlobFormat;
static readonly PQDsaPrivateSeedBlob: System.Security.Cryptography.CngKeyBlobFormat;
static readonly MLKemPublicBlob: System.Security.Cryptography.CngKeyBlobFormat;
static readonly MLKemPrivateBlob: System.Security.Cryptography.CngKeyBlobFormat;
static readonly MLKemPrivateSeedBlob: System.Security.Cryptography.CngKeyBlobFormat;
static readonly OpaqueTransportBlob: System.Security.Cryptography.CngKeyBlobFormat;
static readonly Pkcs8PrivateBlob: System.Security.Cryptography.CngKeyBlobFormat;
}
enum CngKeyCreationOptions {
None = 0,
MachineKey = 32,
OverwriteExistingKey = 128,
PreferVbs = 65536,
RequireVbs = 131072,
UsePerBootKey = 262144
}
class CngKeyCreationParameters {
constructor();
ExportPolicy: System.Security.Cryptography.CngExportPolicies | null;
KeyCreationOptions: System.Security.Cryptography.CngKeyCreationOptions;
KeyUsage: System.Security.Cryptography.CngKeyUsages | null;
readonly Parameters: System.Security.Cryptography.CngPropertyCollection;
ParentWindowHandle: number;
Provider: System.Security.Cryptography.CngProvider;
UIPolicy: System.Security.Cryptography.CngUIPolicy;
}
enum CngKeyHandleOpenOptions {
None = 0,
EphemeralKey = 1
}
enum CngKeyOpenOptions {
None = 0,
None = 0,
MachineKey = 32,
Silent = 64
}
enum CngKeyUsages {
None = 0,
Decryption = 1,
Signing = 2,
KeyAgreement = 4,
AllUsages = 16777215
}
class CngProperty implements System.IEquatable<System.Security.Cryptography.CngProperty> {
constructor(name: string, value: ReadonlyArray<byte>, options: System.Security.Cryptography.CngPropertyOptions);
Name: string;
readonly Options: System.Security.Cryptography.CngPropertyOptions;
GetValue(): ReadonlyArray<byte>;
}
class CngPropertyCollection extends System.Collections.ObjectModel.Collection<System.Security.Cryptography.CngProperty> implements System.Collections.Generic.IList<System.Security.Cryptography.CngProperty>, System.Collections.Generic.ICollection<System.Security.Cryptography.CngProperty>, ReadonlyArray<System.Security.Cryptography.CngProperty>, System.Collections.IEnumerable, System.Collections.IList, System.Collections.ICollection, ReadonlyArray<System.Security.Cryptography.CngProperty>, ReadonlyArray<System.Security.Cryptography.CngProperty> {
constructor();
}
enum CngPropertyOptions {
None = 0,
CustomProperty = 1073741824,
Persist = -2147483648
}
class CngProvider implements System.IEquatable<System.Security.Cryptography.CngProvider> {
constructor(provider: string);
readonly Provider: string;
static readonly MicrosoftPlatformCryptoProvider: System.Security.Cryptography.CngProvider;
static readonly MicrosoftSmartCardKeyStorageProvider: System.Security.Cryptography.CngProvider;
static readonly MicrosoftSoftwareKeyStorageProvider: System.Security.Cryptography.CngProvider;
}
class CngUIPolicy {
constructor(protectionLevel: System.Security.Cryptography.CngUIProtectionLevels);
constructor(protectionLevel: System.Security.Cryptography.CngUIProtectionLevels, friendlyName: string);
constructor(protectionLevel: System.Security.Cryptography.CngUIProtectionLevels, friendlyName: string, description: string);
constructor(protectionLevel: System.Security.Cryptography.CngUIProtectionLevels, friendlyName: string, description: string, useContext: string);
constructor(protectionLevel: System.Security.Cryptography.CngUIProtectionLevels, friendlyName: string, description: string, useContext: string, creationTitle: string);
readonly ProtectionLevel: System.Security.Cryptography.CngUIProtectionLevels;
readonly FriendlyName: string;
readonly Description: string;
readonly UseContext: string;
readonly CreationTitle: string;
}
enum CngUIProtectionLevels {
None = 0,
ProtectKey = 1,
ForceHighProtection = 2
}
class CompositeMLDsa implements System.IDisposable {
static readonly IsSupported: boolean;
readonly Algorithm: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static IsAlgorithmSupported(algorithm: System.Security.Cryptography.CompositeMLDsaAlgorithm): boolean;
SignData(data: ReadonlyArray<byte>, context?: ReadonlyArray<byte>): ReadonlyArray<byte>;
SignData(data: System.ReadOnlySpan<byte>, destination: System.Span<byte>, context?: System.ReadOnlySpan<byte>): int;
VerifyData(data: ReadonlyArray<byte>, signature: ReadonlyArray<byte>, context?: ReadonlyArray<byte>): boolean;
VerifyData(data: System.ReadOnlySpan<byte>, signature: System.ReadOnlySpan<byte>, context?: System.ReadOnlySpan<byte>): boolean;
static GenerateKey(algorithm: System.Security.Cryptography.CompositeMLDsaAlgorithm): System.Security.Cryptography.CompositeMLDsa;
static ImportFromEncryptedPem(source: string, password: string): System.Security.Cryptography.CompositeMLDsa;
static ImportFromEncryptedPem(source: System.ReadOnlySpan<number>, password: System.ReadOnlySpan<number>): System.Security.Cryptography.CompositeMLDsa;
static ImportFromEncryptedPem(source: string, passwordBytes: ReadonlyArray<byte>): System.Security.Cryptography.CompositeMLDsa;
static ImportFromEncryptedPem(source: System.ReadOnlySpan<number>, passwordBytes: System.ReadOnlySpan<byte>): System.Security.Cryptography.CompositeMLDsa;
static ImportFromPem(source: string): System.Security.Cryptography.CompositeMLDsa;
static ImportFromPem(source: System.ReadOnlySpan<number>): System.Security.Cryptography.CompositeMLDsa;
static ImportSubjectPublicKeyInfo(source: ReadonlyArray<byte>): System.Security.Cryptography.CompositeMLDsa;
static ImportSubjectPublicKeyInfo(source: System.ReadOnlySpan<byte>): System.Security.Cryptography.CompositeMLDsa;
static ImportEncryptedPkcs8PrivateKey(password: string, source: ReadonlyArray<byte>): System.Security.Cryptography.CompositeMLDsa;
static ImportEncryptedPkcs8PrivateKey(password: System.ReadOnlySpan<number>, source: System.ReadOnlySpan<byte>): System.Security.Cryptography.CompositeMLDsa;
static ImportEncryptedPkcs8PrivateKey(passwordBytes: System.ReadOnlySpan<byte>, source: System.ReadOnlySpan<byte>): System.Security.Cryptography.CompositeMLDsa;
static ImportPkcs8PrivateKey(source: ReadonlyArray<byte>): System.Security.Cryptography.CompositeMLDsa;
static ImportPkcs8PrivateKey(source: System.ReadOnlySpan<byte>): System.Security.Cryptography.CompositeMLDsa;
static ImportCompositeMLDsaPublicKey(algorithm: System.Security.Cryptography.CompositeMLDsaAlgorithm, source: ReadonlyArray<byte>): System.Security.Cryptography.CompositeMLDsa;
static ImportCompositeMLDsaPublicKey(algorithm: System.Security.Cryptography.CompositeMLDsaAlgorithm, source: System.ReadOnlySpan<byte>): System.Security.Cryptography.CompositeMLDsa;
static ImportCompositeMLDsaPrivateKey(algorithm: System.Security.Cryptography.CompositeMLDsaAlgorithm, source: ReadonlyArray<byte>): System.Security.Cryptography.CompositeMLDsa;
static ImportCompositeMLDsaPrivateKey(algorithm: System.Security.Cryptography.CompositeMLDsaAlgorithm, source: System.ReadOnlySpan<byte>): System.Security.Cryptography.CompositeMLDsa;
ExportEncryptedPkcs8PrivateKeyPem(password: string, pbeParameters: System.Security.Cryptography.PbeParameters): string;
ExportEncryptedPkcs8PrivateKeyPem(password: System.ReadOnlySpan<number>, pbeParameters: System.Security.Cryptography.PbeParameters): string;
ExportEncryptedPkcs8PrivateKeyPem(passwordBytes: System.ReadOnlySpan<byte>, pbeParameters: System.Security.Cryptography.PbeParameters): string;
ExportEncryptedPkcs8PrivateKey(password: string, pbeParameters: System.Security.Cryptography.PbeParameters): ReadonlyArray<byte>;
ExportEncryptedPkcs8PrivateKey(passwordBytes: System.ReadOnlySpan<byte>, pbeParameters: System.Security.Cryptography.PbeParameters): ReadonlyArray<byte>;
ExportEncryptedPkcs8PrivateKey(password: System.ReadOnlySpan<number>, pbeParameters: System.Security.Cryptography.PbeParameters): ReadonlyArray<byte>;
TryExportEncryptedPkcs8PrivateKey(password: string, pbeParameters: System.Security.Cryptography.PbeParameters, destination: System.Span<byte>, bytesWritten: int): boolean;
TryExportEncryptedPkcs8PrivateKey(password: System.ReadOnlySpan<number>, pbeParameters: System.Security.Cryptography.PbeParameters, destination: System.Span<byte>, bytesWritten: int): boolean;
TryExportEncryptedPkcs8PrivateKey(passwordBytes: System.ReadOnlySpan<byte>, pbeParameters: System.Security.Cryptography.PbeParameters, destination: System.Span<byte>, bytesWritten: int): boolean;
ExportPkcs8PrivateKeyPem(): string;
ExportPkcs8PrivateKey(): ReadonlyArray<byte>;
TryExportPkcs8PrivateKey(destination: System.Span<byte>, bytesWritten: int): boolean;
ExportSubjectPublicKeyInfoPem(): string;
ExportSubjectPublicKeyInfo(): ReadonlyArray<byte>;
TryExportSubjectPublicKeyInfo(destination: System.Span<byte>, bytesWritten: int): boolean;
ExportCompositeMLDsaPublicKey(): ReadonlyArray<byte>;
ExportCompositeMLDsaPublicKey(destination: System.Span<byte>): int;
TryExportCompositeMLDsaPublicKey(destination: System.Span<byte>, bytesWritten: int): boolean;
ExportCompositeMLDsaPrivateKey(): ReadonlyArray<byte>;
ExportCompositeMLDsaPrivateKey(destination: System.Span<byte>): int;
TryExportCompositeMLDsaPrivateKey(destination: System.Span<byte>, bytesWritten: int): boolean;
Dispose(): void;
}
class CompositeMLDsaAlgorithm implements System.IEquatable<System.Security.Cryptography.CompositeMLDsaAlgorithm> {
readonly Name: string;
readonly MaxSignatureSizeInBytes: int;
static readonly MLDsa44WithRSA2048Pss: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa44WithRSA2048Pkcs15: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa44WithEd25519: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa44WithECDsaP256: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa65WithRSA3072Pss: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa65WithRSA3072Pkcs15: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa65WithRSA4096Pss: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa65WithRSA4096Pkcs15: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa65WithECDsaP256: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa65WithECDsaP384: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa65WithECDsaBrainpoolP256r1: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa65WithEd25519: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa87WithECDsaP384: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa87WithECDsaBrainpoolP384r1: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa87WithEd448: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa87WithRSA3072Pss: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa87WithRSA4096Pss: System.Security.Cryptography.CompositeMLDsaAlgorithm;
static readonly MLDsa87WithECDsaP521: System.Security.Cryptography.CompositeMLDsaAlgorithm;
}
class CompositeMLDsaCng extends System.Security.Cryptography.CompositeMLDsa implements System.IDisposable {
constructor(key: System.Security.Cryptography.CngKey);
GetKey(): System.Security.Cryptography.CngKey;
}
class CryptoConfig {
constructor();
static readonly AllowOnlyFipsAlgorithms: boolean;
static AddAlgorithm(algorithm: System.Type, ...names: ReadonlyArray<string>): void;
static CreateFromName(name: string, ...args: ReadonlyArray<any>): any;
static CreateFromName(name: string): any;
static AddOID(oid: string, ...names: ReadonlyArray<string>): void;
static MapNameToOID(name: string): string;
static EncodeOID(str: string): ReadonlyArray<byte>;
}
class CryptographicOperations {
static FixedTimeEquals(left: System.ReadOnlySpan<byte>, right: System.ReadOnlySpan<byte>): boolean;
static ZeroMemory(buffer: System.Span<byte>): void;
static HashData(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, source: ReadonlyArray<byte>): ReadonlyArray<byte>;
static HashData(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, source: System.ReadOnlySpan<byte>): ReadonlyArray<byte>;
static HashData(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, source: System.ReadOnlySpan<byte>, destination: System.Span<byte>): int;
static TryHashData(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, source: System.ReadOnlySpan<byte>, destination: System.Span<byte>, bytesWritten: int): boolean;
static HashData(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, source: System.IO.Stream): ReadonlyArray<byte>;
static HashData(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, source: System.IO.Stream, destination: System.Span<byte>): int;
static HashDataAsync(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, source: System.IO.Stream, destination: System.Memory<byte>, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask<int>;
static HashDataAsync(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, source: System.IO.Stream, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask<ReadonlyArray<byte>>;
static HmacData(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, key: ReadonlyArray<byte>, source: ReadonlyArray<byte>): ReadonlyArray<byte>;
static HmacData(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, key: System.ReadOnlySpan<byte>, source: System.ReadOnlySpan<byte>): ReadonlyArray<byte>;
static HmacData(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, key: System.ReadOnlySpan<byte>, source: System.ReadOnlySpan<byte>, destination: System.Span<byte>): int;
static TryHmacData(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, key: System.ReadOnlySpan<byte>, source: System.ReadOnlySpan<byte>, destination: System.Span<byte>, bytesWritten: int): boolean;
static HmacData(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, key: ReadonlyArray<byte>, source: System.IO.Stream): ReadonlyArray<byte>;
static HmacData(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, key: System.ReadOnlySpan<byte>, source: System.IO.Stream): ReadonlyArray<byte>;
static HmacData(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, key: System.ReadOnlySpan<byte>, source: System.IO.Stream, destination: System.Span<byte>): int;
static HmacDataAsync(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, key: ReadonlyArray<byte>, source: System.IO.Stream, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask<ReadonlyArray<byte>>;
static HmacDataAsync(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, key: System.ReadOnlyMemory<byte>, source: System.IO.Stream, destination: System.Memory<byte>, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask<int>;
static HmacDataAsync(hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, key: System.ReadOnlyMemory<byte>, source: System.IO.Stream, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask<ReadonlyArray<byte>>;
}
class CryptographicUnexpectedOperationException extends System.Security.Cryptography.CryptographicException implements System.Runtime.Serialization.ISerializable {
constructor();
constructor(message: string);
constructor(message: string, inner: System.Exception);
constructor(format: string, insert: string);
}
class CryptoStream extends System.IO.Stream implements System.IDisposable, System.IAsyncDisposable {
constructor(stream: System.IO.Stream, transform: System.Security.Cryptography.ICryptoTransform, mode: System.Security.Cryptography.CryptoStreamMode);
constructor(stream: System.IO.Stream, transform: System.Security.Cryptography.ICryptoTransform, mode: System.Security.Cryptography.CryptoStreamMode, leaveOpen: boolean);
readonly CanRead: boolean;
readonly CanSeek: boolean;
readonly CanWrite: boolean;
readonly Length: long;
Position: long;
readonly HasFlushedFinalBlock: boolean;
FlushFinalBlock(): void;
FlushFinalBlockAsync(cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask;
Flush(): void;
FlushAsync(cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
Seek(offset: long, origin: System.IO.SeekOrigin): long;
SetLength(value: long): void;
ReadAsync(buffer: ReadonlyArray<byte>, offset: int, count: int, cancellationToken: System.Threading.CancellationToken): Promise<int>;
ReadAsync(buffer: System.Memory<byte>, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask<int>;
BeginRead(buffer: ReadonlyArray<byte>, offset: int, count: int, callback: System.AsyncCallback, state: any): System.IAsyncResult;
EndRead(asyncResult: System.IAsyncResult): int;
ReadByte(): int;
WriteByte(value: byte): void;
Read(buffer: ReadonlyArray<byte>, offset: int, count: int): int;
WriteAsync(buffer: ReadonlyArray<byte>, offset: int, count: int, cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
WriteAsync(buffer: System.ReadOnlyMemory<byte>, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask;
BeginWrite(buffer: ReadonlyArray<byte>, offset: int, count: int, callback: System.AsyncCallback, state: any): System.IAsyncResult;
EndWrite(asyncResult: System.IAsyncResult): void;
Write(buffer: ReadonlyArray<byte>, offset: int, count: int): void;
Write(buffer: System.ReadOnlySpan<byte>): void;
CopyTo(destination: System.IO.Stream, bufferSize: int): void;
CopyToAsync(destination: System.IO.Stream, bufferSize: int, cancellationToken: System.Threading.CancellationToken): System.Threading.Tasks.Task;
Clear(): void;
DisposeAsync(): System.Threading.Tasks.ValueTask;
}
enum CryptoStreamMode {
Read = 0,
Write = 1
}
class CspKeyContainerInfo {
constructor(parameters: System.Security.Cryptography.CspParameters);
readonly Accessible: boolean;
readonly Exportable: boolean;
readonly HardwareDevice: boolean;
readonly KeyContainerName: string;
readonly KeyNumber: System.Security.Cryptography.KeyNumber;
readonly MachineKeyStore: boolean;
readonly Protected: boolean;
readonly ProviderName: string;
readonly ProviderType: int;
readonly RandomlyGenerated: boolean;
readonly Removable: boolean;
readonly UniqueKeyContainerName: string;
}
class CspParameters {
constructor();
constructor(dwTypeIn: int);
constructor(dwTypeIn: int, strProviderNameIn: string);
constructor(dwTypeIn: int, strProviderNameIn: string, strContainerNameIn: string);
Flags: System.Security.Cryptography.CspProviderFlags;
KeyPassword: System.Security.SecureString;
ParentWindowHandle: number;
}
enum CspProviderFlags {
NoFlags = 0,
UseMachineKeyStore = 1,
UseDefaultKeyContainer = 2,
UseNonExportableKey = 4,
UseExistingKey = 8,
UseArchivableKey = 16,
UseUserProtectedKey = 32,
NoPrompt = 64,
CreateEphemeralKey = 128
}
class DeriveBytes implements System.IDisposable {
GetBytes(cb: int): ReadonlyArray<byte>;
Reset(): void;
Dispose(): void;
}
class DES extends System.Security.Cryptography.SymmetricAlgorithm implements System.IDisposable {
Key: ReadonlyArray<byte>;
static Create(): System.Security.Cryptography.DES;
static Create(algName: string): System.Security.Cryptography.DES;
static IsWeakKey(rgbKey: ReadonlyArray<byte>): boolean;
static IsSemiWeakKey(rgbKey: ReadonlyArray<byte>): boolean;
}
class DESCryptoServiceProvider extends System.Security.Cryptography.DES implements System.IDisposable {
constructor();
BlockSize: int;
FeedbackSize: int;
IV: ReadonlyArray<byte>;
Key: ReadonlyArray<byte>;
KeySize: int;
readonly LegalBlockSizes: ReadonlyArray<System.Security.Cryptography.KeySizes>;
readonly LegalKeySizes: ReadonlyArray<System.Security.Cryptography.KeySizes>;
Mode: System.Security.Cryptography.CipherMode;
Padding: System.Security.Cryptography.PaddingMode;
CreateDecryptor(): System.Security.Cryptography.ICryptoTransform;
CreateEncryptor(): System.Security.Cryptography.ICryptoTransform;
CreateEncryptor(rgbKey: ReadonlyArray<byte>, rgbIV: ReadonlyArray<byte>): System.Security.Cryptography.ICryptoTransform;
CreateDecryptor(rgbKey: ReadonlyArray<byte>, rgbIV: ReadonlyArray<byte>): System.Security.Cryptography.ICryptoTransform;
GenerateIV(): void;
GenerateKey(): void;
}
class DSA extends System.Security.Cryptography.AsymmetricAlgorithm implements System.IDisposable {
ExportParameters(includePrivateParameters: boolean): System.Security.Cryptography.DSAParameters;
ImportParameters(parameters: System.Security.Cryptography.DSAParameters): void;
static Create(algName: string): System.Security.Cryptography.DSA;
static Create(): System.Security.Cryptography.DSA;
static Create(keySizeInBits: int): System.Security.Cryptography.DSA;
static Create(parameters: System.Security.Cryptography.DSAParameters): System.Security.Cryptography.DSA;
CreateSignature(rgbHash: ReadonlyArray<byte>): ReadonlyArray<byte>;
VerifySignature(rgbHash: ReadonlyArray<byte>, rgbSignature: ReadonlyArray<byte>): boolean;
SignData(data: ReadonlyArray<byte>, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName): ReadonlyArray<byte>;
SignData(data: ReadonlyArray<byte>, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, signatureFormat: System.Security.Cryptography.DSASignatureFormat): ReadonlyArray<byte>;
SignData(data: ReadonlyArray<byte>, offset: int, count: int, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName): ReadonlyArray<byte>;
SignData(data: ReadonlyArray<byte>, offset: int, count: int, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, signatureFormat: System.Security.Cryptography.DSASignatureFormat): ReadonlyArray<byte>;
SignData(data: System.IO.Stream, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName): ReadonlyArray<byte>;
SignData(data: System.IO.Stream, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, signatureFormat: System.Security.Cryptography.DSASignatureFormat): ReadonlyArray<byte>;
VerifyData(data: ReadonlyArray<byte>, signature: ReadonlyArray<byte>, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName): boolean;
VerifyData(data: ReadonlyArray<byte>, offset: int, count: int, signature: ReadonlyArray<byte>, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName): boolean;
VerifyData(data: ReadonlyArray<byte>, offset: int, count: int, signature: ReadonlyArray<byte>, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, signatureFormat: System.Security.Cryptography.DSASignatureFormat): boolean;
VerifyData(data: System.IO.Stream, signature: ReadonlyArray<byte>, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName): boolean;
CreateSignature(rgbHash: ReadonlyArray<byte>, signatureFormat: System.Security.Cryptography.DSASignatureFormat): ReadonlyArray<byte>;
TryCreateSignature(hash: System.ReadOnlySpan<byte>, destination: System.Span<byte>, bytesWritten: int): boolean;
TryCreateSignature(hash: System.ReadOnlySpan<byte>, destination: System.Span<byte>, signatureFormat: System.Security.Cryptography.DSASignatureFormat, bytesWritten: int): boolean;
TrySignData(data: System.ReadOnlySpan<byte>, destination: System.Span<byte>, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, bytesWritten: int): boolean;
TrySignData(data: System.ReadOnlySpan<byte>, destination: System.Span<byte>, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, signatureFormat: System.Security.Cryptography.DSASignatureFormat, bytesWritten: int): boolean;
VerifyData(data: System.ReadOnlySpan<byte>, signature: System.ReadOnlySpan<byte>, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName): boolean;
VerifyData(data: ReadonlyArray<byte>, signature: ReadonlyArray<byte>, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, signatureFormat: System.Security.Cryptography.DSASignatureFormat): boolean;
VerifyData(data: System.IO.Stream, signature: ReadonlyArray<byte>, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, signatureFormat: System.Security.Cryptography.DSASignatureFormat): boolean;
VerifyData(data: System.ReadOnlySpan<byte>, signature: System.ReadOnlySpan<byte>, hashAlgorithm: System.Security.Cryptography.HashAlgorithmName, signatureFormat: System.Security.Cryptography.DSASignatureFormat): boolean;
VerifySignature(rgbHash: ReadonlyArray<byte>, rgbSignature: ReadonlyArray<byte>, signatureFormat: System.Security.Cryptography.DSASignatureFormat): boolean;
VerifySignature(hash: System.ReadOnlySpan<byte>, signature: System.ReadOnlySpan<byte>): boolean;
VerifySignature(hash: System.ReadOnlySpan<byte>, signature: System.ReadOnlySpan<byte>, signatureFormat: System.Security.Cryptography.DSASignatureFormat): boolean;
TryExportEncryptedPkcs8PrivateKey(passwordBytes: System.ReadOnlySpan<byte>, pbeParameters: System.Security.Cryptography.PbeParameters, destination: System.Span<byte>, bytesWritten: int): boolean;
TryExportEncryptedPkcs8PrivateKey(password: System.ReadOnlySpan<number>, pbeParameters: System.Security.Cryptography.PbeParameters, destination: System.Span<byte>, bytesWritten: int): boolean;
TryExportPkcs8PrivateKey(destination: System.Span<byte>, bytesWritten: int): boolean;
TryExportSubjectPublicKeyInfo(destination: System.Span<byte>, bytesWritten: int): boolean;
ImportEncryptedPkcs8PrivateKey(passwordBytes: System.ReadOnlySpan<byte>, source: System.ReadOnlySpan<byte>, bytesRead: int): void;
ImportEncryptedPkcs8PrivateKey(password: System.ReadOnlySpan<number>, source: System.ReadOnlySpan<byte>, bytesRead: int): void;
ImportPkcs8PrivateKey(source: System.ReadOnlySpan<byte>, bytesRead: int): void;
ImportSubjectPublicKeyInfo(source: System.ReadOnlySpan<byte>, bytesRead: int): void;
GetMaxSignatureSize(signatureFormat: System.Security.Cryptography.DSASignatureFormat): int;
ImportFromPem(input: System.ReadOnlySpan<number>): void;
ImportFromEncryptedPem(input: System.ReadOnlySpan<number>, password: System.ReadOnlySpan<number>): void;
ImportFromEncryptedPem(input: System.ReadOnlySpan<number>, passwordBytes: System.ReadOnlySpan<byte>): void;
FromXmlString(xmlString: string): void;
ToXmlString(includePrivateParameters: boolean): string;
}
class DSACng extends System.Security.Cryptography.DSA implements System.IDisposable {
constructor();
constructor(keySize: int);
constructor(key: System.Security.Cryptography.CngKey);
readonly Key: System.Security.Cryptography.CngKey;
CreateSignature(rgbHash: ReadonlyArray<byte>): ReadonlyArray<byte>;
ExportParameters(includePrivateParameters: boolean): System.Security.Cryptography.DSAParameters;
ImportParameters(parameters: System.Security.Cryptography.DSAParameters): void;
VerifySignature(rgbHash: ReadonlyArray<byte>, rgbSignature: ReadonlyArray<byte>): boolean;
}
class DSACryptoServiceProvider extends System.Security.Cryptography.DSA implements System.IDisposable, System.Security.Cryptography.ICspAsymmetricAlgorithm {
constructor();
constructor(dwKeySize: int);
constructor(dwKeySize: int, parameters: System.Security.Cryptography.CspParameters);
constructor(parameters: System.Security.Cryptography.CspParameters);
readonly CspKeyContainerInfo: System.Security.Cryptography.CspKeyContainerInfo;
readonly KeyExchangeAlgorithm: string;
KeySize: int;
readonly LegalKeySizes: ReadonlyArray<System.Security.Cryptography.KeySizes>;
PersistKeyInCsp: boolean;
readonly PublicOnly: boolean;
readonly SignatureAlgorithm: string;
static UseMachineKeyStore: boolean;
CreateSignature(rgbHash: ReadonlyArray<byte>): ReadonlyArray<byte>;
TryCreateSignature(hash: System.ReadOnlySpan<byte>, destination: System.Span<byte>, bytesWritten: int): boolean;
ExportCspBlob(includePrivateParameters: boolean): ReadonlyArray<byte>;
ExportParameters(includePrivateParameters: boolean