public class DesCbcCrcEncryption extends EncryptionEngine
| Constructor and Description |
|---|
DesCbcCrcEncryption() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
calculateIntegrity(byte[] data,
byte[] key,
KeyUsage usage) |
byte[] |
decrypt(byte[] cipherText,
byte[] keyBytes) |
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) |
EncryptionType |
getEncryptionType() |
concatenateBytes, deriveRandom, getBit, getRandomBytes, getUsageKc, getUsageKe, getUsageKi, padString, removeLeadingBytes, removeTrailingBytes, setBitpublic EncryptionType getEncryptionType()
getEncryptionType in class EncryptionEnginepublic int getConfounderLength()
getConfounderLength in class EncryptionEnginepublic int getChecksumLength()
getChecksumLength in class EncryptionEnginepublic 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 EncryptionEngineCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.