| Modifier and Type | Field and Description |
|---|---|
| public static boolean | |
| protected static final boolean | |
| pack-priv static final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static byte[] | |
| pack-priv static String | |
| public byte[] | |
| pack-priv static byte[] | |
| pack-priv static byte[] | |
| 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)
|
| 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)Decrypts data using specified key and initial vector. |
| pack-priv byte[] | |
| protected byte[] | |
| public byte[] | encrypt(byte[] baseKey, int usage, byte[]
initial vector to use when initializing the cipher; if null,
then blocksize number of zeros are used, ivec, byte[] if non-null, it is updated upon return to be the
new ivec to use when calling encrypt next time new_ivec, byte[] plaintext, int start, int len)From RFC 3961. |
| public byte[] | encryptRaw(byte[] baseKey, int usage, byte[] ivec, byte[] plaintext, int start, int len)
Performs encryption using given key only; does not add confounder, padding, or checksum. |
| public abstract int | |
| protected abstract Cipher | |
| protected abstract byte[] | |
| protected abstract int | |
| pack-priv static int | |
| pack-priv static byte[] | |
| protected abstract byte[] | |
| public static final int | |
| pack-priv int | |
| pack-priv static void |
| ALLOW_WEAK_PBKDF2_ITERATION_COUNT | back to summary |
|---|---|
| public static boolean ALLOW_WEAK_PBKDF2_ITERATION_COUNT | |
| debug | back to summary |
|---|---|
| protected static final boolean debug | |
| KERBEROS_CONSTANT | back to summary |
|---|---|
| pack-priv static final byte[] KERBEROS_CONSTANT | |
| DkCrypto | back to summary |
|---|---|
| public DkCrypto() | |
| binaryStringToBytes | back to summary |
|---|---|
| private static byte[] binaryStringToBytes(String str) | |
| bytesToString | back to summary |
|---|---|
| pack-priv static String bytesToString(byte[] digest) | |
| calculateChecksum | back to summary |
|---|---|
| public byte[] calculateChecksum(byte[] baseKey, int usage, byte[] input, int start, int len) throws GeneralSecurityException | |
| charToUtf16 | back to summary |
|---|---|
| pack-priv static byte[] charToUtf16(char[] chars) | |
| charToUtf8 | back to summary |
|---|---|
| pack-priv static byte[] charToUtf8(char[] chars) | |
| decrypt | back to summary |
|---|---|
public byte[] decrypt(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len) throws GeneralSecurityException
| |
| decryptRaw | back to summary |
|---|---|
| public byte[] decryptRaw(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len) throws GeneralSecurityException Decrypts data using specified key and initial vector.
| |
| dk | back to summary |
|---|---|
| pack-priv byte[] dk(byte[] key, byte[] constant) throws GeneralSecurityException | |
| dr | back to summary |
|---|---|
| protected byte[] dr(byte[] key, byte[] constant) throws GeneralSecurityException | |
| 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 From RFC 3961. encryption function conf = random string of length c pad = shortest string to bring confounder and plaintext to a length that's a multiple of m (C1, newIV) = E(Ke, conf | plaintext | pad, oldstate.ivec) H1 = HMAC(Ki, conf | plaintext | pad) ciphertext = C1 | H1[1..h] newstate.ivec = newIV
| |
| encryptRaw | back to summary |
|---|---|
| public byte[] encryptRaw(byte[] baseKey, int usage, byte[] ivec, byte[] plaintext, int start, int len) throws GeneralSecurityException, KrbCryptoException Performs encryption using given key only; does not add confounder, padding, or checksum. Incoming data to be encrypted assumed to have the correct blocksize. Ignore key usage. | |
| getChecksumLength | back to summary |
|---|---|
| public abstract int getChecksumLength() | |
| getCipher | back to summary |
|---|---|
| protected abstract Cipher getCipher(byte[] key, byte[] ivec, int mode) throws GeneralSecurityException | |
| getHmac | back to summary |
|---|---|
| protected abstract byte[] getHmac(byte[] key, byte[] plaintext) throws GeneralSecurityException | |
| getKeySeedLength | back to summary |
|---|---|
| protected abstract int getKeySeedLength() | |
| iterationCount | back to summary |
|---|---|
| pack-priv static int iterationCount(byte[] params, int defaultValue) throws InvalidAlgorithmParameterException | |
| nfold | back to summary |
|---|---|
| pack-priv static byte[] nfold(byte[] in, int outbits) | |
| randomToKey | back to summary |
|---|---|
| protected abstract byte[] randomToKey(byte[] in) | |
| readBigEndian | back to summary |
|---|---|
| public static final int readBigEndian(byte[] data, int pos, int size) | |
| roundup | back to summary |
|---|---|
| pack-priv int roundup(int n, int blocksize) | |
| traceOutput | back to summary |
|---|---|
| pack-priv static void traceOutput(String traceTag, byte[] output, int offset, int len) | |