Asymmetric cryptographic utilities.
Default constructor
public Void AsymmetricCryptographer()
Initializes a new instance of AsymmetricCryptographer.
public Void AsymmetricCryptographer(keyStore)
Name | Type | Summary |
---|---|---|
keyStore | IAsymmetricKeyStore | An IAsymmetricKeyStore. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when keyStore is null. |
An IAsymmetricKeyStore to get the keys
public IAsymmetricKeyStore KeyStore { get; set; }
Decrypts the information contained within the ciphered package.
public Void DecryptPackage(ciphered, plaintext)
Name | Type | Summary |
---|---|---|
ciphered | Stream | Ciphered package to decrypt. |
plaintext | Stream | Decrypted data from the ciphered package. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when ciphered is null. -or- plaintext is null. |
CryptographyException | Thrown when an error occurs while decrypting the data. |
AsymmetricKeyNotFoundException | Thrown when the key could not be found. |
MissingRequiredPropertyException | Thrown when the object was not correctly initialized. |
Encrypts plaintext into a ciphered package.
public Void EncryptPackage(plaintext, ciphered)
Name | Type | Summary |
---|---|---|
plaintext | Stream | Information to be ciphered. |
ciphered | Stream | Ciphered information |
Type | Summary |
---|---|
ArgumentNullException | Thrown when ciphered is null. -or- plaintext is null. |
CryptographyException | Thrown when an error occurs while encrypting the data. |
AsymmetricKeyNotFoundException | Thrown when the key could not be found. |
MissingRequiredPropertyException | Thrown when the object was not correctly initialized. |
In this document