Skip to content

Conversation

HarmlessEvil
Copy link

We encountered an issue when encrypting messages with size that is smaller than DEFAULT_PADDING_LENGTH by NACL_EXTRA_BYTES. In this scenario, the current implementation uses a negative value for padding. A test is added demonstrating such behavior.

I consider the solution to be backward-compatible and only to improve the function because it will accept a wider range of inputs regarding their JSON-encoded length.

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