Package org.apache.sshd.common.mac
Interface Mac
- All Superinterfaces:
AlgorithmNameProvider
,MacInformation
- All Known Implementing Classes:
BaseMac
Message Authentication Code for use in SSH. It usually wraps a javax.crypto.Mac class.
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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 Details
-
init
- Throws:
Exception
-
update
default void update(byte[] buf) -
update
void update(byte[] buf, int start, int len) -
updateUInt
void updateUInt(long foo) -
doFinal
- Throws:
Exception
-
doFinal
- Throws:
Exception
-
doFinal
- Throws:
Exception
-
equals
static boolean equals(byte[] a1, int a1Offset, byte[] a2, int a2Offset, int length)
-