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

public Class ArcFourHmac

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

Class with static methods for doing RC4-HMAC operations.
Author
Seema Malkani

Field Summary

Modifier and TypeField and Description
private static final ArcFourCrypto

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, byte[] seqNum)

public static byte[]
decryptSeq(byte[] baseKey, int usage, byte[] checksum, 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[] seqNum, byte[] plaintext, int start, int len)

public static byte[]
encryptSeq(byte[] baseKey, int usage, byte[] checksum, byte[] plaintext, int start, int len)

public static int
public static byte[]
stringToKey(char[] password)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CRYPTOback to summary
private static final ArcFourCrypto CRYPTO

Constructor Detail

ArcFourHmacback to summary
private ArcFourHmac()

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, byte[] seqNum) throws GeneralSecurityException
decryptSeqback to summary
public static byte[] decryptSeq(byte[] baseKey, int usage, byte[] checksum, byte[] ciphertext, int start, int len) throws GeneralSecurityException, KrbCryptoException
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[] seqNum, byte[] plaintext, int start, int len) throws GeneralSecurityException, KrbCryptoException
encryptSeqback to summary
public static byte[] encryptSeq(byte[] baseKey, int usage, byte[] checksum, 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) throws GeneralSecurityException