Package com.hierynomus.security.bc
Class BCCipherFactory.BCBlockCipher
java.lang.Object
com.hierynomus.security.bc.BCCipherFactory.BCBlockCipher
- All Implemented Interfaces:
Cipher
- Enclosing class:
BCCipherFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.hierynomus.security.Cipher
Cipher.CryptMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.bouncycastle.crypto.BufferedBlockCipher
-
Constructor Summary
ConstructorsConstructorDescriptionBCBlockCipher
(org.bouncycastle.crypto.BufferedBlockCipher bufferedBlockCipher) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.bouncycastle.crypto.CipherParameters
createParams
(byte[] key) int
doFinal
(byte[] out, int outOff) void
init
(Cipher.CryptMode cryptMode, byte[] bytes) void
reset()
int
update
(byte[] in, int inOff, int bytes, byte[] out, int outOff)
-
Field Details
-
wrappedCipher
private org.bouncycastle.crypto.BufferedBlockCipher wrappedCipher
-
-
Constructor Details
-
BCBlockCipher
BCBlockCipher(org.bouncycastle.crypto.BufferedBlockCipher bufferedBlockCipher)
-
-
Method Details
-
init
-
update
public int update(byte[] in, int inOff, int bytes, byte[] out, int outOff) -
doFinal
- Specified by:
doFinal
in interfaceCipher
- Throws:
SecurityException
-
reset
public void reset() -
createParams
protected abstract org.bouncycastle.crypto.CipherParameters createParams(byte[] key)
-