| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| pack-priv static boolean | |
| private final int | |
| private final int | |
| private Cipher | |
| pack-priv static BaseCipher. | |
| private final int | |
| private final int | |
| private final int | |
| protected Cipher. | |
| private String | |
| private SecretKey | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | BaseCipher(int ivsize, int authSize, int kdfSize, String algorithm, int keySize, String transformation, int blkSize)
|
| Modifier and Type | Method and Description |
|---|---|
| protected Cipher | |
| protected AlgorithmParameterSpec | |
| public String | |
| public int | |
| public int | |
| protected Cipher | |
| public int | |
| public int | |
| public int | |
| public String | |
| public void | init(Cipher.
Encrypt/Decrypt initialization mode,Key bytes key, byte[] Initialization vector bytes iv)Implements org. Initialize the cipher for encryption or decryption with the given key and initialization vector |
| protected byte[] | |
| protected byte[] | |
| protected void | |
| protected static byte[] | |
| public String | |
| public void | update(byte[]
The input/output bytes input, int The offset of the data in the data buffer inputOffset, int The number of bytes to update, starting at the given offset; must be a multiple of the
cipher's block size inputLen)Implements org. Performs in-place encryption or decryption on the given data. |
| public void | updateAAD(byte[]
The additional data to authenticate data, int The offset of the additional data in the buffer offset, int The number of bytes in the buffer to use for authentication length)Implements org. Adds the provided input data as additional authenticated data during encryption or decryption. |
| algorithm | back to summary |
|---|---|
| private final String algorithm | |
| alwaysReInit | back to summary |
|---|---|
| pack-priv static boolean alwaysReInit | |
| authSize | back to summary |
|---|---|
| private final int authSize | |
| blkSize | back to summary |
|---|---|
| private final int blkSize | |
| cipher | back to summary |
|---|---|
| private Cipher cipher | |
| factory | back to summary |
|---|---|
| pack-priv static BaseCipher. | |
| ivsize | back to summary |
|---|---|
| private final int ivsize | |
| kdfSize | back to summary |
|---|---|
| private final int kdfSize | |
| keySize | back to summary |
|---|---|
| private final int keySize | |
| mode | back to summary |
|---|---|
| protected Cipher. | |
| s | back to summary |
|---|---|
| private String s | |
| secretKey | back to summary |
|---|---|
| private SecretKey secretKey | |
| transformation | back to summary |
|---|---|
| private final String transformation | |
| BaseCipher | back to summary |
|---|---|
| public BaseCipher(int ivsize, int authSize, int kdfSize, String algorithm, int keySize, String transformation, int blkSize) | |
| createCipherInstance | back to summary |
|---|---|
| protected Cipher createCipherInstance(Cipher. | |
| determineNewParameters | back to summary |
|---|---|
| protected AlgorithmParameterSpec determineNewParameters(byte[] processed, int offset, int length) | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements org.
| |
| getAuthenticationTagSize | back to summary |
|---|---|
| public int getAuthenticationTagSize() Implements org.
| |
| getCipherBlockSize | back to summary |
|---|---|
| public int getCipherBlockSize() Implements org.
| |
| getCipherInstance | back to summary |
|---|---|
| protected Cipher getCipherInstance() | |
| getIVSize | back to summary |
|---|---|
| public int getIVSize() Implements org.
| |
| getKdfSize | back to summary |
|---|---|
| public int getKdfSize() Implements org.
| |
| getKeySize | back to summary |
|---|---|
| public int getKeySize() Implements org.
| |
| getTransformation | back to summary |
|---|---|
| public String getTransformation() Implements org.
| |
| init | back to summary |
|---|---|
| public void init(Cipher. Implements org. Doc from org. Initialize the cipher for encryption or decryption with the given key and initialization vector | |
| initializeIVData | back to summary |
|---|---|
| protected byte[] initializeIVData(Cipher. | |
| initializeKeyData | back to summary |
|---|---|
| protected byte[] initializeKeyData(Cipher. | |
| reInit | back to summary |
|---|---|
| protected void reInit(byte[] processed, int offset, int length) throws InvalidKeyException, InvalidAlgorithmParameterException | |
| resize | back to summary |
|---|---|
| protected static byte[] resize(byte[] data, int size) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| update | back to summary |
|---|---|
| public void update(byte[] input, int inputOffset, int inputLen) throws Exception Implements org. Doc from org. Performs in-place encryption or decryption on the given data. | |
| updateAAD | back to summary |
|---|---|
| public void updateAAD(byte[] data, int offset, int length) throws Exception Implements org. Doc from org. Adds the provided input data as additional authenticated data during encryption or decryption. | |
| Modifier and Type | Method and Description |
|---|---|
| public Cipher |
| getCipher | back to summary |
|---|---|
| public Cipher getCipher(String transformation) throws GeneralSecurityException | |