Skip to content
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
6 changes: 4 additions & 2 deletions src/tpm2_cryptocb.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ int wolfTPM2_CryptoDevCb(int devId, wc_CryptoInfo* info, void* ctx)
#endif

if (info->algo_type == WC_ALGO_TYPE_RNG) {
#ifndef WC_NO_RNG
/* For WOLFTPM2_USE_WOLF_RNG we want to fallback to the wolfCrypt DRBG,
so return CRYPTOCB_UNAVAILABLE here */
#if !defined(WC_NO_RNG) && !defined(WOLFTPM2_USE_WOLF_RNG)
rc = wolfTPM2_GetRandom(tlsCtx->dev, info->rng.out, info->rng.sz);
#endif /* !WC_NO_RNG */
#endif /* !WC_NO_RNG && !WOLFTPM2_USE_WOLF_RNG */
}
Comment thread
dgarske marked this conversation as resolved.
else if (info->algo_type == WC_ALGO_TYPE_SEED) {
#ifndef WC_NO_RNG
Expand Down
Loading