public final class RsaOaep extends RsaEncryption
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_NAME |
| Constructor and Description |
|---|
RsaOaep() |
| Modifier and Type | Method and Description |
|---|---|
ICryptoTransform |
CreateDecryptor(KeyPair keyPair)
Creates a
ICryptoTransform implementation for decryption that
uses the specified KeyPair and the default Provider provider. |
ICryptoTransform |
CreateDecryptor(KeyPair keyPair,
Provider provider)
Creates a
ICryptoTransform implementation for decryption that
uses the specified KeyPair and Provider. |
ICryptoTransform |
CreateEncryptor(KeyPair keyPair)
Creates a
ICryptoTransform implementation for encryption that
uses the specified KeyPair and the default Provider provider. |
ICryptoTransform |
CreateEncryptor(KeyPair keyPair,
Provider provider)
Creates a
ICryptoTransform implementation for encryption that
uses the specified KeyPair and Provider. |
public static final String ALGORITHM_NAME
public ICryptoTransform CreateEncryptor(KeyPair keyPair) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
AsymmetricEncryptionAlgorithmICryptoTransform implementation for encryption that
uses the specified KeyPair and the default Provider provider.CreateEncryptor in class AsymmetricEncryptionAlgorithmkeyPair - The key pair to use.InvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingExceptionpublic ICryptoTransform CreateEncryptor(KeyPair keyPair, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
AsymmetricEncryptionAlgorithmICryptoTransform implementation for encryption that
uses the specified KeyPair and Provider.CreateEncryptor in class AsymmetricEncryptionAlgorithmkeyPair - The key pair to use.provider - The provider to use.InvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingExceptionpublic ICryptoTransform CreateDecryptor(KeyPair keyPair) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
AsymmetricEncryptionAlgorithmICryptoTransform implementation for decryption that
uses the specified KeyPair and the default Provider provider.CreateDecryptor in class AsymmetricEncryptionAlgorithmkeyPair - The key pair to use.InvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingExceptionpublic ICryptoTransform CreateDecryptor(KeyPair keyPair, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException
AsymmetricEncryptionAlgorithmICryptoTransform implementation for decryption that
uses the specified KeyPair and Provider.CreateDecryptor in class AsymmetricEncryptionAlgorithmkeyPair - 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.
*/