You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change was made to the Decryptor API in #43071, we should do the same for the Encryptor API for consistency and to make the code more maintainable.
Component(s)
C++, Parquet
The text was updated successfully, but these errors were encountered:
…pan instead of raw pointers (#43195)
### Rationale for this change
See #43142. This is a follow up to #43071 which refactored the Decryptor API and added extra checks to prevent segfaults. This PR makes similar changes to the Encryptor API for consistency and better maintainability.
### What changes are included in this PR?
* Change `AesEncryptor::Encrypt` and `Encryptor::Encrypt` to use `arrow::util::span` instead of raw pointers
* Replace the `AesEncryptor::CiphertextSizeDelta` method with a `CiphertextLength` method that checks for overflow and abstracts the size difference behaviour away from consumer code for improved readability.
### Are these changes tested?
* This is mostly a refactoring of existing code so is covered by existing tests.
### Are there any user-facing changes?
No
* GitHub Issue: #43142
Lead-authored-by: Adam Reeve <[email protected]>
Co-authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
Describe the enhancement requested
This change was made to the Decryptor API in #43071, we should do the same for the Encryptor API for consistency and to make the code more maintainable.
Component(s)
C++, Parquet
The text was updated successfully, but these errors were encountered: