jfjallid / go-smb

A client library to interact with Windows RPC services such as MS-SRVS and MS-RRP.
MIT License
44 stars 9 forks source link

Implement signing algorithms HMAC-SHA256 and AES-GMAC #4

Closed jfjallid closed 11 months ago

jfjallid commented 1 year ago

The negotiate request message offers three signing algorithms for SMB 3.1.1: HMAC-SHA256, AES-CMAC and AES-GMAC but only support for AES-CMAC is currently implementer which means that negotiations will fail if a server chooses one of the other two signing algorithms.

jfjallid commented 11 months ago

Changed Negotiate Protocol request to only support AES-CMAC for SMB 3.1.1. HMAC-SHA256 is used for SMB 2.1 Changes implemented in commit 0418296e39e4eae7cfaf145f4218b85734bc4688