APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.krb5.internal.crypto

public Class Des3

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

Class with static methods for doing Triple DES operations.

Field Summary

Modifier and TypeField and Description
private static final Des3DkCrypto

Constructor Summary

AccessConstructor and Description
private
Des3()

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)

Decrypt ciphertext; do not remove confounder, padding, or check checksum

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[]
parityFix(byte[] value)

public static byte[]
stringToKey(char[] chars)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CRYPTOback to summary
private static final Des3DkCrypto CRYPTO

Constructor Detail

Des3back to summary
private Des3()

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

Decrypt ciphertext; do not remove confounder, padding, or check checksum

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()
parityFixback to summary
public static byte[] parityFix(byte[] value) throws GeneralSecurityException
stringToKeyback to summary
public static byte[] stringToKey(char[] chars) throws GeneralSecurityException