| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final boolean | |
| private static final int | |
| private static final int | |
| private final int | |
| private static final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | calculateChecksum(byte[] baseKey, int usage, byte[] input, int start, int len)
Overrides sun. Calculate the checksum |
| public byte[] | decrypt(byte[]
key from which keys are to be derived using usage baseKey, int usage, byte[] ivec, byte[] E(Ke, conf | plaintext | padding, ivec) | H1[1..h] ciphertext, int start, int len)Overrides sun.
|
| private byte[] | decryptCTS(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len, boolean confounder_exists)
Decrypt AES in CBC-CTS mode using derived keys. |
| public byte[] | decryptRaw(byte[]
encryption key to use baseKey, int ignored usage, byte[] ivec, byte[] encrypted data to be decrypted ciphertext, int start, int len)Overrides sun. Decrypts data using specified key and initial vector. |
| public byte[] | encrypt(byte[] baseKey, int usage, byte[] ivec, byte[] new_ivec, byte[] plaintext, int start, int len)
Overrides sun. Performs encryption using derived key; adds confounder. |
| private byte[] | encryptCTS(byte[] baseKey, int usage, byte[] ivec, byte[] new_ivec, byte[] plaintext, int start, int len, boolean confounder_exists)
Encrypt AES in CBC-CTS mode using derived keys. |
| public byte[] | encryptRaw(byte[] baseKey, int usage, byte[] ivec, byte[] plaintext, int start, int len)
Overrides sun. Performs encryption using derived key; does not add confounder. |
| public int | getChecksumLength()
Implements abstract sun.
|
| protected Cipher | getCipher(byte[] key, byte[] ivec, int mode)
Implements abstract sun.
|
| protected byte[] | getHmac(byte[] key, byte[] msg)
Implements abstract sun. Get the truncated HMAC |
| protected int | getKeySeedLength()
Implements abstract sun.
|
| private static byte[] | |
| protected byte[] | randomToKey(byte[] in)
Implements abstract sun.
|
| public byte[] | |
| private byte[] |
| BLOCK_SIZE | back to summary |
|---|---|
| private static final int BLOCK_SIZE | |
| debug | back to summary |
|---|---|
| private static final boolean debug | |
| DEFAULT_ITERATION_COUNT | back to summary |
|---|---|
| private static final int DEFAULT_ITERATION_COUNT | |
| hashSize | back to summary |
|---|---|
| private static final int hashSize | |
| keyLength | back to summary |
|---|---|
| private final int keyLength | |
| ZERO_IV | back to summary |
|---|---|
| private static final byte[] ZERO_IV | |
| AesDkCrypto | back to summary |
|---|---|
| public AesDkCrypto(int length) | |
| calculateChecksum | back to summary |
|---|---|
| public byte[] calculateChecksum(byte[] baseKey, int usage, byte[] input, int start, int len) throws GeneralSecurityException Overrides sun. Calculate the checksum | |
| decrypt | back to summary |
|---|---|
| public byte[] decrypt(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len) throws GeneralSecurityException Overrides sun.
| |
| decryptCTS | back to summary |
|---|---|
| private byte[] decryptCTS(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len, boolean confounder_exists) throws GeneralSecurityException Decrypt AES in CBC-CTS mode using derived keys. | |
| decryptRaw | back to summary |
|---|---|
| public byte[] decryptRaw(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len) throws GeneralSecurityException Overrides sun. Decrypts data using specified key and initial vector.
| |
| encrypt | back to summary |
|---|---|
| public byte[] encrypt(byte[] baseKey, int usage, byte[] ivec, byte[] new_ivec, byte[] plaintext, int start, int len) throws GeneralSecurityException, KrbCryptoException Overrides sun. Performs encryption using derived key; adds confounder. | |
| encryptCTS | back to summary |
|---|---|
| private byte[] encryptCTS(byte[] baseKey, int usage, byte[] ivec, byte[] new_ivec, byte[] plaintext, int start, int len, boolean confounder_exists) throws GeneralSecurityException, KrbCryptoException Encrypt AES in CBC-CTS mode using derived keys. | |
| encryptRaw | back to summary |
|---|---|
| public byte[] encryptRaw(byte[] baseKey, int usage, byte[] ivec, byte[] plaintext, int start, int len) throws GeneralSecurityException, KrbCryptoException Overrides sun. Performs encryption using derived key; does not add confounder. | |
| getChecksumLength | back to summary |
|---|---|
| public int getChecksumLength() Implements abstract sun. | |
| getCipher | back to summary |
|---|---|
| protected Cipher getCipher(byte[] key, byte[] ivec, int mode) throws GeneralSecurityException Implements abstract sun. | |
| getHmac | back to summary |
|---|---|
| protected byte[] getHmac(byte[] key, byte[] msg) throws GeneralSecurityException Implements abstract sun. Get the truncated HMAC | |
| getKeySeedLength | back to summary |
|---|---|
| protected int getKeySeedLength() Implements abstract sun. | |
| PBKDF2 | back to summary |
|---|---|
| private static byte[] PBKDF2(char[] secret, byte[] salt, int count, int keyLength) throws GeneralSecurityException | |
| randomToKey | back to summary |
|---|---|
| protected byte[] randomToKey(byte[] in) Implements abstract sun. | |
| stringToKey | back to summary |
|---|---|
| public byte[] stringToKey(char[] password, String salt, byte[] s2kparams) throws GeneralSecurityException | |
| stringToKey | back to summary |
|---|---|
| private byte[] stringToKey(char[] secret, byte[] salt, byte[] params) throws GeneralSecurityException | |