BSL v1.1.1 - 88.g2613f3a
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
fuzz_CoseContext_bcb_acceptor.cpp File Reference

Fuzz the COSE Context operation processing as a loose acceptor. More...

#include "TestUtils.h"
#include <bsl/crypto/KeyLoader.h>
#include <bsl/sample_pp/PolicyParser.h>
#include <bsl/mock_bpa/ctr.h>
#include <bsl/mock_bpa/KeyStore.h>
#include <bsl/mock_bpa/MockBPA.h>
#include <cinttypes>
+ Include dependency graph for fuzz_CoseContext_bcb_acceptor.cpp:

Macros

#define EXPECT_EQ(expect, got)
 

Functions

int LLVMFuzzerInitialize (int *argc, char ***argv)
 
int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 

Variables

static MockBPA_Agent_t agent
 Agent for all inputs.
 
static BSLP_PolicyProvider_t * policy
 Policy for agent.
 

Detailed Description

Fuzz the COSE Context operation processing as a loose acceptor.

Macro Definition Documentation

◆ EXPECT_EQ

#define EXPECT_EQ (   expect,
  got 
)
Value:
if ((expect) != (got)) \
{ \
BSL_LOG_CRIT("EXPECT failure"); \
}

Function Documentation

◆ LLVMFuzzerInitialize()

◆ LLVMFuzzerTestOneInput()

Variable Documentation

◆ agent

MockBPA_Agent_t agent
static

Agent for all inputs.

Referenced by LLVMFuzzerInitialize(), and LLVMFuzzerTestOneInput().

◆ policy

BSLP_PolicyProvider_t* policy
static

Policy for agent.

Referenced by LLVMFuzzerInitialize().