Skip to content

[for discussion] Added an implementation of value_encryption_utils.*#172

Closed
argmarco-tkd wants to merge 2 commits into
mainfrom
ma_per-value-encryption
Closed

[for discussion] Added an implementation of value_encryption_utils.*#172
argmarco-tkd wants to merge 2 commits into
mainfrom
ma_per-value-encryption

Conversation

@argmarco-tkd

@argmarco-tkd argmarco-tkd commented Dec 1, 2025

Copy link
Copy Markdown
Collaborator
  • Tentative implementation (for discussion) of per-value encryption + encoding
  • Main functions:
    • EncryptTypedListValuesWithLevelBytes()
    • DecryptTypedListValuesWithLevelBytes()

Testing

  • New tests pass.

@argmarco-tkd argmarco-tkd changed the title Added a tentative implementation of value_encryption_utils.* [for discussion] Added a tentative implementation of value_encryption_utils.* Dec 1, 2025
* If value is empty, returns an EncryptedValue with empty payload and size=0.
* If value is non-empty and key is empty, throws std::invalid_argument.
*/
EncryptedValue EncryptValue(const std::vector<uint8_t>& value, const std::vector<uint8_t>& key);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd imagine there is a necessary function to iterate a TypedListValues and convert the list elements to the value ?

@argmarco-tkd argmarco-tkd force-pushed the ma_per-value-encryption branch 2 times, most recently from b3fb03b to fa0469b Compare December 2, 2025 21:34
@argmarco-tkd argmarco-tkd changed the title [for discussion] Added a tentative implementation of value_encryption_utils.* Added an implementation of value_encryption_utils.* Dec 2, 2025
@argmarco-tkd argmarco-tkd changed the title Added an implementation of value_encryption_utils.* [for discussion] Added an implementation of value_encryption_utils.* Dec 3, 2025
@argmarco-tkd argmarco-tkd force-pushed the ma_per-value-encryption branch from d3852f2 to 645ccb3 Compare December 4, 2025 00:49
@argmarco-tkd argmarco-tkd deleted the ma_per-value-encryption branch December 5, 2025 16:01
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