com.ibm.security.krb5.internal.crypto
Class AES256EType
- java.lang.Object
com.ibm.security.krb5.internal.crypto.EType
com.ibm.security.krb5.internal.crypto.AES256EType
- public final class AES256EType
- extends EType
Field Summary
Constructor Summary
Constructor and Description |
---|
AES256EType()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
aesEncrypt(byte[] data,byte[] iv,byte[] key,int mode)
|
|
aesEncryptCTS(byte[] data,byte[] iv,byte[] key,int mode)
|
|
blockSize()
|
|
calculateChecksum(byte[] data,int size)
|
|
checksumSize()
|
|
checksumType()
|
|
confounderSize()
|
|
decrypt(byte[] cipher,byte[] key)
|
|
decrypt(byte[] cipher,byte[] key,byte[] ivec)
|
|
decrypt(byte[] cipher,byte[] key,byte[] iv,int usage)
|
|
decrypt(byte[] cipher,byte[] key,int usage)
|
|
decryptedData(byte[] data)
|
|
deriveKey(byte[] key,byte[] constant)
|
|
deriveKey(byte[] key,int constant)
|
|
deriveKey(byte[] key,java.lang.String constant)
|
|
encrypt(byte[] data,byte[] key)
|
|
encrypt(byte[] data,byte[] key,byte[] ivec)
|
|
encrypt(byte[] data,byte[] key,byte[] iv,int usage)
|
|
encrypt(byte[] data,byte[] key,int usage)
|
|
eType()
|
|
keySize()
|
|
keyType()
|
|
minimumPadSize()
|
|
stringToKey(java.lang.String password)
|
|
stringToKey(java.lang.String password,java.lang.String salt)
|
|
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
- public static final int KD_AS_REQ_PA_ENC_TS
See Also:
KD_KDC_REP_TICKET
- public static final int KD_KDC_REP_TICKET
See Also:
KD_AS_REP_ENCPART
- public static final int KD_AS_REP_ENCPART
See Also:
KD_TGS_REQ_AD_SESSKEY
- public static final int KD_TGS_REQ_AD_SESSKEY
See Also:
KD_TGS_REQ_AD_SUBKEY
- public static final int KD_TGS_REQ_AD_SUBKEY
See Also:
KD_TGS_REQ_AUTH_CKSUM
- public static final int KD_TGS_REQ_AUTH_CKSUM
See Also:
KD_TGS_REQ_AUTH
- public static final int KD_TGS_REQ_AUTH
See Also:
KD_TGS_REP_ENCPART_SESSKEY
- public static final int KD_TGS_REP_ENCPART_SESSKEY
See Also:
KD_TGS_REP_ENCPART_SUBKEY
- public static final int KD_TGS_REP_ENCPART_SUBKEY
See Also:
KD_AP_REQ_AUTH_CKSUM
- public static final int KD_AP_REQ_AUTH_CKSUM
See Also:
KD_AP_REQ_AUTH
- public static final int KD_AP_REQ_AUTH
See Also:
KD_AP_REP_ENCPART
- public static final int KD_AP_REP_ENCPART
See Also:
KD_KRB_PRIV_ENCPART
- public static final int KD_KRB_PRIV_ENCPART
See Also:
KD_KRB_CRED_ENCPART
- public static final int KD_KRB_CRED_ENCPART
See Also:
KD_KRB_SAFE_CKSUM
- public static final int KD_KRB_SAFE_CKSUM
See Also:
KD_APP_DATA_ENCRYPT
- public static final int KD_APP_DATA_ENCRYPT
See Also:
KD_APP_DATA_CKSUM
- public static final int KD_APP_DATA_CKSUM
See Also:
KD_KRB_ERROR_CKSUM
- public static final int KD_KRB_ERROR_CKSUM
See Also:
KD_AD_KDCISSUED_CKSUM
- public static final int KD_AD_KDCISSUED_CKSUM
See Also:
KD_AD_MTE
- public static final int KD_AD_MTE
See Also:
KD_AD_ITE
- public static final int KD_AD_ITE
See Also:
KD_GSS_AES_WRAP
- public static final int KD_GSS_AES_WRAP
See Also:
KD_GSS_AES_MIC
- public static final int KD_GSS_AES_MIC
See Also:
KD_GSS_AES_SEQ
- public static final int KD_GSS_AES_SEQ
See Also:
KD_CHECKSUM
- public static final byte KD_CHECKSUM
See Also:
KD_ENCRYPTION
- public static final byte KD_ENCRYPTION
See Also:
KD_INTEGRITY
- public static final byte KD_INTEGRITY
See Also:
BLOCK_SIZE
- public static final int BLOCK_SIZE
See Also:
SHA1_DIGEST_SIZE
- public static final int SHA1_DIGEST_SIZE
See Also:
AES_CHECKSUM_SIZE
- public static final int AES_CHECKSUM_SIZE
See Also:
DEFAULT_ITERATION_COUNT
- public static final int DEFAULT_ITERATION_COUNT
See Also:
MAX_ITERATION_COUNT
- public static final int MAX_ITERATION_COUNT
See Also:
KEY_SIZE
- public static final int KEY_SIZE
See Also:
NFOLD_SIZE
- public static final int NFOLD_SIZE
See Also:
Constructor Detail
AES256EType
- public AES256EType()
Method Detail
eType
- public int eType()
DOCUMENT ME!
Returns:
DOCUMENT ME!
decryptedData
- 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
- public int confounderSize()
Description copied from class:
EType
DOCUMENT ME!
Specified by:
confounderSize
in class EType
Returns:
DOCUMENT ME!
minimumPadSize
- public int minimumPadSize()
Description copied from class:
EType
DOCUMENT ME!
Specified by:
minimumPadSize
in class EType
Returns:
DOCUMENT ME!
blockSize
- public int blockSize()
Description copied from class:
EType
DOCUMENT ME!
Returns:
DOCUMENT ME!
calculateChecksum
- public byte[] calculateChecksum( byte[] data,
- int size)
- throws KrbCryptoException
Description copied from class:
EType
DOCUMENT ME!
Specified by:
calculateChecksum
in class EType
Parameters:
data
- DOCUMENT ME! size
- DOCUMENT ME! Returns:
DOCUMENT ME!
Throws:
KrbCryptoException
- DOCUMENT ME! checksumSize
- public int checksumSize()
Description copied from class:
EType
DOCUMENT ME!
Specified by:
checksumSize
in class EType
Returns:
DOCUMENT ME!
checksumType
- public int checksumType()
Description copied from class:
EType
DOCUMENT ME!
Specified by:
checksumType
in class EType
Returns:
DOCUMENT ME!
keyType
- public int keyType()
Description copied from class:
EType
DOCUMENT ME!
Returns:
DOCUMENT ME!
keySize
- public int keySize()
Description copied from class:
EType
DOCUMENT ME!
Returns:
DOCUMENT ME!
encrypt
- public final byte[] encrypt(byte[] data,
- byte[] key,
- byte[] ivec)
- throws KrbCryptoException
Description copied from class:
EType
DOCUMENT ME!
Parameters:
data
- DOCUMENT ME! key
- DOCUMENT ME! ivec
- DOCUMENT ME! Returns:
DOCUMENT ME!
Throws:
KrbCryptoException
- DOCUMENT ME! decrypt
- public final void decrypt(byte[] cipher,
- byte[] key,
- byte[] ivec)
- throws KrbApErrException
- KrbCryptoException
Description copied from class:
EType
DOCUMENT ME!
Parameters:
cipher
- DOCUMENT ME! key
- DOCUMENT ME! ivec
- DOCUMENT ME! Throws:
KrbApErrException
- DOCUMENT ME! KrbCryptoException
- DOCUMENT ME! encrypt
- public final byte[] encrypt(byte[] data,
- byte[] key)
- throws KrbCryptoException
Description copied from class:
EType
DOCUMENT ME!
Parameters:
data
- DOCUMENT ME! key
- DOCUMENT ME! Returns:
DOCUMENT ME!
Throws:
KrbCryptoException
- DOCUMENT ME! decrypt
- public final void decrypt(byte[] cipher,
- byte[] key)
- throws KrbApErrException
- KrbCryptoException
Description copied from class:
EType
DOCUMENT ME!
Parameters:
cipher
- DOCUMENT ME! key
- DOCUMENT ME! Throws:
KrbApErrException
- DOCUMENT ME! KrbCryptoException
- DOCUMENT ME! decrypt
- public final void decrypt(byte[] cipher,
- byte[] key,
- int usage)
- throws KrbApErrException
- KrbCryptoException
Description copied from class:
EType
Decrypts the input cipher text using the specified key and ignoring the
usage parameter.
Parameters:
cipher
- the cipher text to be decrypted. key
- the key to use for the decryption. usage
- key derivation constant; ignored. Throws:
decrypt
- public final void decrypt(byte[] cipher,
- byte[] key,
- byte[] iv,
- int usage)
- throws KrbApErrException
- KrbCryptoException
Description copied from class:
EType
Decrypts the input cipher text using the specified key
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
- public final byte[] encrypt(byte[] data,
- byte[] key,
- int usage)
- throws KrbCryptoException
Description copied from class:
EType
Enciphers the input data using the specified key and ignoring the usage
parameter.
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
- public final byte[] encrypt(byte[] data,
- byte[] key,
- byte[] iv,
- int usage)
- throws KrbCryptoException
Description copied from class:
EType
Enciphers the input data using the specified key and
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
- public static final byte[] aesEncrypt( byte[] data,
- byte[] iv,
- byte[] key,
- int mode)
- throws KrbCryptoException
Throws:
aesEncryptCTS
- public static final byte[] aesEncryptCTS( byte[] data,
- byte[] iv,
- byte[] key,
- int mode)
- throws KrbCryptoException
Throws:
stringToKey
- public static final byte[] stringToKey( java.lang.String phrase,
- java.lang.String salt,
- int iters)
- throws KrbCryptoException
Throws:
stringToKey
- public static final byte[] stringToKey( java.lang.String password)
- throws KrbCryptoException
Throws:
stringToKey
- public static final byte[] stringToKey( java.lang.String password,
- java.lang.String salt)
- throws KrbCryptoException
Throws:
deriveKey
- public static final byte[] deriveKey( byte[] key,
- java.lang.String constant)
- throws KrbCryptoException
Throws:
deriveKey
- public static final byte[] deriveKey( byte[] key,
- int constant)
- throws KrbCryptoException
Throws:
deriveKey
- public static final byte[] deriveKey( byte[] key,
- byte[] constant)
- throws KrbCryptoException
Throws:
EType