public class OKVCryptoContext
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
byte[] |
getAuthEncryptionAdditionalData()
Get Authenticated Encryption Additional Data from OKVCryptoContext.
|
byte[] |
getAuthEncryptionTag()
Get Authenticated Encryption Tag from OKVCryptoContext.
|
OKVTagEnum |
getBlockCipherMode()
Get Block Cipher Mode value from OKVCryptoContext.
|
OKVTagEnum |
getCryptoAlgo()
Get crypto algorithm value from OKVCryptoContext.
|
OKVTagEnum |
getCryptoOperation()
Get the crypto operation.
|
OKVTagEnum |
getDigitalSignAlgo()
Get digital signing algorithm value from OKVCryptoContext.
|
OKVTagEnum |
getHashingAlgo()
Get hashing algorithm value from OKVCryptoContext.
|
byte[] |
getIV()
Get IV value from OKVCryptoContext.
|
OKVTagEnum |
getPadding()
Get padding value from OKVCryptoContext.
|
java.lang.Boolean |
getRandomIV()
Get Random IV value from OKVCryptoContext.
|
static OKVCryptoContext |
okvCryptoContextCreate(OKVTagEnum cryptoOperation)
Initializes and returns an empty OKVCryptoContext object for a
specific crypto operation.
|
void |
setAuthEncryptionAdditionalData(byte[] authEncryptionAdditionalData)
Set Authenticated Encryption Additional Data in OKVCryptoContext.
|
void |
setAuthEncryptionTag(byte[] authEncryptionTag)
Set Authenticated Encryption Tag in OKVCryptoContext.
|
void |
setBlockCipherMode(OKVTagEnum blockCipherMode)
Set Block Cipher Mode value in OKVCryptoContext.
|
void |
setCryptoAlgo(OKVTagEnum cryptoAlgo)
Set crypto algorithm value in OKVCryptoContext.
|
void |
setDigitalSignAlgo(OKVTagEnum digitalSignAlgo)
Set digital signing algorithm value in OKVCryptoContext.
|
void |
setHashingAlgo(OKVTagEnum hashingAlgo)
Set hashing algorithm value in OKVCryptoContext.
|
void |
setIV(byte[] iv)
Set IV value in OKVCryptoContext.
|
void |
setPadding(OKVTagEnum padding)
Set padding value in OKVCryptoContext.
|
void |
setRandomIV(java.lang.Boolean randomIV)
Set random IV value in OKVCryptoContext.
|
public static OKVCryptoContext okvCryptoContextCreate(OKVTagEnum cryptoOperation)
cryptoOperation
- enum value of the crypto operationpublic OKVTagEnum getCryptoOperation()
public OKVTagEnum getBlockCipherMode()
public void setBlockCipherMode(OKVTagEnum blockCipherMode) throws OKVException
blockCipherMode
- enum value of block cipher modeOKVException
public OKVTagEnum getPadding()
public void setPadding(OKVTagEnum padding) throws OKVException
padding
- enum value of paddingOKVException
public java.lang.Boolean getRandomIV()
public void setRandomIV(java.lang.Boolean randomIV) throws OKVException
randomIV
- boolean value of randomIVOKVException
public byte[] getIV()
public void setIV(byte[] iv) throws OKVException
iv
- byte array of ivOKVException
public OKVTagEnum getCryptoAlgo()
public void setCryptoAlgo(OKVTagEnum cryptoAlgo) throws OKVException
cryptoAlgo
- OKVException
public OKVTagEnum getHashingAlgo()
public void setHashingAlgo(OKVTagEnum hashingAlgo) throws OKVException
hashingAlgo
- OKVException
public OKVTagEnum getDigitalSignAlgo()
public void setDigitalSignAlgo(OKVTagEnum digitalSignAlgo) throws OKVException
digitalSignAlgo
- OKVException
public byte[] getAuthEncryptionAdditionalData()
public void setAuthEncryptionAdditionalData(byte[] authEncryptionAdditionalData) throws OKVException
authEncryptionAdditionalData
- byte array of
authenticated encryption additional dataOKVException
public byte[] getAuthEncryptionTag()
public void setAuthEncryptionTag(byte[] authEncryptionTag) throws OKVException
authEncryptionTag
- byte array of authenticated encryption tagOKVException