sun.security.mule.krb5.internal.crypto.dk
Class Des3DkCrypto

java.lang.Object
  extended by sun.security.mule.krb5.internal.crypto.dk.DkCrypto
      extended by sun.security.mule.krb5.internal.crypto.dk.Des3DkCrypto

public class Des3DkCrypto
extends DkCrypto


Field Summary
 
Fields inherited from class sun.security.mule.krb5.internal.crypto.dk.DkCrypto
debug
 
Constructor Summary
Des3DkCrypto()
           
 
Method Summary
 int getChecksumLength()
           
protected  Cipher getCipher(byte[] key, byte[] ivec, int mode)
           
protected  byte[] getHmac(byte[] key, byte[] msg)
           
protected  int getKeySeedLength()
           
 byte[] parityFix(byte[] value)
           
protected  byte[] randomToKey(byte[] in)
           
 byte[] stringToKey(char[] salt)
           
 
Methods inherited from class sun.security.mule.krb5.internal.crypto.dk.DkCrypto
calculateChecksum, decrypt, decryptRaw, encrypt, encryptRaw
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Des3DkCrypto

public Des3DkCrypto()
Method Detail

getKeySeedLength

protected int getKeySeedLength()
Specified by:
getKeySeedLength in class DkCrypto

stringToKey

public byte[] stringToKey(char[] salt)
                   throws GeneralSecurityException
Throws:
GeneralSecurityException

parityFix

public byte[] parityFix(byte[] value)
                 throws GeneralSecurityException
Throws:
GeneralSecurityException

randomToKey

protected byte[] randomToKey(byte[] in)
Specified by:
randomToKey in class DkCrypto

getCipher

protected Cipher getCipher(byte[] key,
                           byte[] ivec,
                           int mode)
                    throws GeneralSecurityException
Specified by:
getCipher in class DkCrypto
Throws:
GeneralSecurityException

getChecksumLength

public int getChecksumLength()
Specified by:
getChecksumLength in class DkCrypto

getHmac

protected byte[] getHmac(byte[] key,
                         byte[] msg)
                  throws GeneralSecurityException
Specified by:
getHmac in class DkCrypto
Throws:
GeneralSecurityException


Copyright © 2013. All Rights Reserved.