CipherFactory
| Modifier and Type | Field and Description |
|---|---|
| private Cipher | |
| private SecretKey | |
| private final int | |
| private final IvParameterSpec | |
| private boolean | |
| private int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | decrypt(byte[]
the byte array containing the ciphertext ciphertext, int decrypt from this byte offset in the ciphertext offset, int decrypt this many bytes starting from offset length, byte[] the byte array to store the cleartext cleartext, int the offset into the cleartext array the output
should go
If cleartext and ciphertext are the same array, caller must be careful
to not overwrite the ciphertext before it is un-scrambled. outputOffset)Implements org. Decrypt data - use only with Cipher that has been initialized with CipherFactory.DECRYPT. |
| public int | encrypt(byte[]
the byte array containing the cleartext cleartext, int encrypt from this byte offset in the cleartext offset, int encrypt this many bytes starting from offset length, byte[] the byte array to store the ciphertext ciphertext, int the offset into the ciphertext array the output
should go
If cleartext and ciphertext are the same array, caller must be careful
to not overwrite the cleartext before it is scrambled. outputOffset)Implements org. Encrypt data - use only with Cipher that has been initialized with CipherFactory.ENCRYPT. |
| public int | getEncryptionBlockSize()
Implements org. Returns the encryption block size used during creation of the encrypted database |
| pack-priv boolean |
| cipher | back to summary |
|---|---|
| private Cipher cipher | |
| cryptixKey | back to summary |
|---|---|
| private SecretKey cryptixKey | |
| encryptionBlockSize | back to summary |
|---|---|
| private final int encryptionBlockSize | |
| ivspec | back to summary |
|---|---|
| private final IvParameterSpec ivspec | |
| ivUsed | back to summary |
|---|---|
| private boolean ivUsed | |
| mode | back to summary |
|---|---|
| private int mode | |
| sunjce | back to summary |
|---|---|
| private boolean sunjce | |
| JCECipherProvider | back to summary |
|---|---|
| pack-priv JCECipherProvider(int mode, SecretKey secretKey, byte[] iv, String algorithm, String provider) throws StandardException | |
| decrypt | back to summary |
|---|---|
| public int decrypt(byte[] ciphertext, int offset, int length, byte[] cleartext, int outputOffset) throws StandardException Implements org. Doc from org. Decrypt data - use only with Cipher that has been initialized with CipherFactory.DECRYPT.
| |
| encrypt | back to summary |
|---|---|
| public int encrypt(byte[] cleartext, int offset, int length, byte[] ciphertext, int outputOffset) throws StandardException Implements org. Doc from org. Encrypt data - use only with Cipher that has been initialized with CipherFactory.ENCRYPT.
| |
| getEncryptionBlockSize | back to summary |
|---|---|
| public int getEncryptionBlockSize() Implements org. Doc from org. Returns the encryption block size used during creation of the encrypted database
| |
| verifyIV | back to summary |
|---|---|
| pack-priv boolean verifyIV(byte[] IV) | |