Skip to content

Change Zod validation from inclusive to exclusive min/max checks #36

@Filipo11021

Description

@Filipo11021

Update Zod schema validation to use exclusive minimum and maximum checks instead of inclusive ones.
Validation logic should strictly follow the allowed parameter ranges defined in the Node.js Crypto Argon2 specification.

Currently, values equal to the documented min/max bounds are incorrectly accepted. This change ensures that only values within the valid ranges (exclusive of the boundaries) are permitted, aligning behavior with the official Node.js crypto API documentation:
https://nodejs.org/api/crypto.html#cryptoargon2algorithm-parameters-callback

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

In Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions