java.lang.Object
org.cryptomator.cryptolib.common.CipherSupplier
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CipherSupplierstatic final CipherSupplierstatic final CipherSupplier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecryptionCipher(SecretKey key, AlgorithmParameterSpec params) Leases a reusable cipher object initialized for decryption.encryptionCipher(SecretKey key, AlgorithmParameterSpec params) Leases a reusable cipher object initialized for encryption.forDecryption(SecretKey key, AlgorithmParameterSpec params) Deprecated.forEncryption(SecretKey key, AlgorithmParameterSpec params) Deprecated.UseencryptionCipher(SecretKey, AlgorithmParameterSpec)instead.forUnwrapping(SecretKey kek) Deprecated.UsekeyUnwrapCipher(SecretKey)instead.forWrapping(SecretKey kek) Deprecated.UsekeyWrapCipher(SecretKey)instead.keyUnwrapCipher(SecretKey kek) Leases a reusable cipher object initialized for unwrapping a key.keyWrapCipher(SecretKey kek) Leases a reusable cipher object initialized for wrapping a key.
-
Field Details
-
AES_CTR
-
AES_GCM
-
RFC3394_KEYWRAP
-
-
Constructor Details
-
CipherSupplier
-
-
Method Details
-
encryptionCipher
Leases a reusable cipher object initialized for encryption.- Parameters:
key- Encryption keyparams- Params such as IV/Nonce- Returns:
- A lease supplying a refurbished Cipher
-
forEncryption
Deprecated.UseencryptionCipher(SecretKey, AlgorithmParameterSpec)instead.Creates a new Cipher object initialized for encryption.- Parameters:
key- Encryption keyparams- Params such as IV/Nonce- Returns:
- New Cipher instance
-
decryptionCipher
Leases a reusable cipher object initialized for decryption.- Parameters:
key- Decryption keyparams- Params such as IV/Nonce- Returns:
- A lease supplying a refurbished Cipher
-
forDecryption
Deprecated.UsedecryptionCipher(SecretKey, AlgorithmParameterSpec)instead.Creates a new Cipher object initialized for decryption.- Parameters:
key- Encryption keyparams- Params such as IV/Nonce- Returns:
- New Cipher instance
-
keyWrapCipher
Leases a reusable cipher object initialized for wrapping a key.- Parameters:
kek- Key encryption key- Returns:
- A lease supplying a refurbished Cipher
-
forWrapping
Deprecated.UsekeyWrapCipher(SecretKey)instead.Creates a new Cipher object initialized for wrapping a key.- Parameters:
kek- Key encryption key- Returns:
- New Cipher instance
-
keyUnwrapCipher
Leases a reusable cipher object initialized for unwrapping a key.- Parameters:
kek- Key encryption key- Returns:
- A lease supplying a refurbished Cipher
-
forUnwrapping
Deprecated.UsekeyUnwrapCipher(SecretKey)instead.Creates a new Cipher object initialized for unwrapping a key.- Parameters:
kek- Key encryption key- Returns:
- New Cipher instance
-
decryptionCipher(SecretKey, AlgorithmParameterSpec)instead.