Interface GordianCipherParameters
- All Known Implementing Classes:
GordianCipherParameters.GordianAEADCipherParameters,GordianCipherParameters.GordianKeyAndNonceCipherParameters,GordianCipherParameters.GordianKeyCipherParameters,GordianCipherParameters.GordianPBECipherParameters
public interface GordianCipherParameters
Cipher Parameters.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAEAD Parameters.static classKeyAndNonce Parameters.static classKey Parameters.static interfaceNonce Parameters.static classPBE Parameters. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T extends GordianKeySpec>
GordianCipherParameters.GordianAEADCipherParameters<T> aeadAndNonce(GordianKey<T> pKey, byte[] pInitialAEAD, byte[] pNonce) Obtain aeadAndNonce Parameters.static <T extends GordianKeySpec>
GordianCipherParameters.GordianAEADCipherParameters<T> aeadWithRandomNonce(GordianKey<T> pKey, byte[] pInitialAEAD) Obtain aeadAndRandomNonce Parameters.static <T extends GordianKeySpec>
GordianCipherParameters.GordianKeyCipherParameters<T> key(GordianKey<T> pKey) Obtain keySpec Parameters.static <T extends GordianKeySpec>
GordianCipherParameters.GordianKeyCipherParameters<T> keyAndNonce(GordianKey<T> pKey, byte[] pNonce) Obtain keyAndNonce Parameters.static <T extends GordianKeySpec>
GordianCipherParameters.GordianKeyCipherParameters<T> keyWithRandomNonce(GordianKey<T> pKey) Obtain keyAndRandomNonce Parameters.pbe(GordianPBESpec pPBESpec, char[] pPassword) Obtain pbe Parameters.pbeAndNonce(GordianPBESpec pPBESpec, char[] pPassword, byte[] pNonce) Obtain pneAndNonce Parameters.
-
Method Details
-
key
static <T extends GordianKeySpec> GordianCipherParameters.GordianKeyCipherParameters<T> key(GordianKey<T> pKey) Obtain keySpec Parameters.- Type Parameters:
T- the keyType- Parameters:
pKey- the key- Returns:
- the keySpec
-
keyAndNonce
static <T extends GordianKeySpec> GordianCipherParameters.GordianKeyCipherParameters<T> keyAndNonce(GordianKey<T> pKey, byte[] pNonce) Obtain keyAndNonce Parameters.- Type Parameters:
T- the keyType- Parameters:
pKey- the keypNonce- the nonce- Returns:
- the keySpec
-
keyWithRandomNonce
static <T extends GordianKeySpec> GordianCipherParameters.GordianKeyCipherParameters<T> keyWithRandomNonce(GordianKey<T> pKey) Obtain keyAndRandomNonce Parameters.- Type Parameters:
T- the keyType- Parameters:
pKey- the key- Returns:
- the keySpec
-
aeadAndNonce
static <T extends GordianKeySpec> GordianCipherParameters.GordianAEADCipherParameters<T> aeadAndNonce(GordianKey<T> pKey, byte[] pInitialAEAD, byte[] pNonce) Obtain aeadAndNonce Parameters.- Type Parameters:
T- the keyType- Parameters:
pKey- the keypInitialAEAD- the initialAEADpNonce- the nonce- Returns:
- the keySpec
-
aeadWithRandomNonce
static <T extends GordianKeySpec> GordianCipherParameters.GordianAEADCipherParameters<T> aeadWithRandomNonce(GordianKey<T> pKey, byte[] pInitialAEAD) Obtain aeadAndRandomNonce Parameters.- Type Parameters:
T- the keyType- Parameters:
pKey- the keypInitialAEAD- the initialAEAD- Returns:
- the keySpec
-
pbe
static GordianCipherParameters.GordianPBECipherParameters pbe(GordianPBESpec pPBESpec, char[] pPassword) Obtain pbe Parameters.- Parameters:
pPBESpec- the pbeSpecpPassword- the password- Returns:
- the keySpec
-
pbeAndNonce
static GordianCipherParameters.GordianPBECipherParameters pbeAndNonce(GordianPBESpec pPBESpec, char[] pPassword, byte[] pNonce) Obtain pneAndNonce Parameters.- Parameters:
pPBESpec- the pbeSpecpPassword- the passwordpNonce- the nonce- Returns:
- the keySpec
-