public class SMB1SigningDigest extends Object implements SMBSigningDigest
| Constructor and Description |
|---|
SMB1SigningDigest(byte[] macSigningKey)
This constructor used to instance a SigningDigest object for
signing/verifying SMB using kerberos session key.
|
SMB1SigningDigest(byte[] macSigningKey,
boolean bypass) |
SMB1SigningDigest(byte[] macSigningKey,
boolean bypass,
int initialSequence) |
SMB1SigningDigest(byte[] macSigningKey,
int initialSequence)
Construct a digest with a non-zero starting sequence number
|
SMB1SigningDigest(SmbTransportInternal transport,
NtlmPasswordAuthenticator auth) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
digest() |
void |
sign(byte[] data,
int offset,
int length,
CommonServerMessageBlock request,
CommonServerMessageBlock response)
Performs MAC signing of the SMB.
|
String |
toString() |
void |
update(byte[] input,
int offset,
int len)
Update digest with data
|
boolean |
verify(byte[] data,
int offset,
int l,
int extraPad,
CommonServerMessageBlock m)
Performs MAC signature verification.
|
static void |
writeUTime(Configuration cfg,
long t,
byte[] dst,
int dstIndex) |
public SMB1SigningDigest(byte[] macSigningKey,
boolean bypass)
macSigningKey - bypass - public SMB1SigningDigest(byte[] macSigningKey,
boolean bypass,
int initialSequence)
macSigningKey - bypass - initialSequence - public SMB1SigningDigest(byte[] macSigningKey)
macSigningKey - The MAC key used to sign or verify SMB.public SMB1SigningDigest(byte[] macSigningKey,
int initialSequence)
macSigningKey - initialSequence - public SMB1SigningDigest(SmbTransportInternal transport, NtlmPasswordAuthenticator auth) throws SmbException
transport - auth - SmbExceptionpublic void update(byte[] input,
int offset,
int len)
input - offset - len - public byte[] digest()
public void sign(byte[] data,
int offset,
int length,
CommonServerMessageBlock request,
CommonServerMessageBlock response)
sign in interface SMBSigningDigestdata - 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 messageSMBSigningDigest.sign(byte[], int, int, jcifs.internal.CommonServerMessageBlock,
jcifs.internal.CommonServerMessageBlock)public boolean verify(byte[] data,
int offset,
int l,
int extraPad,
CommonServerMessageBlock m)
verify in interface SMBSigningDigestdata - The data.offset - The starting offset at which the SMB header begins.extraPad - extra padding to include in signaturem - The message to verifySMBSigningDigest.verify(byte[], int, int, int, jcifs.internal.CommonServerMessageBlock)public static void writeUTime(Configuration cfg, long t, byte[] dst, int dstIndex)
cfg - t - dst - dstIndex - Copyright © 2021. All rights reserved.