org.apache.directory.server.kerberos.shared.crypto.encryption
Class DesCbcCrcEncryption
java.lang.Object
org.apache.directory.server.kerberos.shared.crypto.encryption.EncryptionEngine
org.apache.directory.server.kerberos.shared.crypto.encryption.DesCbcCrcEncryption
public class DesCbcCrcEncryption
- extends EncryptionEngine
- Author:
- Apache Directory Project
| Methods inherited from class org.apache.directory.server.kerberos.shared.crypto.encryption.EncryptionEngine |
concatenateBytes, deriveRandom, getBit, getRandomBytes, getUsageKc, getUsageKe, getUsageKi, padString, removeLeadingBytes, removeTrailingBytes, setBit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DesCbcCrcEncryption
public DesCbcCrcEncryption()
getEncryptionType
public EncryptionType getEncryptionType()
- Specified by:
getEncryptionType in class EncryptionEngine
getConfounderLength
public int getConfounderLength()
- Specified by:
getConfounderLength in class EncryptionEngine
getChecksumLength
public int getChecksumLength()
- Specified by:
getChecksumLength in class EncryptionEngine
calculateIntegrity
public byte[] calculateIntegrity(byte[] data,
byte[] key,
KeyUsage usage)
- Specified by:
calculateIntegrity in class EncryptionEngine
getDecryptedData
public byte[] getDecryptedData(EncryptionKey key,
EncryptedData data,
KeyUsage usage)
throws KerberosException
- Specified by:
getDecryptedData in class EncryptionEngine
- Throws:
KerberosException
getEncryptedData
public EncryptedData getEncryptedData(EncryptionKey key,
byte[] plainText,
KeyUsage usage)
- Specified by:
getEncryptedData in class EncryptionEngine
encrypt
public byte[] encrypt(byte[] plainText,
byte[] keyBytes)
- Specified by:
encrypt in class EncryptionEngine
decrypt
public byte[] decrypt(byte[] cipherText,
byte[] keyBytes)
- Specified by:
decrypt in class EncryptionEngine
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.