Skip to content

Reject zero r or p in reference scrypt - #415

Merged
cperciva merged 1 commit into
masterfrom
ref-rp-zero
Jul 12, 2026
Merged

Reject zero r or p in reference scrypt#415
cperciva merged 1 commit into
masterfrom
ref-rp-zero

Conversation

@gperciva

Copy link
Copy Markdown
Member

No description provided.

The file format and libscrypt-kdf API require a positive r * p
product, but crypto_scrypt() did not reject zero r or p before later
size checks.

Reject zero values with EINVAL and document the positive lower bound
explicitly.

This follows up on d223018.
@cperciva
cperciva merged commit bc10851 into master Jul 12, 2026
2 checks passed
@gperciva
gperciva deleted the ref-rp-zero branch July 12, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants