Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

fix Seal() and Open() to handle aliased inputs #15

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

conradoplg
Copy link
Contributor

Hi! This PR fixes the issue of passing aliased inputs to Seal() and Open() - it would cause partially overlapped inputs to XORKeyStream which is not allowed (and actually panics in recent Go versions).

This solves an issue that I had reported in the old repo (the fixes I proposed at that time were wrong 😬 )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant