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

storage: Preserve counter across Encrypt() calls #2016

Merged
merged 3 commits into from
Dec 5, 2019

Conversation

nolash
Copy link
Contributor

@nolash nolash commented Dec 4, 2019

In the current code state, the counter is reset on every call to Encrypt(). This means that the result of data will depend on how it is buffered. To persist the counter across Encrypt() calls increases flexibility.

@nolash nolash requested a review from janos December 4, 2019 15:29
@nolash
Copy link
Contributor Author

nolash commented Dec 4, 2019

@janos sorry I forgot to add the Reset() method to the interface

@nolash nolash merged commit e68451c into ethersphere:master Dec 5, 2019
@nolash nolash deleted the encryption-preserve-index branch December 5, 2019 09:48
@acud acud added this to the 0.5.5 milestone Jan 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants