Skip to content

Add reference scrypt parameter validation test#408

Draft
achimala wants to merge 1 commit into
Tarsnap:masterfrom
achimala:codex/ref-param-validation-tests
Draft

Add reference scrypt parameter validation test#408
achimala wants to merge 1 commit into
Tarsnap:masterfrom
achimala:codex/ref-param-validation-tests

Conversation

@achimala

Copy link
Copy Markdown

Summary

  • add a dedicated invalid-parameter test for the reference crypto_scrypt() implementation
  • cover zero r, zero p, and N == 1
  • place the test under tests/invalid-params/ rather than tests/verify-strings/

Dependency

This is intentionally opened as a draft because the test is expected to pass after the validation fixes in #406 and #407 are applied.

Tests

  • git diff --check

Split out from #405.

Add a small dedicated invalid-parameter test for the reference crypto_scrypt() implementation, covering zero r, zero p, and N == 1.

Keep this outside tests/verify-strings since it does not verify ciphertext strings.
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.

1 participant