Package com.trilead.ssh2.crypto.digest
Class MAC
java.lang.Object
com.trilead.ssh2.crypto.digest.MAC
- Direct Known Subclasses:
MessageMac
MAC. Replace by
to support enchanced Mac algorithms
- Version:
- $Id: MAC.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
mac
Deprecated.May be null if a newer Mac algorithm is used -
size
Deprecated.May be null if a newer Mac algorithm is used
-
-
Constructor Details
-
MAC
Deprecated.- Parameters:
type
- the MAC algorithm to usekey
- the key to use in the MAC
-
-
Method Details
-
getMacList
Deprecated.Get mac list string [ ].- Returns:
- the string [ ]
-
checkMacList
Deprecated.Check mac list.- Parameters:
macs
- the macs
-
getKeyLen
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()
-