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

Hard-coded usage of the system RNG in ffi_pk_op #4340

Open
ghost opened this issue Sep 7, 2024 · 2 comments · May be fixed by #4411
Open

Hard-coded usage of the system RNG in ffi_pk_op #4340

ghost opened this issue Sep 7, 2024 · 2 comments · May be fixed by #4411
Labels
enhancement Enhancement or new feature

Comments

@ghost
Copy link

ghost commented Sep 7, 2024

There are functions in ffi_pk_op.cpp that directly use Botan::system_rng() without giving the caller the option to override that, e.g. here:

https://github.com/randombit/botan/blob/3.5.0/src/lib/ffi/ffi_pk_op.cpp#L40

Should the RNG not be a parameter?

@randombit
Copy link
Owner

It should have been a paramater. I don’t recall anymore why this ended up hard coded in this way. We cannot change the current implementations, since many existing users depend on the current ABI, but we could certainly add new functions which allow specifying an RNG to use.

@randombit randombit added the enhancement Enhancement or new feature label Sep 7, 2024
@dirkz dirkz linked a pull request Oct 27, 2024 that will close this issue
@dirkz
Copy link
Contributor

dirkz commented Oct 27, 2024

Implementation happening here: #4411

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants