wolfSSL / wolfcrypt-py

A Python wrapper that encapsulates wolfSSL's wolfCrypt API.
https://wolfssl.github.io/wolfcrypt-py
31 stars 17 forks source link

Call wc_SetSeed_Cb in __init__.py if needed. #29

Closed haydenroche5 closed 2 years ago

haydenroche5 commented 2 years ago

When using wolfCrypt FIPS v5 with an application (e.g. wolfcrypt-py), the application needs to set an RNG seed generation callback with wc_SetSeed_Cb. This can simply be wcGenerateSeed. This commit adds code to __init_\.py to do just that.