Package org.cryptomator.cryptolib.common
Class CipherSupplier
- java.lang.Object
-
- org.cryptomator.cryptolib.common.CipherSupplier
-
public final class CipherSupplier extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static CipherSupplier
AES_CTR
static CipherSupplier
AES_GCM
static CipherSupplier
RFC3394_KEYWRAP
-
Constructor Summary
Constructors Constructor Description CipherSupplier(String cipherAlgorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cipher
forDecryption(SecretKey key, AlgorithmParameterSpec params)
Cipher
forEncryption(SecretKey key, AlgorithmParameterSpec params)
Cipher
forUnwrapping(SecretKey kek)
Cipher
forWrapping(SecretKey kek)
-
-
-
Field Detail
-
AES_CTR
public static final CipherSupplier AES_CTR
-
AES_GCM
public static final CipherSupplier AES_GCM
-
RFC3394_KEYWRAP
public static final CipherSupplier RFC3394_KEYWRAP
-
-
Constructor Detail
-
CipherSupplier
public CipherSupplier(String cipherAlgorithm)
-
-
Method Detail
-
forEncryption
public Cipher forEncryption(SecretKey key, AlgorithmParameterSpec params)
-
forDecryption
public Cipher forDecryption(SecretKey key, AlgorithmParameterSpec params)
-
-