| java.lang.Object jcifs.smb.SigningDigest
SigningDigest | public class SigningDigest (Code) | | To filter 0 len updates and for debugging
|
digest | public byte[] digest()(Code) | | |
sign | void sign(byte[] data, int offset, int length, ServerMessageBlock request, ServerMessageBlock response)(Code) | | Performs MAC signing of the SMB. This is done as follows.
The signature field of the SMB is overwritted with the sequence number;
The MD5 digest of the MAC signing key + the entire SMB is taken;
The first 8 bytes of this are placed in the signature field.
Parameters: data - The data. Parameters: offset - The starting offset at which the SMB header begins. Parameters: length - The length of the SMB data starting at offset. |
update | public void update(byte[] input, int offset, int len)(Code) | | |
verify | boolean verify(byte[] data, int offset, ServerMessageBlock response)(Code) | | Performs MAC signature verification. This calculates the signature
of the SMB and compares it to the signature field on the SMB itself.
Parameters: data - The data. Parameters: offset - The starting offset at which the SMB header begins. Parameters: length - The length of the SMB data starting at offset. |
|
|