Skip to content

Commit f2b362a

Browse files
authored
[pw_fuzzer] Add FuzzTests for PASE Message Receiving (#36445)
* Add FuzzTests for PASE Message Receiving * Integrating Comments * Removing two unused global string constants * Integrating Comments
1 parent 6848d04 commit f2b362a

File tree

3 files changed

+649
-15
lines changed

3 files changed

+649
-15
lines changed

src/protocols/secure_channel/PASESession.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ using namespace Crypto;
5454
using namespace Messaging;
5555
using namespace Protocols::SecureChannel;
5656

57-
const char kSpake2pContext[] = "CHIP PAKE V1 Commissioning";
58-
const char kSpake2pI2RSessionInfo[] = "Commissioning I2R Key";
59-
const char kSpake2pR2ISessionInfo[] = "Commissioning R2I Key";
57+
const char kSpake2pContext[] = "CHIP PAKE V1 Commissioning";
6058

6159
// Amounts of time to allow for server-side processing of messages.
6260
//

src/protocols/secure_channel/PASESession.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
#include <transport/raw/PeerAddress.h>
4444

4545
namespace chip {
46-
46+
namespace Testing {
47+
class TestPASESession;
48+
}
4749
extern const char kSpake2pI2RSessionInfo[];
4850
extern const char kSpake2pR2ISessionInfo[];
4951

@@ -174,6 +176,7 @@ class DLL_EXPORT PASESession : public Messaging::UnsolicitedMessageHandler,
174176
kInvalidKeyConfirmation = 0x00,
175177
kUnexpected = 0xff,
176178
};
179+
friend class Testing::TestPASESession;
177180

178181
CHIP_ERROR Init(SessionManager & sessionManager, uint32_t setupCode, SessionEstablishmentDelegate * delegate);
179182

0 commit comments

Comments
 (0)