public class BufferedCipher
extends java.lang.Object
implements tr.gov.tubitak.uekae.esya.api.common.crypto.BaseCipher
Constructor and Description |
---|
BufferedCipher(Cipher aCipher) |
Modifier and Type | Method and Description |
---|---|
byte[] |
doFinal(byte[] aData)
Last step of decryption.
|
CipherAlg |
getCipherAlg() |
CipherAlg |
getCipherAlgorithm() |
java.lang.String |
getCipherAlgorithmStr() |
Cipher |
getInternalCipher() |
void |
init(byte[] aKey,
AlgorithmParams aParams) |
void |
init(java.security.Key aKey,
AlgorithmParams aParams) |
void |
process(byte[] aData) |
void |
process(byte[] aData,
int aOffset,
int aLength) |
void |
reset()
If user supplied stream is used, it should be set again, cause
OutputStream dont have reset method
|
void |
setStream(java.io.OutputStream aOutputStream)
This method changes behaviour of the BufferedCipher and must be used before
calling any of the update methods.
|
public BufferedCipher(Cipher aCipher)
public Cipher getInternalCipher()
public CipherAlg getCipherAlg()
public void setStream(java.io.OutputStream aOutputStream)
aOutputStream
- stream that processes data will be output.public void init(java.security.Key aKey, AlgorithmParams aParams) throws CryptoException
CryptoException
public void init(byte[] aKey, AlgorithmParams aParams) throws CryptoException
CryptoException
public void reset() throws CryptoException
CryptoException
public void process(byte[] aData) throws CryptoException
CryptoException
public void process(byte[] aData, int aOffset, int aLength) throws CryptoException
CryptoException
public byte[] doFinal(byte[] aData) throws CryptoException
doFinal
in interface tr.gov.tubitak.uekae.esya.api.common.crypto.BaseCipher
aData
- final part for the decrption.CryptoException
- if anything goes wrongpublic CipherAlg getCipherAlgorithm()
public java.lang.String getCipherAlgorithmStr()
getCipherAlgorithmStr
in interface tr.gov.tubitak.uekae.esya.api.common.crypto.BaseCipher
Copyright © 2025. All rights reserved.