public class DecryptParameters extends Object
Modifier and Type | Method and Description |
---|---|
static DecryptParameters |
createA128CbcPadParameters(byte[] ciphertext,
byte[] iv)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A128CBCPAD . |
static DecryptParameters |
createA128CbcParameters(byte[] ciphertext,
byte[] iv)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A128CBC . |
static DecryptParameters |
createA128GcmParameters(byte[] ciphertext,
byte[] iv,
byte[] authenticationTag)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A128GCM . |
static DecryptParameters |
createA128GcmParameters(byte[] ciphertext,
byte[] iv,
byte[] authenticationTag,
byte[] additionalAuthenticatedData)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A128GCM . |
static DecryptParameters |
createA192CbcPadParameters(byte[] ciphertext,
byte[] iv)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A192CBCPAD . |
static DecryptParameters |
createA192CbcParameters(byte[] ciphertext,
byte[] iv)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A192CBC . |
static DecryptParameters |
createA192GcmParameters(byte[] ciphertext,
byte[] iv,
byte[] authenticationTag)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A192GCM . |
static DecryptParameters |
createA192GcmParameters(byte[] ciphertext,
byte[] iv,
byte[] authenticationTag,
byte[] additionalAuthenticatedData)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A192GCM . |
static DecryptParameters |
createA256CbcPadParameters(byte[] ciphertext,
byte[] iv)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A256CBCPAD . |
static DecryptParameters |
createA256CbcParameters(byte[] ciphertext,
byte[] iv)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A256CBC . |
static DecryptParameters |
createA256GcmParameters(byte[] ciphertext,
byte[] iv,
byte[] authenticationTag)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A256GCM . |
static DecryptParameters |
createA256GcmParameters(byte[] ciphertext,
byte[] iv,
byte[] authenticationTag,
byte[] additionalAuthenticatedData)
Factory method to create an instance of
DecryptParameters with the given parameters for
EncryptionAlgorithm.A256GCM . |
byte[] |
getAdditionalAuthenticatedData()
Get additional data to authenticate when performing decryption with an authenticated algorithm.
|
EncryptionAlgorithm |
getAlgorithm()
The algorithm to be used for decryption.
|
byte[] |
getAuthenticationTag()
Get the tag to authenticate when performing decryption with an authenticated algorithm.
|
byte[] |
getCipherText()
Get the content to be decrypted.
|
byte[] |
getIv()
Get the initialization vector to be used in the decryption operation using a symmetric algorithm.
|
public static DecryptParameters createA128CbcParameters(byte[] ciphertext, byte[] iv)
DecryptParameters
with the given parameters for
EncryptionAlgorithm.A128CBC
.ciphertext
- The content to be decrypted.iv
- Initialization vector for the decryption operation.DecryptParameters
.public static DecryptParameters createA128CbcPadParameters(byte[] ciphertext, byte[] iv)
DecryptParameters
with the given parameters for
EncryptionAlgorithm.A128CBCPAD
.ciphertext
- The content to be decrypted.iv
- Initialization vector for the decryption operation.DecryptParameters
.public static DecryptParameters createA128GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag)
DecryptParameters
with the given parameters for
EncryptionAlgorithm.A128GCM
.ciphertext
- The content to be decrypted.iv
- Initialization vector for the decryption operation.authenticationTag
- The tag to authenticate when performing decryption.DecryptParameters
.public static DecryptParameters createA128GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData)
DecryptParameters
with the given parameters for
EncryptionAlgorithm.A128GCM
.ciphertext
- The content to be decrypted.iv
- Initialization vector for the decryption operation.authenticationTag
- The tag to authenticate when performing decryption.additionalAuthenticatedData
- Additional data to authenticate when using authenticated crypto algorithms.DecryptParameters
.public static DecryptParameters createA192CbcParameters(byte[] ciphertext, byte[] iv)
DecryptParameters
with the given parameters for
EncryptionAlgorithm.A192CBC
.ciphertext
- The content to be decrypted.iv
- Initialization vector for the decryption operation.DecryptParameters
.public static DecryptParameters createA192CbcPadParameters(byte[] ciphertext, byte[] iv)
DecryptParameters
with the given parameters for
EncryptionAlgorithm.A192CBCPAD
.ciphertext
- The content to be decrypted.iv
- Initialization vector for the decryption operation.DecryptParameters
.public static DecryptParameters createA192GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag)
DecryptParameters
with the given parameters for
EncryptionAlgorithm.A192GCM
.ciphertext
- The content to be decrypted.iv
- Initialization vector for the decryption operation.authenticationTag
- The tag to authenticate when performing decryption.DecryptParameters
.public static DecryptParameters createA192GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData)
DecryptParameters
with the given parameters for
EncryptionAlgorithm.A192GCM
.ciphertext
- The content to be decrypted.iv
- Initialization vector for the decryption operation.authenticationTag
- The tag to authenticate when performing decryption.additionalAuthenticatedData
- Additional data to authenticate when using authenticated crypto algorithms.DecryptParameters
.public static DecryptParameters createA256CbcParameters(byte[] ciphertext, byte[] iv)
DecryptParameters
with the given parameters for
EncryptionAlgorithm.A256CBC
.ciphertext
- The content to be decrypted.iv
- Initialization vector for the decryption operation.DecryptParameters
.public static DecryptParameters createA256CbcPadParameters(byte[] ciphertext, byte[] iv)
DecryptParameters
with the given parameters for
EncryptionAlgorithm.A256CBCPAD
.ciphertext
- The content to be decrypted.iv
- Initialization vector for the decryption operation.DecryptParameters
.public static DecryptParameters createA256GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag)
DecryptParameters
with the given parameters for
EncryptionAlgorithm.A256GCM
.ciphertext
- The content to be decrypted.iv
- Initialization vector for the decryption operation.authenticationTag
- The tag to authenticate when performing decryption.DecryptParameters
.public static DecryptParameters createA256GcmParameters(byte[] ciphertext, byte[] iv, byte[] authenticationTag, byte[] additionalAuthenticatedData)
DecryptParameters
with the given parameters for
EncryptionAlgorithm.A256GCM
.ciphertext
- The content to be decrypted.iv
- Initialization vector for the decryption operation.authenticationTag
- The tag to authenticate when performing decryption.additionalAuthenticatedData
- Additional data to authenticate when using authenticated crypto algorithms.DecryptParameters
.public EncryptionAlgorithm getAlgorithm()
public byte[] getCipherText()
public byte[] getIv()
public byte[] getAdditionalAuthenticatedData()
public byte[] getAuthenticationTag()
Copyright © 2021 Microsoft Corporation. All rights reserved.