Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cryptodev debug output #8202

Merged
merged 1 commit into from
Nov 20, 2024
Merged
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
9 changes: 7 additions & 2 deletions wolfcrypt/src/port/devcrypto/wc_devcrypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,13 @@ int wc_DevCryptoCreate(WC_CRYPTODEV* ctx, int type, byte* key, word32 keySz)
WOLFSSL_MSG("Error getting session info");
return WC_DEVCRYPTO_E;
}
printf("Using %s with driver %s\n", sesInfo.hash_info.cra_name,
sesInfo.hash_info.cra_driver_name);
if (ctx->sess.cipher == 0) {
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
(void)key;
(void)keySz;
Expand Down
Loading