sun.security.mule.krb5.internal.crypto
Class Aes256
java.lang.Object
sun.security.mule.krb5.internal.crypto.Aes256
public class Aes256
- extends Object
Class with static methods for doing AES operations.
- Author:
- Seema Malkani
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stringToKey
public static byte[] stringToKey(char[] password,
String salt,
byte[] params)
throws GeneralSecurityException
- Throws:
GeneralSecurityException
getChecksumLength
public static int getChecksumLength()
calculateChecksum
public static byte[] calculateChecksum(byte[] baseKey,
int usage,
byte[] input,
int start,
int len)
throws GeneralSecurityException
- Throws:
GeneralSecurityException
encrypt
public static byte[] encrypt(byte[] baseKey,
int usage,
byte[] ivec,
byte[] plaintext,
int start,
int len)
throws GeneralSecurityException,
KrbCryptoException
- Throws:
GeneralSecurityException
KrbCryptoException
encryptRaw
public static byte[] encryptRaw(byte[] baseKey,
int usage,
byte[] ivec,
byte[] plaintext,
int start,
int len)
throws GeneralSecurityException,
KrbCryptoException
- Throws:
GeneralSecurityException
KrbCryptoException
decrypt
public static byte[] decrypt(byte[] baseKey,
int usage,
byte[] ivec,
byte[] ciphertext,
int start,
int len)
throws GeneralSecurityException
- Throws:
GeneralSecurityException
decryptRaw
public static byte[] decryptRaw(byte[] baseKey,
int usage,
byte[] ivec,
byte[] ciphertext,
int start,
int len)
throws GeneralSecurityException
- Throws:
GeneralSecurityException
Copyright © 2013. All Rights Reserved.