abstract class AesCtsSha1Encryption extends EncryptionEngine implements ChecksumEngine
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
iv |
| Constructor and Description |
|---|
AesCtsSha1Encryption() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
calculateChecksum(byte[] data,
byte[] key,
KeyUsage usage)
Calculate a checksum given raw bytes and an (optional) key.
|
byte[] |
calculateIntegrity(byte[] data,
byte[] key,
KeyUsage usage) |
byte[] |
decrypt(byte[] cipherText,
byte[] keyBytes) |
protected byte[] |
deriveKey(byte[] baseKey,
byte[] usage,
int n,
int k) |
byte[] |
encrypt(byte[] plainText,
byte[] keyBytes) |
int |
getChecksumLength() |
int |
getConfounderLength() |
byte[] |
getDecryptedData(EncryptionKey key,
EncryptedData data,
KeyUsage usage) |
EncryptedData |
getEncryptedData(EncryptionKey key,
byte[] plainText,
KeyUsage usage) |
protected abstract int |
getKeyLength() |
private byte[] |
processChecksum(byte[] data,
byte[] key) |
private byte[] |
processCipher(boolean isEncrypt,
byte[] data,
byte[] keyBytes) |
concatenateBytes, deriveRandom, getBit, getEncryptionType, getRandomBytes, getUsageKc, getUsageKe, getUsageKi, padString, removeLeadingBytes, removeTrailingBytes, setBitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchecksumTypepublic int getConfounderLength()
getConfounderLength in class EncryptionEnginepublic int getChecksumLength()
getChecksumLength in class EncryptionEngineprotected abstract int getKeyLength()
public byte[] calculateChecksum(byte[] data,
byte[] key,
KeyUsage usage)
ChecksumEnginecalculateChecksum in interface ChecksumEnginepublic byte[] calculateIntegrity(byte[] data,
byte[] key,
KeyUsage usage)
calculateIntegrity in class EncryptionEnginepublic byte[] getDecryptedData(EncryptionKey key, EncryptedData data, KeyUsage usage) throws KerberosException
getDecryptedData in class EncryptionEngineKerberosExceptionpublic EncryptedData getEncryptedData(EncryptionKey key, byte[] plainText, KeyUsage usage)
getEncryptedData in class EncryptionEnginepublic byte[] encrypt(byte[] plainText,
byte[] keyBytes)
encrypt in class EncryptionEnginepublic byte[] decrypt(byte[] cipherText,
byte[] keyBytes)
decrypt in class EncryptionEngineprotected byte[] deriveKey(byte[] baseKey,
byte[] usage,
int n,
int k)
private byte[] processChecksum(byte[] data,
byte[] key)
private byte[] processCipher(boolean isEncrypt,
byte[] data,
byte[] keyBytes)