Top Description Fields Constructors Methods
sun.security.krb5.internal.crypto

public Class Aes128

extends Object
Class Inheritance
Imports
sun.security.krb5.internal.crypto.dk.AesDkCrypto, sun.security.krb5.KrbCryptoException, java.security.GeneralSecurityException

Class with static methods for doing AES operations.
Author
Seema Malkani

Field Summary

Modifier and TypeField and Description
private static final AesDkCrypto

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static byte[]
calculateChecksum(byte[] baseKey, int usage, byte[] input, int start, int len)

public static byte[]
decrypt(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len)

public static byte[]
decryptRaw(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len)

public static byte[]
encrypt(byte[] baseKey, int usage, byte[] ivec, byte[] plaintext, int start, int len)

public static byte[]
encryptRaw(byte[] baseKey, int usage, byte[] ivec, byte[] plaintext, int start, int len)

public static int
public static byte[]
stringToKey(char[] password, String salt, byte[] params)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CRYPTOback to summary
private static final AesDkCrypto CRYPTO

Constructor Detail

Aes128back to summary
private Aes128()

Method Detail

calculateChecksumback to summary
public static byte[] calculateChecksum(byte[] baseKey, int usage, byte[] input, int start, int len) throws GeneralSecurityException
decryptback to summary
public static byte[] decrypt(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len) throws GeneralSecurityException
decryptRawback to summary
public static byte[] decryptRaw(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len) throws GeneralSecurityException
encryptback to summary
public static byte[] encrypt(byte[] baseKey, int usage, byte[] ivec, byte[] plaintext, int start, int len) throws GeneralSecurityException, KrbCryptoException
encryptRawback to summary
public static byte[] encryptRaw(byte[] baseKey, int usage, byte[] ivec, byte[] plaintext, int start, int len) throws GeneralSecurityException, KrbCryptoException
getChecksumLengthback to summary
public static int getChecksumLength()
stringToKeyback to summary
public static byte[] stringToKey(char[] password, String salt, byte[] params) throws GeneralSecurityException