public class PacMac extends Object
| Constructor and Description |
|---|
PacMac() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
calculateMac(int type,
Map<Integer,KerberosKey> keys,
byte[] data) |
static byte[] |
calculateMacArcfourHMACMD5(int keyusage,
Key key,
byte[] data) |
static byte[] |
calculateMacHMACAES(int usage,
KerberosKey baseKey,
byte[] input) |
static byte[] |
deriveKeyAES(KerberosKey key,
byte[] constant) |
static byte[] |
expandNFold(byte[] data,
int outlen) |
public static byte[] calculateMacArcfourHMACMD5(int keyusage,
Key key,
byte[] data)
throws GeneralSecurityException
GeneralSecurityExceptionpublic static byte[] calculateMacHMACAES(int usage,
KerberosKey baseKey,
byte[] input)
throws GeneralSecurityException
GeneralSecurityExceptionpublic static byte[] deriveKeyAES(KerberosKey key, byte[] constant) throws GeneralSecurityException
GeneralSecurityExceptionpublic static byte[] expandNFold(byte[] data,
int outlen)
public static byte[] calculateMac(int type,
Map<Integer,KerberosKey> keys,
byte[] data)
throws PACDecodingException
type - keys - PACDecodingExceptionCopyright © 2021. All rights reserved.