Package com.trilead.ssh2.crypto.digest
Class MAC
- java.lang.Object
-
- com.trilead.ssh2.crypto.digest.MAC
-
- Direct Known Subclasses:
MessageMac
public class MAC extends Object
MAC. Replace byto support enchanced Mac algorithms- Version:
- $Id: MAC.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $
- Author:
- Christian Plattner, plattner@trilead.com
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidcheckMacList(String[] macs)Deprecated.static intgetKeyLen(String type)Deprecated.voidgetMac(byte[] out, int off)static String[]getMacList()Deprecated.voidinitMac(int seq)intsize()voidupdate(byte[] packetdata, int off, int len)
-
-
-
Constructor Detail
-
MAC
public MAC(String type, byte[] key)
Deprecated.- Parameters:
type- the MAC algorithm to usekey- the key to use in the MAC
-
-
Method Detail
-
getMacList
@Deprecated public static String[] getMacList()
Deprecated.Get mac list string [ ].- Returns:
- the string [ ]
-
checkMacList
@Deprecated public static void checkMacList(String[] macs)
Deprecated.Check mac list.- Parameters:
macs- the macs
-
getKeyLen
@Deprecated public static int getKeyLen(String type)
Deprecated.Gets key len.- Parameters:
type- the type- Returns:
- the key len
-
initMac
public void initMac(int seq)
-
update
public void update(byte[] packetdata, int off, int len)
-
getMac
public void getMac(byte[] out, int off)
-
size
public int size()
-
-