Skip to content

Issue #46 : Add support for SHA-256 and MD5 authentication algorithms#47

Merged
NassimBtk merged 11 commits intomainfrom
feature/issue-46-add-support-for-sha-256-and-md5-authentication-algorithms
Feb 7, 2025
Merged

Issue #46 : Add support for SHA-256 and MD5 authentication algorithms#47
NassimBtk merged 11 commits intomainfrom
feature/issue-46-add-support-for-sha-256-and-md5-authentication-algorithms

Conversation

@SafaeAJ
Copy link
Contributor

@SafaeAJ SafaeAJ commented Feb 5, 2025

  • Added AuthenticationRakpHmacMd5, AuthenticationRakpHmacSha256, IntegrityHmacMd5_128, and IntegrityHmacSha256_128.

  • Updated CipherSuite, ConfidentialityAesCbc128, ConfidentialityAlgorithm, AuthenticationRakpNone, AuthenticatioRakpHmacSha1, IntegrityAlgorithm, AuthenticationAlgorithm, and IntegrityHmacSha1_96.

Tested :

HmacSH256 :

Capture d'écran 2025-02-04 152036
Capture d'écran 2025-02-04 153039

HmacMd5 :

Capture d'écran 2025-02-04 175551
Capture d'écran 2025-02-04 174753

* Updated IpmiClientConfiguration, AuthenticationAlgorithm, CipherSuite
  and ConfidentialityAlgorithm
* Added AuthenticationRakpHmacMd5, AuthenticationRakpHmacSha256,
  IntegrityHmacMd5_128, IntegrityHmacSha256_128
* Updated IntegrityHmacMd5_128, IntegrityHmacSha1_96 and
  IntegrityHmacSha256_128
@SafaeAJ SafaeAJ linked an issue Feb 5, 2025 that may be closed by this pull request
@SafaeAJ SafaeAJ requested a review from NassimBtk February 5, 2025 12:24
@SafaeAJ SafaeAJ self-assigned this Feb 5, 2025
Copy link
Collaborator

@NassimBtk NassimBtk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good job @SafaeAJ. Thank you! minor refactoring updates and we should be good.

* Factorize the code for integrity and authentication algorithms
* Updated ConfidentialityAesCbc128
@SafaeAJ SafaeAJ requested a review from NassimBtk February 6, 2025 11:34
Copy link
Collaborator

@NassimBtk NassimBtk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some additional changes and we are good to go.

return instantiateIntegrityHmacSha196Algorithm();
case SecurityConstants.IA_MD5_128:
// TODO: MD5-128
throw new IllegalArgumentException(NOT_YET_IMPLEMENTED_MESSAGE);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is IntegrityHmacMd5_128.java responsible for handling both IA_MD5_128 and IA_HMAC_MD5_128?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, IntegrityHmacMd5_128 only handles IA_HMAC_MD5_128, not IA_MD5_128

* Updated CipherSuite, ConfidentialityAesCbc128, AuthenticationRakpNone, AuthenticatioRakpHmacSha1, IntegrityAlgorithm, AuthenticationAlgorithm, and IntegrityHmacSha1_96.
@NassimBtk NassimBtk merged commit a798093 into main Feb 7, 2025
1 check passed
@NassimBtk NassimBtk deleted the feature/issue-46-add-support-for-sha-256-and-md5-authentication-algorithms branch February 7, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for SHA-256 and MD5 authentication algorithms

2 participants