CspAlgorithmOperation Enumeration

AlgorithmOperationsEnumeration type specifies the operations that an algorithm can perform.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Definition

Namespace: SysadminsLV.PKI.Cryptography
Assembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: 4.0.1.0 (4.0.1.0)
C#
[FlagsAttribute]
public enum CspAlgorithmOperation

Members

None0 No operation is specified.
Cipher1 The algorithm can be used for symmetric encryption. This includes the RC2, RC4, Data Encryption Standard (DES), 3DED, and AES algorithms.
Hashing2 The algorithm can be used for hashing. This includes the MD2, MD4, SHA1, SHA256, SHA384, SHA512 MAC, and Hash-Based Message Authentication Code (HMAC) hashing algorithms.
AsymmetricEncryption4 The algorithm can be used for public key encryption. This includes RSA.
SecretAgreement8 The algorithm can used for key exchange. This includes the Diffie-Hellman algorithm and ECDH algorithm.
Signing16 The algorithm can be used for signing. This includes the RSA algorithm, Digital Signature Algorithm (DSA), and ECDSA algorithm.
AnyAsymmetricOperation28 The algorithm can be used for public key encryption, key exchange, and signing. This is a bitwise-OR combination of the following constants:
  • AsymmetricEncryption
  • SecretAgreement
  • Signing
RandomNumberGeneration32 The algorithm can be used to generate a random number.
PreferSignatureOnly2,097,152 Signature algorithms are preferred but not required. An encryption algorithm may be chosen instead. This is used when searching for cryptographic service provider (CSP) status information based on supported operational capability.
PreferNonSignature4,194,304 An encryption algorithm (such as that identified by the AnyAsymmetricOperation or SecretAgreement flags) is preferred but not required. A signature algorithm may be chosen instead. This is used when searching for CSP status information based on supported operational capability.
ExactMatch8,388,608 Only an algorithm that exactly matches the specified operations is selected.
PreferenceMask14,680,064 Use to mask the algorithm operation preference.

See Also