add enabling and disabling setdate

This commit is contained in:
2025-04-29 05:00:39 -05:00
parent 82a3131e1b
commit b4ad435aab
5 changed files with 18 additions and 4 deletions

View File

@@ -371,6 +371,7 @@ namespace Tesses::Framework::Crypto
}
bool RandomBytes(std::vector<uint8_t>& output, std::string personal_str)
{
#if defined(TESSESFRAMEWORK_ENABLE_MBED)
mbedtls_entropy_context entropy;
mbedtls_ctr_drbg_context ctr_drbg;
@@ -394,5 +395,7 @@ namespace Tesses::Framework::Crypto
mbedtls_ctr_drbg_free(&ctr_drbg);
mbedtls_entropy_free(&entropy);
return true;
#endif
return false;
}
}