Merge pull request #8202 from LinuxJedi/fix-cryptodev-debug

Fix cryptodev debug output
This commit is contained in:
JacobBarthelmeh
2024-11-20 14:00:05 -07:00
committed by GitHub

View File

@@ -175,8 +175,13 @@ int wc_DevCryptoCreate(WC_CRYPTODEV* ctx, int type, byte* key, word32 keySz)
WOLFSSL_MSG("Error getting session info"); WOLFSSL_MSG("Error getting session info");
return WC_DEVCRYPTO_E; return WC_DEVCRYPTO_E;
} }
printf("Using %s with driver %s\n", sesInfo.hash_info.cra_name, if (ctx->sess.cipher == 0) {
sesInfo.hash_info.cra_driver_name); printf("Using %s with driver %s\n", sesInfo.hash_info.cra_name,
sesInfo.hash_info.cra_driver_name);
} else {
printf("Using %s with driver %s\n", sesInfo.cipher_info.cra_name,
sesInfo.cipher_info.cra_driver_name);
}
#endif #endif
(void)key; (void)key;
(void)keySz; (void)keySz;