public abstract class AesCbcHmacSha2 extends SymmetricEncryptionAlgorithm
| Modifier | Constructor and Description |
|---|---|
protected |
AesCbcHmacSha2(String name) |
| Modifier and Type | Method and Description |
|---|---|
ICryptoTransform |
CreateDecryptor(byte[] key,
byte[] iv,
byte[] authenticationData,
byte[] authenticationTag)
Creates a
ICryptoTransform implementation for decryption
using the supplied initialization vector and the specific provider for the Java Security API. |
ICryptoTransform |
CreateDecryptor(byte[] key,
byte[] iv,
byte[] authenticationData,
byte[] authenticationTag,
Provider provider)
Creates a
ICryptoTransform implementation for decryption
using the supplied initialization vector and the specific provider for the Java Security API. |
ICryptoTransform |
CreateEncryptor(byte[] key,
byte[] iv,
byte[] authenticationData)
Creates a
ICryptoTransform implementation for encryption
using the supplied initialization vector and the specific provider for the Java Security API. |
ICryptoTransform |
CreateEncryptor(byte[] key,
byte[] iv,
byte[] authenticationData,
Provider provider)
Creates a
ICryptoTransform implementation for encryption
using the supplied initialization vector and the specific provider for the Java Security API. |
protected AesCbcHmacSha2(String name)
public ICryptoTransform CreateDecryptor(byte[] key, byte[] iv, byte[] authenticationData, byte[] authenticationTag) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException
SymmetricEncryptionAlgorithmICryptoTransform implementation for decryption
using the supplied initialization vector and the specific provider for the Java Security API.CreateDecryptor in class SymmetricEncryptionAlgorithmkey - The key material to be used.iv - The initialization vector to be used.authenticationData - The authentication data to be used with authenticating encryption algorithms (ignored for non-authenticating algorithms)authenticationTag - The authentication tag to verify when using authenticating encryption algorithms (ignored for non-authenticating algorithms)ICryptoTransform implementationInvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidAlgorithmParameterExceptionpublic ICryptoTransform CreateDecryptor(byte[] key, byte[] iv, byte[] authenticationData, byte[] authenticationTag, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException
SymmetricEncryptionAlgorithmICryptoTransform implementation for decryption
using the supplied initialization vector and the specific provider for the Java Security API.CreateDecryptor in class SymmetricEncryptionAlgorithmkey - The key material to be used.iv - The initialization vector to be used.authenticationData - The authentication data to be used with authenticating encryption algorithms (ignored for non-authenticating algorithms)authenticationTag - The authentication tag to verify when using authenticating encryption algorithms (ignored for non-authenticating algorithms)provider - The provider to use.ICryptoTransform implementationInvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidAlgorithmParameterExceptionpublic ICryptoTransform CreateEncryptor(byte[] key, byte[] iv, byte[] authenticationData) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException
SymmetricEncryptionAlgorithmICryptoTransform implementation for encryption
using the supplied initialization vector and the specific provider for the Java Security API.CreateEncryptor in class SymmetricEncryptionAlgorithmkey - The key material to be used.iv - The initialization vector to be used.authenticationData - The authentication data to be used with authenticating encryption algorithms (ignored for non-authenticating algorithms)ICryptoTransform implementationInvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidAlgorithmParameterExceptionpublic ICryptoTransform CreateEncryptor(byte[] key, byte[] iv, byte[] authenticationData, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException
SymmetricEncryptionAlgorithmICryptoTransform implementation for encryption
using the supplied initialization vector and the specific provider for the Java Security API.CreateEncryptor in class SymmetricEncryptionAlgorithmkey - The key material to be used.iv - The initialization vector to be used.authenticationData - The authentication data to be used with authenticating encryption algorithms (ignored for non-authenticating algorithms)provider - The provider to use.ICryptoTransform implementationInvalidKeyExceptionNoSuchAlgorithmExceptionNoSuchPaddingExceptionInvalidAlgorithmParameterException/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/