Decrypts the specified key.
Namespace:
Hummingbird.TestFramework.Cryptography
Assembly:
Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax public override byte[] Decrypt(
byte[] key,
byte[] iv,
X509Certificate2 certificate,
byte[] data,
CipherMode ciphermode,
PaddingMode paddingmode
)
Public Overrides Function Decrypt (
key As Byte(),
iv As Byte(),
certificate As X509Certificate2,
data As Byte(),
ciphermode As CipherMode,
paddingmode As PaddingMode
) As Byte()
public:
virtual array<unsigned char>^ Decrypt(
array<unsigned char>^ key,
array<unsigned char>^ iv,
X509Certificate2^ certificate,
array<unsigned char>^ data,
CipherMode ciphermode,
PaddingMode paddingmode
) override
abstract Decrypt :
key : byte[] *
iv : byte[] *
certificate : X509Certificate2 *
data : byte[] *
ciphermode : CipherMode *
paddingmode : PaddingMode -> byte[]
override Decrypt :
key : byte[] *
iv : byte[] *
certificate : X509Certificate2 *
data : byte[] *
ciphermode : CipherMode *
paddingmode : PaddingMode -> byte[]
Parameters
- key
- Type: SystemByte
The Encryption Key. - iv
- Type: SystemByte
The Initial Vector. - certificate
- Type: System.Security.Cryptography.X509CertificatesX509Certificate2
The X509 certificate, if the algorithm needs a certificate. - data
- Type: SystemByte
The data to be encrypted. - ciphermode
- Type: System.Security.CryptographyCipherMode
The cipher mode. - paddingmode
- Type: System.Security.CryptographyPaddingMode
The padding mode.
Return Value
Type:
Byte
the decrypted data. For hash methods, this method will throw an Exception.
See Also