C# Класс Goedel.Cryptography.CryptoCatalog

Manages a cryptographic catalog and associated key management functions.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Algorithms CryptoAlgorithm[]

Открытые методы

Метод Описание
Add ( CryptoProvider CryptoProvider ) : void

Add a cryptographic algorithm provider to the catalog

CryptoCatalog ( ) : System

Create and populate a new catalog of cryptographic algorithms including the default providers for all the standard algorithms.

Get ( CryptoAlgorithmID ID ) : CryptoProvider

Get a cryptographic provider by algorithm identifier

Get ( CryptoAlgorithmID ID, CryptoAlgorithmID Bulk ) : CryptoProvider

Get a cryptographic provider by algorithm identifier

GetAsymmetric ( CryptoAlgorithmID ID ) : CryptoProviderAsymmetric

Get a cryptographic provider by algorithm identifier

GetAuthentication ( CryptoAlgorithmID ID ) : CryptoProviderAuthentication

Get a cryptographic provider by algorithm identifier

GetBits ( int Bits ) : byte[]

Returns a byte array with the specified number of random bits.

GetBytes ( int Bytes ) : byte[]

Returns a byte array with the specified number of random bytes.

GetDigest ( CryptoAlgorithmID ID ) : CryptoProviderDigest

Get a cryptographic provider by algorithm identifier

GetEncryption ( CryptoAlgorithmID ID ) : CryptoProviderEncryption

Get a cryptographic provider by algorithm identifier

GetExchange ( CryptoAlgorithmID ID ) : CryptoProviderExchange

Get a cryptographic provider by algorithm identifier

GetExchange ( CryptoAlgorithmID Signature, CryptoAlgorithmID Digest ) : CryptoProviderExchange

Get a signature provider by algorithm identifier

GetExchange ( string UDF ) : CryptoProviderExchange

Get an exchange provider by key fingerprint.

GetSignature ( CryptoAlgorithmID ID ) : CryptoProviderSignature

Get a cryptographic provider by algorithm identifier

GetSignature ( CryptoAlgorithmID Signature, CryptoAlgorithmID Digest ) : CryptoProviderSignature

Get a signature provider by algorithm identifier

GetSignature ( string UDF ) : CryptoProviderSignature

Get a signature provider by key fingerprint.

Приватные методы

Метод Описание
OrDefault ( CryptoAlgorithmID Value, CryptoAlgorithmID Default ) : CryptoAlgorithmID
SetDefault ( CryptoAlgorithmID &Current, CryptoAlgorithm New, CryptoAlgorithmID ID, CryptoAlgorithmClass Class ) : void

Описание методов

Add() публичный Метод

Add a cryptographic algorithm provider to the catalog
public Add ( CryptoProvider CryptoProvider ) : void
CryptoProvider CryptoProvider
Результат void

CryptoCatalog() публичный Метод

Create and populate a new catalog of cryptographic algorithms including the default providers for all the standard algorithms.
public CryptoCatalog ( ) : System
Результат System

Get() публичный Метод

Get a cryptographic provider by algorithm identifier
public Get ( CryptoAlgorithmID ID ) : CryptoProvider
ID CryptoAlgorithmID Principal algorithm identifier.
Результат CryptoProvider

Get() публичный Метод

Get a cryptographic provider by algorithm identifier
public Get ( CryptoAlgorithmID ID, CryptoAlgorithmID Bulk ) : CryptoProvider
ID CryptoAlgorithmID Principal algorithm identifier.
Bulk CryptoAlgorithmID Bulk algorithm identifier.
Результат CryptoProvider

GetAsymmetric() публичный Метод

Get a cryptographic provider by algorithm identifier
public GetAsymmetric ( CryptoAlgorithmID ID ) : CryptoProviderAsymmetric
ID CryptoAlgorithmID Algorithm identifier
Результат CryptoProviderAsymmetric

GetAuthentication() публичный Метод

Get a cryptographic provider by algorithm identifier
public GetAuthentication ( CryptoAlgorithmID ID ) : CryptoProviderAuthentication
ID CryptoAlgorithmID Algorithm identifier
Результат CryptoProviderAuthentication

GetBits() публичный статический Метод

Returns a byte array with the specified number of random bits.
public static GetBits ( int Bits ) : byte[]
Bits int Number of bits
Результат byte[]

GetBytes() публичный статический Метод

Returns a byte array with the specified number of random bytes.
public static GetBytes ( int Bytes ) : byte[]
Bytes int Number of bytes
Результат byte[]

GetDigest() публичный Метод

Get a cryptographic provider by algorithm identifier
public GetDigest ( CryptoAlgorithmID ID ) : CryptoProviderDigest
ID CryptoAlgorithmID Algorithm identifier
Результат CryptoProviderDigest

GetEncryption() публичный Метод

Get a cryptographic provider by algorithm identifier
public GetEncryption ( CryptoAlgorithmID ID ) : CryptoProviderEncryption
ID CryptoAlgorithmID Algorithm identifier
Результат CryptoProviderEncryption

GetExchange() публичный Метод

Get a cryptographic provider by algorithm identifier
public GetExchange ( CryptoAlgorithmID ID ) : CryptoProviderExchange
ID CryptoAlgorithmID Algorithm identifier
Результат CryptoProviderExchange

GetExchange() публичный Метод

Get a signature provider by algorithm identifier
public GetExchange ( CryptoAlgorithmID Signature, CryptoAlgorithmID Digest ) : CryptoProviderExchange
Signature CryptoAlgorithmID Signature algorithm identifier.
Digest CryptoAlgorithmID Digest algorithm identifer.
Результат CryptoProviderExchange

GetExchange() публичный Метод

Get an exchange provider by key fingerprint.
public GetExchange ( string UDF ) : CryptoProviderExchange
UDF string Fingerprint of key
Результат CryptoProviderExchange

GetSignature() публичный Метод

Get a cryptographic provider by algorithm identifier
public GetSignature ( CryptoAlgorithmID ID ) : CryptoProviderSignature
ID CryptoAlgorithmID Algorithm identifier
Результат CryptoProviderSignature

GetSignature() публичный Метод

Get a signature provider by algorithm identifier
public GetSignature ( CryptoAlgorithmID Signature, CryptoAlgorithmID Digest ) : CryptoProviderSignature
Signature CryptoAlgorithmID Signature algorithm identifier.
Digest CryptoAlgorithmID Digest algorithm identifer.
Результат CryptoProviderSignature

GetSignature() публичный Метод

Get a signature provider by key fingerprint.
public GetSignature ( string UDF ) : CryptoProviderSignature
UDF string Fingerprint of key
Результат CryptoProviderSignature

Описание свойств

Algorithms публичное свойство

Array containing the registered algorithms.
public CryptoAlgorithm[] Algorithms
Результат CryptoAlgorithm[]