public class PBEDecryptor extends Cipher
| Constructor and Description |
|---|
PBEDecryptor(PBEAlg aPBEAlg) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
doFinal(byte[] aData) |
int |
getBlockSize() |
CipherAlg |
getCipherAlgorithm() |
void |
init(byte[] aKey,
AlgorithmParams aParams) |
void |
init(java.security.Key aKey,
AlgorithmParams aParams) |
boolean |
isEncryptor() |
byte[] |
process(byte[] aData)
Process subsequent block of data
|
void |
reset()
Reset underlying cipher for reuse
|
getCipherAlgorithmStrpublic PBEDecryptor(PBEAlg aPBEAlg)
public void init(java.security.Key aKey,
AlgorithmParams aParams)
throws CryptoException
init in class CipheraKey - that will be used for cipher processCryptoException - if key is not suitablepublic void init(byte[] aKey,
AlgorithmParams aParams)
throws CryptoException
init in class CipheraKey - material that will be used for cipher process.CryptoException - if key is not suitablepublic void reset()
throws CryptoException
Cipherreset in class CipherCryptoException - if init failspublic byte[] process(byte[] aData)
throws CryptoException
Cipherprocess in class CipheraData - to be processed. If underlying cipher processes fixed amount on block than this data length must be
multiple of block size.CryptoException - if anything goes wrongpublic byte[] doFinal(byte[] aData)
throws CryptoException
doFinal in interface tr.gov.tubitak.uekae.esya.api.common.crypto.BaseCipherdoFinal in class CipherCryptoExceptionpublic int getBlockSize()
getBlockSize in class Cipherpublic boolean isEncryptor()
isEncryptor in class Cipherpublic CipherAlg getCipherAlgorithm()
getCipherAlgorithm in class CipherCopyright © 2025. All rights reserved.