diff --git a/src/wh_server_crypto.c b/src/wh_server_crypto.c index 7bdec659d..0719c79b9 100644 --- a/src/wh_server_crypto.c +++ b/src/wh_server_crypto.c @@ -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) { @@ -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) { diff --git a/test/wh_test_crypto.c b/test/wh_test_crypto.c index 29ce8626a..5868aee5b 100644 --- a/test/wh_test_crypto.c +++ b/test/wh_test_crypto.c @@ -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) { @@ -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;