System::Security::Cryptography::RSACryptoServiceProvider class

RSACryptoServiceProvider class

RSA 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 RSACryptoServiceProvider : public System::Security::Cryptography::RSA,
                                 public System::Security::Cryptography::ICspAsymmetricAlgorithm

Methods

MethodDescription
Decrypt(const ByteArrayPtr&, bool)Decrypts message. Not implemented.
Decrypt(ByteArrayPtr, SharedPtr<RSAEncryptionPadding>) overrideDecrypts input data using the specified padding mode.
Dispose() overrideFrees data associated with object.
Encrypt(const ByteArrayPtr&, bool)Encrypts message. Not implemented.
Encrypt(ByteArrayPtr, SharedPtr<RSAEncryptionPadding>) overrideEncrypts input data using the specified padding mode.
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 used by algorithm.
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 associated with CSP object.
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(RSAParameters) overrideImports CSP parameters.
RSACryptoServiceProvider()RTTI information.
RSACryptoServiceProvider(const SharedPtr<CspParameters>&)Constructor. Not implemented.
RSACryptoServiceProvider(const RSAParameters&)Constructor.
RSACryptoServiceProvider(int32_t)Constructor.
RSACryptoServiceProvider(int32_t, const SharedPtr<CspParameters>&)Constructor. Not implemented.
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&, const SharedPtr<Object>&)Computes the signature of specified input value.
SignData(const SharedPtr<IO::Stream>&, const SharedPtr<Object>&)Computes the signature of specified input value.
SignData(const ByteArrayPtr&, int32_t, int32_t, const SharedPtr<Object>&)Computes the signature of specified input value.
SignHash(ByteArrayPtr, HashAlgorithmName, SharedPtr<RSASignaturePadding>) overrideComputes the signature for the specified hash value.
SignHash(const ByteArrayPtr&, const String&)Computes the signature of specified input value. Not implemented.
VerifyData(const ByteArrayPtr&, const SharedPtr<Object>&, const ByteArrayPtr&)Checks data signature.
VerifyHash(const ByteArrayPtr&, const String&, const ByteArrayPtr&)Checks data signature.
VerifyHash(ByteArrayPtr, ByteArrayPtr, const HashAlgorithmName&, SharedPtr<RSASignaturePadding>) overrideVerifies that the signature of the specified hash is valid.

See Also