Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/wh_server_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1929,10 +1929,6 @@ static int _HandleEd25519Sign(whServerContext* ctx, uint16_t magic,
if (ret != 0) {
return ret;
}
WOLFHSM_CFG_PRINTF(
"[server] Ed25519Sign req: options=0x%08X key_id=0x%X msgSz=%u\n",
(unsigned int)req.options, (unsigned int)req.keyId,
(unsigned int)req.msgSz);

uint32_t available = inSize - sizeof(req);
if (req.msgSz > available) {
Expand Down Expand Up @@ -2029,10 +2025,6 @@ static int _HandleEd25519Verify(whServerContext* ctx, uint16_t magic,
if (ret != 0) {
return ret;
}
WOLFHSM_CFG_PRINTF("[server] Ed25519Verify req: options=0x%08X key_id=0x%X "
"sigSz=%u msgSz=%u\n",
(unsigned int)req.options, (unsigned int)req.keyId,
(unsigned int)req.sigSz, (unsigned int)req.msgSz);

uint32_t available = inSize - sizeof(req);
if (req.sigSz > available) {
Expand Down
5 changes: 3 additions & 2 deletions test/wh_test_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -2417,6 +2417,7 @@ static int whTest_KeyCache(whClientContext* ctx, int devId, WC_RNG* rng)
return ret;
}

#define WH_TEST_KEYSTORE_TEST_SZ (32)
static int whTest_NonExportableKeystore(whClientContext* ctx, int devId,
WC_RNG* rng)
{
Expand All @@ -2425,11 +2426,11 @@ static int whTest_NonExportableKeystore(whClientContext* ctx, int devId,

int ret = 0;
whKeyId keyId = WH_KEYID_ERASED;
uint8_t key[AES_256_KEY_SIZE] = {
uint8_t key[WH_TEST_KEYSTORE_TEST_SZ] = {
0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF, 0x11, 0x22, 0x33, 0x44, 0x55,
0x66, 0x77, 0x88, 0x99, 0x00, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF,
0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0x00};
uint8_t exportedKey[AES_256_KEY_SIZE] = {0};
uint8_t exportedKey[WH_TEST_KEYSTORE_TEST_SZ] = {0};
uint8_t label[WH_NVM_LABEL_LEN] = "NonExportableTestKey";
uint8_t exportedLabel[WH_NVM_LABEL_LEN] = {0};
uint16_t exportedKeySize;
Expand Down
Loading