org.apache.directory.server.kerberos.shared.crypto.encryption
Class DesCbcCrcEncryption

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.crypto.encryption.EncryptionEngine
      extended by org.apache.directory.server.kerberos.shared.crypto.encryption.DesCbcCrcEncryption

public class DesCbcCrcEncryption
extends EncryptionEngine

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
DesCbcCrcEncryption()
           
 
Method Summary
 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()
           
 
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
 

Constructor Detail

DesCbcCrcEncryption

public DesCbcCrcEncryption()
Method Detail

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-2009 Apache Software Foundation. All Rights Reserved.