パッケージ jcifs.internal.smb2
クラス Smb2SigningDigest
- java.lang.Object
-
- jcifs.internal.smb2.Smb2SigningDigest
-
- すべての実装されたインタフェース:
SMBSigningDigest
public class Smb2SigningDigest extends Object implements SMBSigningDigest
- 作成者:
- mbechler
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 Smb2SigningDigest(byte[] sessionKey, int dialect, byte[] preauthIntegrityHash)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 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.
-
-
-
コンストラクタの詳細
-
Smb2SigningDigest
public Smb2SigningDigest(byte[] sessionKey, int dialect, byte[] preauthIntegrityHash) throws GeneralSecurityException- パラメータ:
sessionKey-dialect-preauthIntegrityHash-- 例外:
GeneralSecurityException
-
-
メソッドの詳細
-
sign
public 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.- 定義:
signインタフェース内SMBSigningDigest- パラメータ:
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- 関連項目:
SMBSigningDigest.sign(byte[], int, int, jcifs.internal.CommonServerMessageBlock, jcifs.internal.CommonServerMessageBlock)
-
verify
public 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.- 定義:
verifyインタフェース内SMBSigningDigest- パラメータ:
data- The data.offset- The starting offset at which the SMB header begins.extraPad- extra padding to include in signaturemsg- The message to verify- 戻り値:
- whether verification was unsuccessful
- 関連項目:
SMBSigningDigest.verify(byte[], int, int, int, jcifs.internal.CommonServerMessageBlock)
-
-