パッケージ jcifs.internal
インタフェース SMBSigningDigest
-
- 既知の実装クラスのリスト:
SMB1SigningDigest,Smb2SigningDigest
public interface SMBSigningDigest- 作成者:
- mbechler
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド 修飾子とタイプ メソッド 説明 voidsign(byte[] data, int offset, int length, CommonServerMessageBlock request, CommonServerMessageBlock response)Performs MAC signing of the SMB.booleanverify(byte[] data, int offset, int length, int extraPad, CommonServerMessageBlock msg)Performs MAC signature verification.
-
-
-
メソッドの詳細
-
sign
void sign(byte[] data, int offset, int length, CommonServerMessageBlock request, CommonServerMessageBlock response)Performs MAC signing of the SMB. This is done as follows. The signature field of the SMB is overwritten 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.- パラメータ:
data- The data.offset- The starting offset at which the SMB header begins.length- The length of the SMB data starting at offset.request- request messageresponse- response message
-
verify
boolean verify(byte[] data, int offset, int length, int extraPad, CommonServerMessageBlock msg)Performs MAC signature verification. This calculates the signature of the SMB and compares it to the signature field on the SMB itself.- パラメータ:
data- The data.offset- The starting offset at which the SMB header begins.length-extraPad- extra padding to include in signaturemsg- The message to verify- 戻り値:
- whether verification was unsuccessful
-
-