public abstract class AsymmetricEncryptionAlgorithm extends EncryptionAlgorithm
| Modifier | Constructor and Description |
|---|---|
protected |
AsymmetricEncryptionAlgorithm(String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ICryptoTransform |
CreateDecryptor(KeyPair keyPair)
Creates a
ICryptoTransform implementation for decryption that
uses the specified KeyPair and the default Provider provider. |
abstract ICryptoTransform |
CreateDecryptor(KeyPair keyPair,
Provider provider)
Creates a
ICryptoTransform implementation for decryption that
uses the specified KeyPair and Provider. |
abstract ICryptoTransform |
CreateEncryptor(KeyPair keyPair)
Creates a
ICryptoTransform implementation for encryption that
uses the specified KeyPair and the default Provider provider. |
abstract ICryptoTransform |
CreateEncryptor(KeyPair keyPair,
Provider provider)
Creates a
ICryptoTransform implementation for encryption that
uses the specified KeyPair and Provider. |
protected AsymmetricEncryptionAlgorithm(String name)
name - The name of the algorithm.public abstract ICryptoTransform CreateEncryptor(KeyPair keyPair) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
ICryptoTransform implementation for encryption that
uses the specified KeyPair and the default Provider provider.keyPair - The key pair to use.InvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingExceptionpublic abstract ICryptoTransform CreateEncryptor(KeyPair keyPair, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
ICryptoTransform implementation for encryption that
uses the specified KeyPair and Provider.keyPair - The key pair to use.provider - The provider to use.InvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingExceptionpublic abstract ICryptoTransform CreateDecryptor(KeyPair keyPair) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
ICryptoTransform implementation for decryption that
uses the specified KeyPair and the default Provider provider.keyPair - The key pair to use.InvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingExceptionpublic abstract ICryptoTransform CreateDecryptor(KeyPair keyPair, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
ICryptoTransform implementation for decryption that
uses the specified KeyPair and Provider.keyPair - The key pair to use.provider - The provider to use.InvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingException/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/