com.ibm.security.krb5.internal.crypto

Class AES128EType

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.crypto.EType
  3. extended bycom.ibm.security.krb5.internal.crypto.AES128EType

  1. public final class AES128EType
  2. extends EType

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
AES_CHECKSUM_SIZE
  1. static
  2. int
BLOCK_SIZE
  1. static
  2. int
DEFAULT_ITERATION_COUNT
  1. static
  2. int
KD_AD_ITE
  1. static
  2. int
KD_AD_KDCISSUED_CKSUM
  1. static
  2. int
KD_AD_MTE
  1. static
  2. int
KD_AP_REP_ENCPART
  1. static
  2. int
KD_AP_REQ_AUTH
  1. static
  2. int
KD_AP_REQ_AUTH_CKSUM
  1. static
  2. int
KD_APP_DATA_CKSUM
  1. static
  2. int
KD_APP_DATA_ENCRYPT
  1. static
  2. int
KD_AS_REP_ENCPART
  1. static
  2. int
KD_AS_REQ_PA_ENC_TS
  1. static
  2. byte
KD_CHECKSUM
  1. static
  2. byte
KD_ENCRYPTION
  1. static
  2. int
KD_GSS_AES_MIC
  1. static
  2. int
KD_GSS_AES_SEQ
  1. static
  2. int
KD_GSS_AES_WRAP
  1. static
  2. byte
KD_INTEGRITY
  1. static
  2. int
KD_KDC_REP_TICKET
  1. static
  2. int
KD_KRB_CRED_ENCPART
  1. static
  2. int
KD_KRB_ERROR_CKSUM
  1. static
  2. int
KD_KRB_PRIV_ENCPART
  1. static
  2. int
KD_KRB_SAFE_CKSUM
  1. static
  2. int
KD_TGS_REP_ENCPART_SESSKEY
  1. static
  2. int
KD_TGS_REP_ENCPART_SUBKEY
  1. static
  2. int
KD_TGS_REQ_AD_SESSKEY
  1. static
  2. int
KD_TGS_REQ_AD_SUBKEY
  1. static
  2. int
KD_TGS_REQ_AUTH
  1. static
  2. int
KD_TGS_REQ_AUTH_CKSUM
  1. static
  2. int
KEY_SIZE
  1. static
  2. int
MAX_ITERATION_COUNT
  1. static
  2. int
NFOLD_SIZE
  1. static
  2. int
SHA1_DIGEST_SIZE

Constructor Summary

Constructor and Description
AES128EType()

Method Summary

Modifier and Type Method and Description
  1. static
  2. byte[]
aesEncrypt(byte[] data,byte[] iv,byte[] key,int mode)
  1. static
  2. byte[]
aesEncryptCTS(byte[] data,byte[] iv,byte[] key,int mode)
  1. int
blockSize()
  1. byte[]
calculateChecksum(byte[] data,int size)
  1. int
checksumSize()
  1. int
checksumType()
  1. int
confounderSize()
  1. void
decrypt(byte[] cipher,byte[] key)
  1. void
decrypt(byte[] cipher,byte[] key,byte[] ivec)
  1. void
decrypt(byte[] cipher,byte[] key,byte[] iv,int usage)
  1. void
decrypt(byte[] cipher,byte[] key,int usage)
  1. byte[]
decryptedData(byte[] data)
  1. static
  2. byte[]
deriveKey(byte[] key,byte[] constant)
  1. static
  2. byte[]
deriveKey(byte[] key,int constant)
  1. static
  2. byte[]
deriveKey(byte[] key,java.lang.String constant)
  1. byte[]
encrypt(byte[] data,byte[] key)
  1. byte[]
encrypt(byte[] data,byte[] key,byte[] ivec)
  1. byte[]
encrypt(byte[] data,byte[] key,byte[] iv,int usage)
  1. byte[]
encrypt(byte[] data,byte[] key,int usage)
  1. int
eType()
  1. int
keySize()
  1. int
keyType()
  1. int
minimumPadSize()
  1. static
  2. byte[]
stringToKey(java.lang.String password)
  1. static
  2. byte[]
stringToKey(java.lang.String password,java.lang.String salt)
  1. static
  2. byte[]
stringToKey(java.lang.String phrase,java.lang.String salt,int iters)
Methods inherited from class com.ibm.security.krb5.internal.crypto.EType
checksumField, copyChecksumField, dataSize, generateChecksum, getBuiltInDefaults, getDefaults, getDefaults, getInstance, getInstance, isChecksumEqual, isChecksumValid, isSupported, isSupported, padSize, resetChecksumField, setChecksum, startOfChecksum, startOfData, startOfPad, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

KD_AS_REQ_PA_ENC_TS

  1. public static final int KD_AS_REQ_PA_ENC_TS
See Also:

KD_KDC_REP_TICKET

  1. public static final int KD_KDC_REP_TICKET
See Also:

KD_AS_REP_ENCPART

  1. public static final int KD_AS_REP_ENCPART
See Also:

KD_TGS_REQ_AD_SESSKEY

  1. public static final int KD_TGS_REQ_AD_SESSKEY
See Also:

KD_TGS_REQ_AD_SUBKEY

  1. public static final int KD_TGS_REQ_AD_SUBKEY
See Also:

KD_TGS_REQ_AUTH_CKSUM

  1. public static final int KD_TGS_REQ_AUTH_CKSUM
See Also:

KD_TGS_REQ_AUTH

  1. public static final int KD_TGS_REQ_AUTH
See Also:

KD_TGS_REP_ENCPART_SESSKEY

  1. public static final int KD_TGS_REP_ENCPART_SESSKEY
See Also:

KD_TGS_REP_ENCPART_SUBKEY

  1. public static final int KD_TGS_REP_ENCPART_SUBKEY
See Also:

KD_AP_REQ_AUTH_CKSUM

  1. public static final int KD_AP_REQ_AUTH_CKSUM
See Also:

KD_AP_REQ_AUTH

  1. public static final int KD_AP_REQ_AUTH
See Also:

KD_AP_REP_ENCPART

  1. public static final int KD_AP_REP_ENCPART
See Also:

KD_KRB_PRIV_ENCPART

  1. public static final int KD_KRB_PRIV_ENCPART
See Also:

KD_KRB_CRED_ENCPART

  1. public static final int KD_KRB_CRED_ENCPART
See Also:

KD_KRB_SAFE_CKSUM

  1. public static final int KD_KRB_SAFE_CKSUM
See Also:

KD_APP_DATA_ENCRYPT

  1. public static final int KD_APP_DATA_ENCRYPT
See Also:

KD_APP_DATA_CKSUM

  1. public static final int KD_APP_DATA_CKSUM
See Also:

KD_KRB_ERROR_CKSUM

  1. public static final int KD_KRB_ERROR_CKSUM
See Also:

KD_AD_KDCISSUED_CKSUM

  1. public static final int KD_AD_KDCISSUED_CKSUM
See Also:

KD_AD_MTE

  1. public static final int KD_AD_MTE
See Also:

KD_AD_ITE

  1. public static final int KD_AD_ITE
See Also:

KD_GSS_AES_WRAP

  1. public static final int KD_GSS_AES_WRAP
See Also:

KD_GSS_AES_MIC

  1. public static final int KD_GSS_AES_MIC
See Also:

KD_GSS_AES_SEQ

  1. public static final int KD_GSS_AES_SEQ
See Also:

KD_CHECKSUM

  1. public static final byte KD_CHECKSUM
See Also:

KD_ENCRYPTION

  1. public static final byte KD_ENCRYPTION
See Also:

KD_INTEGRITY

  1. public static final byte KD_INTEGRITY
See Also:

BLOCK_SIZE

  1. public static final int BLOCK_SIZE
See Also:

SHA1_DIGEST_SIZE

  1. public static final int SHA1_DIGEST_SIZE
See Also:

AES_CHECKSUM_SIZE

  1. public static final int AES_CHECKSUM_SIZE
See Also:

DEFAULT_ITERATION_COUNT

  1. public static final int DEFAULT_ITERATION_COUNT
See Also:

MAX_ITERATION_COUNT

  1. public static final int MAX_ITERATION_COUNT
See Also:

KEY_SIZE

  1. public static final int KEY_SIZE
See Also:

NFOLD_SIZE

  1. public static final int NFOLD_SIZE
See Also:

Constructor Detail

AES128EType

  1. public AES128EType()

Method Detail

eType

  1. public int eType()
Description copied from class: EType
DOCUMENT ME!
Specified by:
eType in class EType
Returns:
DOCUMENT ME!

decryptedData

  1. public final byte[] decryptedData( byte[] data)
Description copied from class: EType
DOCUMENT ME!
Overrides:
decryptedData in class EType
Parameters:
data - DOCUMENT ME!
Returns:
DOCUMENT ME!

confounderSize

  1. public int confounderSize()
Description copied from class: EType
DOCUMENT ME!
Specified by:
Returns:
DOCUMENT ME!

minimumPadSize

  1. public int minimumPadSize()
Description copied from class: EType
DOCUMENT ME!
Specified by:
Returns:
DOCUMENT ME!

blockSize

  1. public int blockSize()
Description copied from class: EType
DOCUMENT ME!
Specified by:
blockSize in class EType
Returns:
DOCUMENT ME!

calculateChecksum

  1. public byte[] calculateChecksum( byte[] data,
  2. int size)
  3. throws KrbCryptoException
Description copied from class: EType
DOCUMENT ME!
Specified by:
Parameters:
data - DOCUMENT ME!
size - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
KrbCryptoException - DOCUMENT ME!

checksumSize

  1. public int checksumSize()
Description copied from class: EType
DOCUMENT ME!
Specified by:
checksumSize in class EType
Returns:
DOCUMENT ME!

checksumType

  1. public int checksumType()
Description copied from class: EType
DOCUMENT ME!
Specified by:
checksumType in class EType
Returns:
DOCUMENT ME!

keyType

  1. public int keyType()
Description copied from class: EType
DOCUMENT ME!
Specified by:
keyType in class EType
Returns:
DOCUMENT ME!

keySize

  1. public int keySize()
Description copied from class: EType
DOCUMENT ME!
Specified by:
keySize in class EType
Returns:
DOCUMENT ME!

encrypt

  1. public final byte[] encrypt(byte[] data,
  2. byte[] key,
  3. byte[] ivec)
  4. throws KrbCryptoException
Description copied from class: EType
DOCUMENT ME!
Specified by:
encrypt in class EType
Parameters:
data - DOCUMENT ME!
key - DOCUMENT ME!
ivec - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
KrbCryptoException - DOCUMENT ME!

decrypt

  1. public final void decrypt(byte[] cipher,
  2. byte[] key,
  3. byte[] ivec)
  4. throws KrbApErrException
  5. KrbCryptoException
Description copied from class: EType
DOCUMENT ME!
Specified by:
decrypt in class EType
Parameters:
cipher - DOCUMENT ME!
key - DOCUMENT ME!
ivec - DOCUMENT ME!
Throws:
KrbApErrException - DOCUMENT ME!
KrbCryptoException - DOCUMENT ME!

encrypt

  1. public final byte[] encrypt(byte[] data,
  2. byte[] key)
  3. throws KrbCryptoException
Description copied from class: EType
DOCUMENT ME!
Specified by:
encrypt in class EType
Parameters:
data - DOCUMENT ME!
key - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
KrbCryptoException - DOCUMENT ME!

decrypt

  1. public final void decrypt(byte[] cipher,
  2. byte[] key)
  3. throws KrbApErrException
  4. KrbCryptoException
Description copied from class: EType
DOCUMENT ME!
Specified by:
decrypt in class EType
Parameters:
cipher - DOCUMENT ME!
key - DOCUMENT ME!
Throws:
KrbApErrException - DOCUMENT ME!
KrbCryptoException - DOCUMENT ME!

decrypt

  1. public final void decrypt(byte[] cipher,
  2. byte[] key,
  3. int usage)
  4. throws KrbApErrException
  5. KrbCryptoException
Description copied from class: EType
Decrypts the input cipher text using the specified key and ignoring the usage parameter.
Overrides:
decrypt in class EType
Parameters:
cipher - the cipher text to be decrypted.
key - the key to use for the decryption.
usage - key derivation constant; ignored.
Throws:

decrypt

  1. public final void decrypt(byte[] cipher,
  2. byte[] key,
  3. byte[] iv,
  4. int usage)
  5. throws KrbApErrException
  6. KrbCryptoException
Description copied from class: EType
Decrypts the input cipher text using the specified key
Overrides:
decrypt in class EType
Parameters:
cipher - the cipher text to be decrypted.
key - the key to use for the decryption.
iv - initialization vector.
usage - key derivation constant.
Throws:

encrypt

  1. public final byte[] encrypt(byte[] data,
  2. byte[] key,
  3. int usage)
  4. throws KrbCryptoException
Description copied from class: EType
Enciphers the input data using the specified key and ignoring the usage parameter.
Overrides:
encrypt in class EType
Parameters:
data - the data to be encrypted.
key - the key to use to encipher the data.
usage - key derivation constant; ignored.
Returns:
DOCUMENT ME!
Throws:

encrypt

  1. public final byte[] encrypt(byte[] data,
  2. byte[] key,
  3. byte[] iv,
  4. int usage)
  5. throws KrbCryptoException
Description copied from class: EType
Enciphers the input data using the specified key and
Overrides:
encrypt in class EType
Parameters:
data - the data to be encrypted.
key - the key to use to encipher the data.
iv - initialization vector.
usage - key derivation constant.
Returns:
DOCUMENT ME!
Throws:

aesEncrypt

  1. public static final byte[] aesEncrypt( byte[] data,
  2. byte[] iv,
  3. byte[] key,
  4. int mode)
  5. throws KrbCryptoException
Throws:

aesEncryptCTS

  1. public static final byte[] aesEncryptCTS( byte[] data,
  2. byte[] iv,
  3. byte[] key,
  4. int mode)
  5. throws KrbCryptoException
Throws:

stringToKey

  1. public static final byte[] stringToKey( java.lang.String phrase,
  2. java.lang.String salt,
  3. int iters)
  4. throws KrbCryptoException
Throws:

stringToKey

  1. public static final byte[] stringToKey( java.lang.String password)
  2. throws KrbCryptoException
Throws:

stringToKey

  1. public static final byte[] stringToKey( java.lang.String password,
  2. java.lang.String salt)
  3. throws KrbCryptoException
Throws:

deriveKey

  1. public static final byte[] deriveKey( byte[] key,
  2. java.lang.String constant)
  3. throws KrbCryptoException
Throws:

deriveKey

  1. public static final byte[] deriveKey( byte[] key,
  2. int constant)
  3. throws KrbCryptoException
Throws:

deriveKey

  1. public static final byte[] deriveKey( byte[] key,
  2. byte[] constant)
  3. throws KrbCryptoException
Throws: