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

public Class Aes128Sha2

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

Class with static methods for doing aes128-cts-hmac-sha256-128 operations.

Field Summary

Modifier and TypeField and Description
private static final AesSha2DkCrypto

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 AesSha2DkCrypto CRYPTO

Constructor Detail

Aes128Sha2back to summary
private Aes128Sha2()

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