Skip to content

Add jBCrypt test vectors including keylen>32 multi-block case#35

Merged
mfazekas merged 2 commits into
masterfrom
add-jbcrypt-test-vectors
Jun 13, 2026
Merged

Add jBCrypt test vectors including keylen>32 multi-block case#35
mfazekas merged 2 commits into
masterfrom
add-jbcrypt-test-vectors

Conversation

@mfazekas

Copy link
Copy Markdown
Contributor

Adds three test vectors from jBCrypt (by Kenny Root) to the existing test table.

The keylen=64 vector is particularly valuable as it exercises the multi-block interleaving path in bcrypt_pbkdf (where the outer loop runs count=1 and count=2), which none of the existing vectors covered. This gap matters for validating the JRuby implementation in PR #30.

All three vectors pass against the existing C extension.

@mfazekas mfazekas merged commit 29af4f5 into master Jun 13, 2026
12 checks passed
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