System.Security.Cryptography Namespace

May 11, 2014

The System.Security.Cryptography namespace provides cryptographic services, including secure encoding and decoding of data, as well as many other operations, such as hashing, random number generation, and message authentication.

  ClassDescription
Public classAesRepresents the abstract base class from which all implementations of the Advanced Encryption Standard (AES) must inherit.
Public classAesManagedProvides a managed implementation of the Advanced Encryption Standard (AES) symmetric algorithm.
Public classAsymmetricAlgorithm
Public classAsymmetricKeyExchangeDeformatterRepresents the base class from which all asymmetric key exchange deformatters derive.
Public classAsymmetricKeyExchangeFormatterRepresents the base class from which all asymmetric key exchange formatters derive.
Public classAsymmetricSignatureDeformatterRepresents the abstract base class from which all implementations of asymmetric signature deformatters derive.
Public classAsymmetricSignatureFormatterRepresents the base class from which all implementations of asymmetric signature formatters derive.
Public classCryptographicExceptionThe exception that is thrown when an error occurs during a cryptographic operation.
Public classCryptographicUnexpectedOperationExceptionThe exception that is thrown when an unexpected operation occurs during a cryptographic operation.
Public classCryptoStreamDefines a stream that links data streams to cryptographic transformations.
Public classCspKeyContainerInfoProvides additional information about a cryptographic key pair. This class cannot be inherited.
Public classCspParametersContains parameters that are passed to the cryptographic service provider (CSP) that performs cryptographic computations. This class cannot be inherited.
Public classDeriveBytesRepresents the abstract base class from which all classes that derive byte sequences of a specified length inherit.
Public classHashAlgorithmRepresents the base class from which all implementations of cryptographic hash algorithms must derive.
Public classHMACRepresents the abstract class from which all implementations of Hash-based Message Authentication Code (HMAC) must derive.
Public classHMACSHA1Computes a Hash-based Message Authentication Code (HMAC) using the SHA1 hash function.
Public classHMACSHA256Computes a Hash-based Message Authentication Code (HMAC) using the SHA256 hash function.
Public classKeyedHashAlgorithmRepresents the abstract class from which all implementations of keyed hash algorithms must derive.
Public classKeySizesDetermines the set of valid key sizes for the symmetric cryptographic algorithms.
Public classMaskGenerationMethodRepresents the abstract class from which all mask generator algorithms must derive.
Public classPKCS1MaskGenerationMethodComputes masks according to PKCS #1 for use by key exchange algorithms.
Public classProtectedDataProvides methods for encrypting and decrypting data. This class cannot be inherited.
Public classRandomNumberGeneratorRepresents the abstract class from which all implementations of cryptographic random number generators derive.
Public classRfc2898DeriveBytesImplements password-based key derivation functionality, PBKDF2, by using a pseudo-random number generator based on HMACSHA1.
Public classRNGCryptoServiceProviderImplements a cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.
Public classRSARepresents the base class from which all implementations of the RSA algorithm inherit.
Public classRSACryptoServiceProviderPerforms asymmetric encryption and decryption using the implementation of the RSA algorithm provided by the cryptographic service provider (CSP). This class cannot be inherited.
Public classRSAOAEPKeyExchangeDeformatterDecrypts Optimal Asymmetric Encryption Padding (OAEP) key exchange data.
Public classRSAOAEPKeyExchangeFormatterCreates Optimal Asymmetric Encryption Padding (OAEP) key exchange data using RSA.
Public classRSAPKCS1KeyExchangeDeformatterDecrypts the PKCS #1 key exchange data.
Public classRSAPKCS1KeyExchangeFormatterCreates the PKCS#1 key exchange data using RSA.
Public classRSAPKCS1SignatureDeformatterVerifies an RSA PKCS #1 version 1.5 signature.
Public classRSAPKCS1SignatureFormatterCreates an RSA PKCS #1 version 1.5 signature.
Public classSHA1Computes the SHA1 hash for the input data.
Public classSHA1ManagedComputes the SHA1 hash for the input data using the managed library.
Public classSHA256Computes the SHA256 hash for the input data.
Public classSHA256ManagedComputes the SHA256 hash for the input data using the managed library.
Public classSymmetricAlgorithmRepresents the abstract base class from which all implementations of symmetric algorithms must inherit.

  StructureDescription
Public structureRSAParametersRepresents the standard parameters for the RSA algorithm.

  InterfaceDescription
Public interfaceICryptoTransformDefines the basic operations of cryptographic transformations.
Public interfaceICspAsymmetricAlgorithmDefines methods that allow an AsymmetricAlgorithm class to enumerate key container information, and import and export Microsoft Cryptographic API (CAPI)–compatible key blobs.

  EnumerationDescription
Public enumerationCryptoStreamModeSpecifies the mode of a cryptographic stream.
Public enumerationCspProviderFlagsSpecifies flags that modify the behavior of the cryptographic service providers (CSP).
Public enumerationKeyNumberSpecifies whether to create an asymmetric signature key or an asymmetric exchange key.

Show:
© 2014 Microsoft