public class MAC extends Object
to support enchanced Mac algorithms
Constructor and Description |
---|
MAC(String type,
byte[] key)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkMacList(String[] macs)
Deprecated.
|
static int |
getKeyLen(String type)
Deprecated.
|
void |
getMac(byte[] out,
int off) |
static String[] |
getMacList()
Deprecated.
|
void |
initMac(int seq) |
int |
size() |
void |
update(byte[] packetdata,
int off,
int len) |
public MAC(String type, byte[] key)
MessageMac.MessageMac(String, byte[])
type
- the MAC algorithm to usekey
- the key to use in the MAC@Deprecated public static String[] getMacList()
MessageMac.getMacs()
@Deprecated public static void checkMacList(String[] macs)
MessageMac.checkMacs(String[])
macs
- the macs@Deprecated public static int getKeyLen(String type)
MessageMac.getKeyLength(String)
type
- the typepublic void initMac(int seq)
public void update(byte[] packetdata, int off, int len)
public void getMac(byte[] out, int off)
public int size()
Copyright © 2020. All rights reserved.