System::Security::Cryptography::DSA class
Contents
[
Hide
]DSA class
Base class for implementations of DSA algorithm. 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 DSA : public System::Security::Cryptography::AsymmetricAlgorithm
Methods
Method | Description |
---|---|
static Create() | Creates default DSA aglorithm implementation. |
static Create(const String&) | Creates default DSA algorithm implementation. |
static Create(int32_t) | Creates default DSA algorithm implementation with specifed key size. |
static Create(const DSAParameters&) | Creates default DSA algorithm implementation with specifed parameters. |
static CreateFromXmlString(const String&) | Creates default DSA algorithm implementation with specifed XML-encoded parameters. |
virtual CreateSignature(ByteArrayPtr) | RTTI information. |
virtual ExportParameters(bool) | Exports all parameters. |
FromXmlString(String) override | Initializes object using XML-encoded parameters. |
virtual ImportParameters(DSAParameters) | Imports all parameters from data structure. |
SignData(const ByteArrayPtr&, const HashAlgorithmName&) | Computes the hash value of the specified data array using the specified hash algorithm, and signs the result. |
SignData(const ByteArrayPtr&, int32_t, int32_t, const HashAlgorithmName&) | Computes the hash value of the specified data array using the specified hash algorithm, and signs the result. |
SignData(const StreamPtr&, const HashAlgorithmName&) | Computes the hash value of the specified binary stream using the specified hash algorithm, and signs the result. |
ToXmlString(bool) override | Exports all parameters in XML format. |
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. |
virtual VerifySignature(ByteArrayPtr, ByteArrayPtr) | Verify DSA signature for the specified data. |
See Also
- Class AsymmetricAlgorithm
- Namespace System::Security::Cryptography
- Library Aspose.PUB for C++