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 CipherSupplierAES_CTRstatic CipherSupplierAES_GCMstatic CipherSupplierRFC3394_KEYWRAP
-
Constructor Summary
Constructors Constructor Description CipherSupplier(String cipherAlgorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CipherforDecryption(SecretKey key, AlgorithmParameterSpec params)CipherforEncryption(SecretKey key, AlgorithmParameterSpec params)CipherforUnwrapping(SecretKey kek)CipherforWrapping(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)
-
-