| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static byte[] | des3Expand(byte[] input, int
index of starting byte (inclusive) start, int index of ending byte (exclusive) end)From RFC 3961. |
| 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.
|
| protected int | getKeySeedLength()
Implements abstract sun.
|
| private static byte[] | |
| public byte[] | |
| protected byte[] | randomToKey(byte[] in)
Implements abstract sun.
|
| private static void | setParityBit(byte[] key)
Sets the parity bit (0th bit) in each byte so that each byte contains an odd number of 1's. |
| public byte[] | |
| private byte[] |
| ZERO_IV | back to summary |
|---|---|
| private static final byte[] ZERO_IV | |
| Des3DkCrypto | back to summary |
|---|---|
| public Des3DkCrypto() | |
| des3Expand | back to summary |
|---|---|
| private static byte[] des3Expand(byte[] input, int start, int end) From RFC 3961. Expands a 7-byte array into an 8-byte array that contains parity bits. The 56 bits are expanded into 64 bits as follows: 1 2 3 4 5 6 7 p 9 10 11 12 13 14 15 p 17 18 19 20 21 22 23 p 25 26 27 28 29 30 31 p 33 34 35 36 37 38 39 p 41 42 43 44 45 46 47 p 49 50 51 52 53 54 55 p 56 48 40 32 24 16 8 p (PI,P2,...,P8) are reserved for parity bits computed on the preceding seven independent bits and set so that the parity of the octet is odd, i.e., there is an odd number of "1" bits in the octet.
| |
| 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. | |
| getKeySeedLength | back to summary |
|---|---|
| protected int getKeySeedLength() Implements abstract sun. | |
| keyCorrection | back to summary |
|---|---|
| private static byte[] keyCorrection(byte[] key) | |
| parityFix | back to summary |
|---|---|
| public byte[] parityFix(byte[] value) throws GeneralSecurityException | |
| randomToKey | back to summary |
|---|---|
| protected byte[] randomToKey(byte[] in) Implements abstract sun. | |
| setParityBit | back to summary |
|---|---|
| private static void setParityBit(byte[] key) Sets the parity bit (0th bit) in each byte so that each byte contains an odd number of 1's. | |
| stringToKey | back to summary |
|---|---|
| public byte[] stringToKey(char[] salt) throws GeneralSecurityException | |
| stringToKey | back to summary |
|---|---|
| private byte[] stringToKey(byte[] secretAndSalt, byte[] opaque) throws GeneralSecurityException | |