public abstract class AesKw extends KeyWrapAlgorithm
| Modifier and Type | Method and Description |
|---|---|
ICryptoTransform |
CreateDecryptor(byte[] key)
Creates a
ICryptoTransform implementation for decryption. |
ICryptoTransform |
CreateDecryptor(byte[] key,
byte[] iv)
Creates a
ICryptoTransform implementation for decryption
using the supplied initialization vector. |
ICryptoTransform |
CreateDecryptor(byte[] key,
byte[] iv,
Provider provider)
Creates a
ICryptoTransform implementation for decryption
using the supplied initialization vector and the specific provider for the Java Security API. |
ICryptoTransform |
CreateDecryptor(byte[] key,
Provider provider)
Creates a
ICryptoTransform implementation for decryption that
uses the specified provider for the Java Security API. |
ICryptoTransform |
CreateEncryptor(byte[] key)
Creates a
ICryptoTransform implementation for encryption. |
ICryptoTransform |
CreateEncryptor(byte[] key,
byte[] iv)
Creates a
ICryptoTransform implementation for encryption
using the supplied initialization vector. |
ICryptoTransform |
CreateEncryptor(byte[] key,
byte[] iv,
Provider provider)
Creates a
ICryptoTransform implementation for encryption
using the supplied initialization vector and the specific provider for the Java Security API. |
ICryptoTransform |
CreateEncryptor(byte[] key,
Provider provider)
Creates a
ICryptoTransform implementation for encryption that
uses the specified provider for the Java Security API. |
protected AesKw(String name)
public ICryptoTransform CreateEncryptor(byte[] key) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
KeyWrapAlgorithmICryptoTransform implementation for encryption.
Uses the default AES-KW initialization vector.CreateEncryptor in class KeyWrapAlgorithmkey - The AES key material to be used.ICryptoTransform implementationNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidKeyExceptionInvalidAlgorithmParameterExceptionpublic ICryptoTransform CreateEncryptor(byte[] key, Provider provider) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
KeyWrapAlgorithmICryptoTransform implementation for encryption that
uses the specified provider for the Java Security API. Uses the default AES-KW initialization vector.CreateEncryptor in class KeyWrapAlgorithmkey - The AES key material to be used.provider - The provider to use.ICryptoTransform implementationNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidKeyExceptionInvalidAlgorithmParameterExceptionpublic ICryptoTransform CreateEncryptor(byte[] key, byte[] iv) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
KeyWrapAlgorithmICryptoTransform implementation for encryption
using the supplied initialization vector.CreateEncryptor in class KeyWrapAlgorithmkey - The AES key material to be used.iv - The initialization vector to be used.ICryptoTransform implementationNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidKeyExceptionInvalidAlgorithmParameterExceptionpublic ICryptoTransform CreateEncryptor(byte[] key, byte[] iv, Provider provider) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
KeyWrapAlgorithmICryptoTransform implementation for encryption
using the supplied initialization vector and the specific provider for the Java Security API.CreateEncryptor in class KeyWrapAlgorithmkey - The AES key material to be used.iv - The initialization vector to be used.provider - The provider to use.ICryptoTransform implementationNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidKeyExceptionInvalidAlgorithmParameterExceptionpublic ICryptoTransform CreateDecryptor(byte[] key) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
KeyWrapAlgorithmICryptoTransform implementation for decryption.
Uses the default AES-KW initialization vector.CreateDecryptor in class KeyWrapAlgorithmkey - The AES key material to be used.ICryptoTransform implementationNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidKeyExceptionInvalidAlgorithmParameterExceptionpublic ICryptoTransform CreateDecryptor(byte[] key, Provider provider) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
KeyWrapAlgorithmICryptoTransform implementation for decryption that
uses the specified provider for the Java Security API. Uses the default AES-KW initialization vector.CreateDecryptor in class KeyWrapAlgorithmkey - The AES key material to be used.provider - The provider to use.ICryptoTransform implementationNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidKeyExceptionInvalidAlgorithmParameterExceptionpublic ICryptoTransform CreateDecryptor(byte[] key, byte[] iv) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
KeyWrapAlgorithmICryptoTransform implementation for decryption
using the supplied initialization vector.CreateDecryptor in class KeyWrapAlgorithmkey - The AES key material to be used.iv - The initialization vector to be used.ICryptoTransform implementationNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidKeyExceptionInvalidAlgorithmParameterExceptionpublic ICryptoTransform CreateDecryptor(byte[] key, byte[] iv, Provider provider) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
KeyWrapAlgorithmICryptoTransform implementation for decryption
using the supplied initialization vector and the specific provider for the Java Security API.CreateDecryptor in class KeyWrapAlgorithmkey - The AES key material to be used.iv - The initialization vector to be used.provider - The provider to use.ICryptoTransform implementationNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidKeyExceptionInvalidAlgorithmParameterException/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/