Package org.apache.sshd.common.mac
Interface Mac
-
- All Superinterfaces:
AlgorithmNameProvider
,MacInformation
- All Known Implementing Classes:
BaseMac
public interface Mac extends MacInformation
Message Authentication Code for use in SSH. It usually wraps a javax.crypto.Mac class.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default byte[]
doFinal()
default void
doFinal(byte[] buf)
void
doFinal(byte[] buf, int offset)
static boolean
equals(byte[] a1, int a1Offset, byte[] a2, int a2Offset, int length)
void
init(byte[] key)
default void
update(byte[] buf)
void
update(byte[] buf, int start, int len)
void
updateUInt(long foo)
-
Methods inherited from interface org.apache.sshd.common.AlgorithmNameProvider
getAlgorithm
-
Methods inherited from interface org.apache.sshd.common.mac.MacInformation
getBlockSize, getDefaultBlockSize, isEncryptThenMac
-
-
-
-
Method Detail
-
init
void init(byte[] key) throws java.lang.Exception
- Throws:
java.lang.Exception
-
update
default void update(byte[] buf)
-
update
void update(byte[] buf, int start, int len)
-
updateUInt
void updateUInt(long foo)
-
doFinal
default byte[] doFinal() throws java.lang.Exception
- Throws:
java.lang.Exception
-
doFinal
default void doFinal(byte[] buf) throws java.lang.Exception
- Throws:
java.lang.Exception
-
doFinal
void doFinal(byte[] buf, int offset) throws java.lang.Exception
- Throws:
java.lang.Exception
-
equals
static boolean equals(byte[] a1, int a1Offset, byte[] a2, int a2Offset, int length)
-
-