| java.lang.Object |
| ↳ |
sun.security.mule.krb5.internal.crypto.Des3 |
Class Overview
Class with static methods for doing Triple DES operations.
Summary
| 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)
Decrypt ciphertext; do not remove confounder, padding,
or check checksum
|
|
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[]
|
parityFix(byte[] value)
|
|
static
byte[]
|
stringToKey(char[] chars)
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
Public Methods
public
static
byte[]
calculateChecksum
(byte[] baseKey, int usage, byte[] input, int start, int len)
Parameters
| baseKey
| |
| usage
| |
| input
| |
| start
| |
| len
| |
public
static
byte[]
decrypt
(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len)
Parameters
| baseKey
| |
| usage
| |
| ivec
| |
| ciphertext
| |
| start
| |
| len
| |
public
static
byte[]
decryptRaw
(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len)
Decrypt ciphertext; do not remove confounder, padding,
or check checksum
Parameters
| baseKey
| |
| usage
| |
| ivec
| |
| ciphertext
| |
| start
| |
| len
| |
public
static
byte[]
encrypt
(byte[] baseKey, int usage, byte[] ivec, byte[] plaintext, int start, int len)
Parameters
| baseKey
| |
| usage
| |
| ivec
| |
| plaintext
| |
| start
| |
| len
| |
public
static
byte[]
encryptRaw
(byte[] baseKey, int usage, byte[] ivec, byte[] plaintext, int start, int len)
Parameters
| baseKey
| |
| usage
| |
| ivec
| |
| plaintext
| |
| start
| |
| len
| |
public
static
int
getChecksumLength
()
public
static
byte[]
parityFix
(byte[] value)
public
static
byte[]
stringToKey
(char[] chars)