Package org.syncany.crypto.specs
Class AesGcmCipherSpec
- java.lang.Object
-
- org.syncany.crypto.CipherSpec
-
- org.syncany.crypto.specs.AesGcmCipherSpec
-
- Direct Known Subclasses:
AesGcm128CipherSpec
,AesGcm256CipherSpec
public abstract class AesGcmCipherSpec extends CipherSpec
-
-
Field Summary
-
Fields inherited from class org.syncany.crypto.CipherSpec
ALLOWED_CIPHER_ALGORITHMS
-
-
Constructor Summary
Constructors Constructor Description AesGcmCipherSpec(int id, java.lang.String algorithm, int keySize, int ivSize, boolean needsUnlimitedStrength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
newCipherInputStream(java.io.InputStream underlyingInputStream, byte[] secretKey, byte[] iv)
java.io.OutputStream
newCipherOutputStream(java.io.OutputStream underlyingOutputStream, byte[] secretKey, byte[] iv)
-
Methods inherited from class org.syncany.crypto.CipherSpec
equals, getAlgorithm, getId, getIvSize, getKeySize, hashCode, needsUnlimitedStrength, toString
-
-
-
-
Constructor Detail
-
AesGcmCipherSpec
public AesGcmCipherSpec(int id, java.lang.String algorithm, int keySize, int ivSize, boolean needsUnlimitedStrength)
-
-
Method Detail
-
newCipherOutputStream
public java.io.OutputStream newCipherOutputStream(java.io.OutputStream underlyingOutputStream, byte[] secretKey, byte[] iv) throws CipherException
- Specified by:
newCipherOutputStream
in classCipherSpec
- Throws:
CipherException
-
newCipherInputStream
public java.io.InputStream newCipherInputStream(java.io.InputStream underlyingInputStream, byte[] secretKey, byte[] iv) throws CipherException
- Specified by:
newCipherInputStream
in classCipherSpec
- Throws:
CipherException
-
-