Skip to content

Change IV length range for XChaCha20 cipher#1084

Open
james-kwong wants to merge 1 commit intokrzyzanowskim:mainfrom
james-kwong:fixXChaChaIVLen
Open

Change IV length range for XChaCha20 cipher#1084
james-kwong wants to merge 1 commit intokrzyzanowskim:mainfrom
james-kwong:fixXChaChaIVLen

Conversation

@james-kwong
Copy link
Copy Markdown

Updated the valid range of initialization vector lengths for the XChaCha20 cipher from 12 bytes to 24 bytes, which is the correct value.

Checklist:

  • Correct file headers (see CONTRIBUTING.md).
  • Formatted with SwiftFormat.
  • Tests added.

Updated the valid range of initialization vector lengths for the XChaCha20 cipher from 12 bytes to 24 bytes, which is the correct value.

Signed-off-by: James Kwong <161430705+james-kwong@users.noreply.github.com>
@krzyzanowskim
Copy link
Copy Markdown
Owner

why? this need more merit to discuss

@james-kwong
Copy link
Copy Markdown
Author

I thought the ChaCha20 cipher used a 12 byte nonce, whereas XChaCha20 used 24 bytes?

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.

2 participants