Software APIs
Protected Member Functions | Protected Attributes | Static Protected Attributes
dif_kmac_unittest::KmacSqueezeTest Class Reference

Protected Member Functions

void ExpectAppendSize ()
 
void ExpectReadOutput (const uint32_t *share1, const uint32_t *share2, size_t len)
 
- Protected Member Functions inherited from dif_kmac_unittest::KmacTest
void ExpectMessageByte (const uint8_t *message, const size_t size)
 Set mmio write expectation for 8 bits data size. More...
 
void ExpectMessageInt32 (const uint8_t *message, const size_t size)
 Set mmio write expectation for 32 bits data size considering an alignment of 32 bits. More...
 
void ExpectConfig (void)
 
void ExpectKey (const dif_kmac_key_t &key)
 
void ExpectPrefix (const uint32_t *prefix_regs, uint32_t size)
 
void ExpectEntropySeed (const uint32_t *seed)
 
uint32_t GetRateBits (uint32_t security_level)
 
uint32_t GetRateWords (uint32_t security_level)
 
- Protected Member Functions inherited from mock_mmio::MmioTest
MockDevicedev ()
 

Protected Attributes

dif_kmac_operation_state_t expected_op_state_
 
uint32_t out_buffer_ [8]
 
size_t processed_
 
- Protected Attributes inherited from dif_kmac_unittest::KmacTest
dif_kmac_t kmac_
 
dif_kmac_operation_state_t op_state_
 
struct dif_kmac_unittest::KmacTest::ConfigRegister config_reg_
 

Static Protected Attributes

static constexpr std::array< std::array< uint32_t, 64 >, 2 > kOutShares
 
- Static Protected Attributes inherited from dif_kmac_unittest::KmacTest
static constexpr std::array< uint8_t, 17 > kMsg
 

Detailed Description

Definition at line 840 of file dif_kmac_unittest.cc.

Field Documentation

◆ expected_op_state_

dif_kmac_operation_state_t dif_kmac_unittest::KmacSqueezeTest::expected_op_state_
protected
Initial value:
= {
.squeezing = true,
.append_d = false,
.offset = 30,
.r = 34,
.d = 30,
}

Definition at line 842 of file dif_kmac_unittest.cc.

◆ kOutShares

constexpr std::array< std::array< uint32_t, 64 >, 2 > dif_kmac_unittest::KmacSqueezeTest::kOutShares
staticconstexprprotected
Initial value:
= {
{{0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0x5AA5A55A, 0x5AA5A55A,
0x5AA5A55A, 0x5AA5A55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A,
0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0xA55AA55A, 0xA55AA55A,
0xA55AA55A, 0xA55AA55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A,
0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0x5AA5A55A, 0x5AA5A55A,
0x5AA5A55A, 0x5AA5A55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A,
0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0xA55AA55A, 0xA55AA55A,
0xA55AA55A, 0xA55AA55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A,
0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0x5AA5A55A, 0x5AA5A55A,
0x5AA5A55A, 0x5AA5A55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A,
0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A},
{0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0x5AA5A55A, 0x5AA5A55A,
0x5AA5A55A, 0x5AA5A55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A,
0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0xA55AA55A, 0xA55AA55A,
0xA55AA55A, 0xA55AA55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A,
0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0x5AA5A55A, 0x5AA5A55A,
0x5AA5A55A, 0x5AA5A55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A,
0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0xA55AA55A, 0xA55AA55A,
0xA55AA55A, 0xA55AA55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A,
0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0x5AA5A55A, 0x5AA5A55A,
0x5AA5A55A, 0x5AA5A55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A, 0xA55AA55A,
0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A, 0x5AA5A55A}}}

Definition at line 852 of file dif_kmac_unittest.cc.