System::Security::Cryptography::DSACryptoServiceProvider class

DSACryptoServiceProvider class

DSA algorithm in CSP form. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class DSACryptoServiceProvider : public System::Security::Cryptography::DSA,
                                 public System::Security::Cryptography::ICspAsymmetricAlgorithm

Methods

MethodDescription
CreateSignature(ByteArrayPtr) overrideCreate DSA signature for the specified data.
Dispose() overrideFrees data associated with object.
DSACryptoServiceProvider()Constructor. Uses default parameters.
DSACryptoServiceProvider(const DSAParameters&)Constructor.
DSACryptoServiceProvider(const SharedPtr<CspParameters>&)Constructor. Not implemented.
DSACryptoServiceProvider(int32_t)Constructor.
DSACryptoServiceProvider(int32_t, const SharedPtr<CspParameters>&)Constructor. Not implemented.
ExportCspBlob(bool) overrideExports blob with information on key. Not implemented.
ExportParameters(bool) overrideExports CSP parameters.
get_CspKeyContainerInfo() overrideGets a CspKeyContainerInfo object.
get_KeyExchangeAlgorithm() overrideChecks key exchange algorithm associated with object.
get_KeySize() overrideGets key size.
get_PersistKeyInCsp() constChecks whether key is persisted in CSP object.
get_PublicOnly() constChecks if public key only is present in CSP object.
get_SignatureAlgorithm() overrideGets signature algorithm to use.
static get_UseMachineKeyStore()Checks whether the key persists in machine store instead of user store.
ImportCspBlob(ByteArrayPtr) overrideImports blob with information on key. Not implemented.
ImportParameters(DSAParameters) overrideImports all parameters from data structure.
set_PersistKeyInCsp(bool)Defines whether key is persisted in CSP object.
static set_UseMachineKeyStore(bool)Defines whether the key persists in machine store instead of user store.
SignData(const ByteArrayPtr&)Computes the signature of specified input value.
SignData(const SharedPtr<IO::Stream>&)Computes the signature of specified input value.
SignData(const ByteArrayPtr&, int32_t, int32_t)Computes the signature of specified input value.
SignData(const ByteArrayPtr&, const HashAlgorithmName&)RTTI information.
SignData(const ByteArrayPtr&, int32_t, int32_t, const HashAlgorithmName&)RTTI information.
SignData(const StreamPtr&, const HashAlgorithmName&)RTTI information.
SignHash(const ByteArrayPtr&, const String&)Computes the signature of specified input value.
VerifyData(const ByteArrayPtr&, const ByteArrayPtr&)Checks data signature.
VerifyData(const ByteArrayPtr&, const ByteArrayPtr&, const HashAlgorithmName&)Verifies that the signature of the specified data is valid.
VerifyData(const ByteArrayPtr&, int32_t, int32_t, const ByteArrayPtr&, const HashAlgorithmName&)Verifies that the signature of the specified data is valid.
VerifyData(const StreamPtr&, const ByteArrayPtr&, const HashAlgorithmName&)Verifies that the signature of the specified binary stream is valid.
VerifyHash(const ByteArrayPtr&, const String&, const ByteArrayPtr&)Checks data signature.
VerifySignature(ByteArrayPtr, ByteArrayPtr) overrideVerify DSA signature for the specified data.

See Also