Skip to content

kdf: document incompatibility with timeout#1024

Open
rhenium wants to merge 1 commit intoruby:masterfrom
rhenium:ky/kdf-document-interrupt
Open

kdf: document incompatibility with timeout#1024
rhenium wants to merge 1 commit intoruby:masterfrom
rhenium:ky/kdf-document-interrupt

Conversation

@rhenium
Copy link
Copy Markdown
Member

@rhenium rhenium commented Apr 8, 2026

OpenSSL::KDF.pbkdf2_hmac and .scrypt cannot currently be interrupted by Timeout.timeout because these make a single, slow OpenSSL function call during which Ruby-level interrupts cannot be checked. Add a warning to advise against using parameters from untrusted inputs.

OpenSSL::KDF.pbkdf2_hmac and .scrypt cannot currently be interrupted by
Timeout.timeout because these make a single, slow OpenSSL function call
during which Ruby-level interrupts cannot be checked. Add a warning to
advise against using parameters from untrusted inputs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant