| Modifier and Type | Field and Description |
|---|---|
| private static final long[] | |
| private static final String | |
| private static final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final boolean | |
| public static final boolean | |
| public static void | cbc_encrypt(byte[]
plain text. input, byte[] the buffer for the result. output, byte[] DES the key to encrypt the text. key, byte[] initialization vector. ivec, boolean encrypt)Creates a DES cipher in Electronic Codebook mode, with no padding. |
| public static long | Returns: DES key.a char[] used to create the key. passwdChars)Generates DES key from the password. |
| public static byte[] | Returns: the last block of ciphertext.Initialization vector. ivec, byte[] Input message as an byte array. msg, byte[] DES key to encrypt the message. key)Encrypts the message blocks using DES CBC and output the final block of 8-byte ciphertext. |
| public static byte[] | |
| public static void | |
| public static void | |
| public static long | |
| public static long | |
| pack-priv static byte[] | Returns: the data being padded.the raw data. data)Pads the data so that its length is a multiple of 8 bytes. |
| public static final byte[] | |
| public static final long | |
| public static byte[] |
| bad_keys | back to summary |
|---|---|
| private static final long[] bad_keys | |
| CHARSET | back to summary |
|---|---|
| private static final String CHARSET | |
| good_parity | back to summary |
|---|---|
| private static final byte[] good_parity | |
| Des | back to summary |
|---|---|
| public Des() | |
| bad_key | back to summary |
|---|---|
| public static final boolean bad_key(long key) | |
| bad_key | back to summary |
|---|---|
| public static final boolean bad_key(byte[] key) | |
| cbc_encrypt | back to summary |
|---|---|
| public static void cbc_encrypt(byte[] input, byte[] output, byte[] key, byte[] ivec, boolean encrypt) throws KrbCryptoException Creates a DES cipher in Electronic Codebook mode, with no padding.
| |
| char_to_key | back to summary |
|---|---|
| public static long char_to_key(char[] passwdChars) throws KrbCryptoException Generates DES key from the password.
| |
| des_cksum | back to summary |
|---|---|
| public static byte[] des_cksum(byte[] ivec, byte[] msg, byte[] key) throws KrbCryptoException Encrypts the message blocks using DES CBC and output the final block of 8-byte ciphertext.
| |
| long2octet | back to summary |
|---|---|
| public static byte[] long2octet(long input) | |
| long2octet | back to summary |
|---|---|
| public static void long2octet(long input, byte[] output) | |
| long2octet | back to summary |
|---|---|
| public static void long2octet(long input, byte[] output, int offset) | |
| octet2long | back to summary |
|---|---|
| public static long octet2long(byte[] input) | |
| octet2long | back to summary |
|---|---|
| public static long octet2long(byte[] input, int offset) | |
| pad | back to summary |
|---|---|
| pack-priv static byte[] pad(byte[] data) Pads the data so that its length is a multiple of 8 bytes.
| |
| set_parity | back to summary |
|---|---|
| public static final byte[] set_parity(byte[] key) | |
| set_parity | back to summary |
|---|---|
| public static final long set_parity(long key) | |
| string_to_key_bytes | back to summary |
|---|---|
| public static byte[] string_to_key_bytes(char[] passwdChars) throws KrbCryptoException | |