Class NoneHmac
java.lang.Object
com.sshtools.common.ssh.components.NoneHmac
- All Implemented Interfaces:
Component,SshComponent,SshHmac,SecureComponent
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]doFinal()voidgenerate(long sequenceNo, byte[] data, int offset, int len, byte[] output, int start) intThe length of the message digest output by this implementation (maybe lower than mac size);intThe size of the message digest output by the hmac algorithmintvoidinit(byte[] keydata) booleanisETM()voidupdate(byte[] b) booleanverify(long sequenceNo, byte[] data, int start, int len, byte[] mac, int offset)
-
Constructor Details
-
NoneHmac
public NoneHmac()
-
-
Method Details
-
getMacSize
public int getMacSize()Description copied from interface:SshHmacThe size of the message digest output by the hmac algorithm- Specified by:
getMacSizein interfaceSshHmac- Returns:
-
getMacLength
public int getMacLength()Description copied from interface:SshHmacThe length of the message digest output by this implementation (maybe lower than mac size);- Specified by:
getMacLengthin interfaceSshHmac- Returns:
-
generate
public void generate(long sequenceNo, byte[] data, int offset, int len, byte[] output, int start) -
init
- Specified by:
initin interfaceSshHmac- Throws:
SshException
-
verify
public boolean verify(long sequenceNo, byte[] data, int start, int len, byte[] mac, int offset) -
update
public void update(byte[] b) -
doFinal
public byte[] doFinal() -
getAlgorithm
- Specified by:
getAlgorithmin interfaceSecureComponent- Specified by:
getAlgorithmin interfaceSshComponent- Specified by:
getAlgorithmin interfaceSshHmac
-
isETM
public boolean isETM() -
getSecurityLevel
- Specified by:
getSecurityLevelin interfaceSecureComponent
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceSecureComponent
-