Initial commit
This commit is contained in:
+42
@@ -0,0 +1,42 @@
|
||||
From 5e41098712ad65cb508560b01e38a9c9bf481a0c Mon Sep 17 00:00:00 2001
|
||||
From: "Chen.Zhao" <zhao.chen@luxshare-ict.com>
|
||||
Date: Wed, 14 Aug 2024 19:48:15 +0800
|
||||
Subject: [PATCH] Support HMAC-SHA1 Authentication/Integrity for RMCP+ lan
|
||||
session
|
||||
|
||||
---
|
||||
auth_algo.hpp | 3 ++-
|
||||
integrity_algo.hpp | 3 ++-
|
||||
2 files changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/auth_algo.hpp b/auth_algo.hpp
|
||||
index f940370..c218acf 100644
|
||||
--- a/auth_algo.hpp
|
||||
+++ b/auth_algo.hpp
|
||||
@@ -106,7 +106,8 @@ class Interface
|
||||
*/
|
||||
static bool isAlgorithmSupported(Algorithms algo)
|
||||
{
|
||||
- if (algo == Algorithms::RAKP_HMAC_SHA256)
|
||||
+ if (algo == Algorithms::RAKP_HMAC_SHA1 ||
|
||||
+ algo == Algorithms::RAKP_HMAC_SHA256)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
diff --git a/integrity_algo.hpp b/integrity_algo.hpp
|
||||
index 6ba6340..6347357 100644
|
||||
--- a/integrity_algo.hpp
|
||||
+++ b/integrity_algo.hpp
|
||||
@@ -94,7 +94,8 @@ class Interface
|
||||
*/
|
||||
static bool isAlgorithmSupported(Algorithms algo)
|
||||
{
|
||||
- if (algo == Algorithms::HMAC_SHA256_128)
|
||||
+ if (algo == Algorithms::HMAC_SHA1_96 ||
|
||||
+ algo == Algorithms::HMAC_SHA256_128)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
--
|
||||
2.25.1
|
||||
|
||||
Reference in New Issue
Block a user