Skip to content

Conversation

realvarx
Copy link
Contributor

@realvarx realvarx commented Oct 9, 2023

Put methods were not creating random IVs for AES encryption and Get methods were not using metadata IVs for decryption.

- What I did
Create random IVs using EncryptionUtil.generate_iv_nonce() and correct the way they are stored in the secondary server.

- How to verify it
Check automatic tests and look changes in the code.

- Description for the changelog
fix: Use random IV in AtClient put/get methods

@realvarx realvarx requested review from Xlin123 and cpswan October 9, 2023 12:23
@realvarx realvarx self-assigned this Oct 9, 2023
@realvarx realvarx removed request for Xlin123 and cpswan October 9, 2023 12:28
@realvarx realvarx marked this pull request as draft October 9, 2023 12:29
@realvarx
Copy link
Contributor Author

realvarx commented Oct 9, 2023

Still have to make changes to some tests, as they are not taking in account IV generation.

Should create a set_iv_nonce method for SharedKey and SelfKey classes, so this parameter can be modified before actually using put/get methods.

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