Skip to content

Commit

Permalink
[pw_fuzzer] Add FuzzTests for PASE Message Receiving (#36445)
Browse files Browse the repository at this point in the history
* Add FuzzTests for PASE Message Receiving

* Integrating Comments

* Removing two unused global string constants

* Integrating Comments
  • Loading branch information
Alami-Amine authored Nov 13, 2024
1 parent 6848d04 commit f2b362a
Show file tree
Hide file tree
Showing 3 changed files with 649 additions and 15 deletions.
4 changes: 1 addition & 3 deletions src/protocols/secure_channel/PASESession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ using namespace Crypto;
using namespace Messaging;
using namespace Protocols::SecureChannel;

const char kSpake2pContext[] = "CHIP PAKE V1 Commissioning";
const char kSpake2pI2RSessionInfo[] = "Commissioning I2R Key";
const char kSpake2pR2ISessionInfo[] = "Commissioning R2I Key";
const char kSpake2pContext[] = "CHIP PAKE V1 Commissioning";

// Amounts of time to allow for server-side processing of messages.
//
Expand Down
5 changes: 4 additions & 1 deletion src/protocols/secure_channel/PASESession.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
#include <transport/raw/PeerAddress.h>

namespace chip {

namespace Testing {
class TestPASESession;
}
extern const char kSpake2pI2RSessionInfo[];
extern const char kSpake2pR2ISessionInfo[];

Expand Down Expand Up @@ -174,6 +176,7 @@ class DLL_EXPORT PASESession : public Messaging::UnsolicitedMessageHandler,
kInvalidKeyConfirmation = 0x00,
kUnexpected = 0xff,
};
friend class Testing::TestPASESession;

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

Expand Down
Loading

0 comments on commit f2b362a

Please sign in to comment.