public class

Aes256

extends Object
java.lang.Object
   ↳ sun.security.mule.krb5.internal.crypto.Aes256

Class Overview

Class with static methods for doing AES operations.

Summary

Fields
private static final AesDkCrypto CRYPTO
Public Methods
static byte[] calculateChecksum(byte[] baseKey, int usage, byte[] input, int start, int len)
static byte[] decrypt(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len)
static byte[] decryptRaw(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len)
static byte[] encrypt(byte[] baseKey, int usage, byte[] ivec, byte[] plaintext, int start, int len)
static byte[] encryptRaw(byte[] baseKey, int usage, byte[] ivec, byte[] plaintext, int start, int len)
static int getChecksumLength()
static byte[] stringToKey(char[] password, String salt, byte[] params)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private static final AesDkCrypto CRYPTO

Public Methods

public static byte[] calculateChecksum (byte[] baseKey, int usage, byte[] input, int start, int len)

Parameters
baseKey
usage
input
start
len
Throws
GeneralSecurityException

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

Parameters
baseKey
usage
ivec
ciphertext
start
len
Throws
GeneralSecurityException

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

Parameters
baseKey
usage
ivec
ciphertext
start
len
Throws
GeneralSecurityException

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

Parameters
baseKey
usage
ivec
plaintext
start
len
Throws
GeneralSecurityException
KrbCryptoException

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

Parameters
baseKey
usage
ivec
plaintext
start
len
Throws
GeneralSecurityException
KrbCryptoException

public static int getChecksumLength ()

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

Parameters
password
salt
params
Throws
GeneralSecurityException