Refactor AesEncryptor and AesDecryptor - #73
Conversation
|
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename the pull request title in the following format? or See also: |
There was a problem hiding this comment.
@sofia-tekdatum did you want to check on the tests before we continue with the refactor?
I finished this refactor before we had that conversation.
I'm back at the first PR in the chain running full tests, will report there and in subsequent PRs.
There was a problem hiding this comment.
why "2" over "DBPA" as we had it earlier? (a bit less cryptic)
There was a problem hiding this comment.
I had added an explicit check in AesCryptoContext for our enum, just so we knew it was getting passed along.
That code was removed in this PR, as it's no longer needed because the refactor is getting read to do the right thing.
That message is the existing CryptoContext error message that I don't want to change. This test will go away soon when we implement External versions anyways.
There was a problem hiding this comment.
to help legibility, can we add a comment as to which methods are from which interface?
Same for decryptor
There was a problem hiding this comment.
Done, I added a start/end marker for the Encryptor/Decryptor interface methods.
argmarco-tkd
left a comment
There was a problem hiding this comment.
Left a few comments - not blockers to merge.
1ae10e5 to
f89f2a6
Compare
…o header file and make them inherit from EncryptorInterface and DecryptorInterface respectively
4e3997e to
52eec39
Compare
@avalerio-tkd after the test investigation, ran the following: From cpp/build: From python: All passed. Can you PTAL? |
avalerio-tkd
left a comment
There was a problem hiding this comment.
Already had a look previously and LGTM.
@sofia-tekdatum thanks 10x for the diligence with the tests. That's reassuring.
Refactor AesEncryptor and AesDecryptor.
Move their AesCryptoContext to header file and make them inherit from EncryptorInterface and DecryptorInterface respectively.
Next step is to change the top level Encryptor to decouple it from the AesEncryptors altogether.