Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SHA256, SHA512, SHA2 and SHA3 #37

Open
NassimBtk opened this issue Jan 16, 2025 · 0 comments
Open

Support SHA256, SHA512, SHA2 and SHA3 #37

NassimBtk opened this issue Jan 16, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@NassimBtk
Copy link
Member

NassimBtk commented Jan 16, 2025

Specification

SHA1 is deprecated since 2011 by NIST : https://www.tbs-certificates.co.uk/FAQ/en/microsoft_depreciation_sha1.html (2017 by Windows)

SHA256, SHA512, SHA2 and SHA3 are not supported by the WestHawk's SNMP API.

To implement each of the algorithms in the existing code, we have to perform the following changes:

  • Implement a Digest class for the new algorithm. It should extend GeneralDigest
  • Update the class AsnDecoderv3 to create the authentication and privacy credentials for SHA256, SHA3, etc ...
  • Update the class AsnEncoderv3 to create the authentication and privacy credentials for SHA256, SHA3, etc ...
  • Add a branch in the conditional statement to set the authenticate and authProtocolCode values for the new algorithm
  • Add authentication methods, log messages and variables for the new algorithm in SnmpContextv3Basis
  • Add a new constant for the new algorithm in SnmpContextv3Face
  • Add authentication methods, log messages and variables for the new algorithm in SnmpContextv3Pool
  • Implement authentication methods for the new algorithm in SnmpUtilities
@NassimBtk NassimBtk added the enhancement New feature or request label Jan 16, 2025
@NassimBtk NassimBtk assigned MedMaalej and unassigned SafaeAJ Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants