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
|
getCipherAlgorithmStr
public PBEDecryptor(PBEAlg aPBEAlg)
public void init(java.security.Key aKey, AlgorithmParams aParams) throws CryptoException
init
in class Cipher
aKey
- that will be used for cipher processCryptoException
- if key is not suitablepublic void init(byte[] aKey, AlgorithmParams aParams) throws CryptoException
init
in class Cipher
aKey
- material that will be used for cipher process.CryptoException
- if key is not suitablepublic void reset() throws CryptoException
Cipher
reset
in class Cipher
CryptoException
- if init failspublic byte[] process(byte[] aData) throws CryptoException
Cipher
process
in class Cipher
aData
- 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.BaseCipher
doFinal
in class Cipher
CryptoException
public int getBlockSize()
getBlockSize
in class Cipher
public boolean isEncryptor()
isEncryptor
in class Cipher
public CipherAlg getCipherAlgorithm()
getCipherAlgorithm
in class Cipher
Copyright © 2025. All rights reserved.