Interface GordianKeyedCipher<T extends GordianKeySpec>
- Type Parameters:
T- the keyType
- All Superinterfaces:
GordianCipher
- All Known Subinterfaces:
GordianStreamAEADCipher,GordianStreamCipher,GordianSymAEADCipher,GordianSymCipher
GordianKnot Keyed Cipher.
-
Method Summary
Modifier and TypeMethodDescriptionObtain the cipherSpec.byte[]Obtain the initialAEAD.byte[]Obtain the initVector.Obtain the keyType.byte[]Obtain the pbeSalt.Obtain the pbeSpec.voidinitForDecrypt(GordianCipherParameters pParams) Initialise the cipher for decryption.voidinitForEncrypt(GordianCipherParameters pParams) Initialise the cipher for encryption.
-
Method Details
-
getKeyType
T getKeyType()Obtain the keyType.- Returns:
- the keyType
-
getCipherSpec
GordianCipherSpec<T> getCipherSpec()Obtain the cipherSpec.- Returns:
- the spec
-
getInitVector
byte[] getInitVector()Obtain the initVector.- Returns:
- the initVector
-
getInitialAEAD
byte[] getInitialAEAD()Obtain the initialAEAD.- Returns:
- the initialAEAD
-
getPBESalt
byte[] getPBESalt()Obtain the pbeSalt.- Returns:
- the pbeSalt
-
getPBESpec
GordianPBESpec getPBESpec()Obtain the pbeSpec.- Returns:
- the pbeSpec
-
initForEncrypt
Initialise the cipher for encryption.- Parameters:
pParams- the parameters- Throws:
GordianException- on error
-
initForDecrypt
Initialise the cipher for decryption.- Parameters:
pParams- the parameters- Throws:
GordianException- on error
-