lriggs commented on code in PR #45695: URL: https://github.com/apache/arrow/pull/45695#discussion_r1994480748
########## cpp/src/gandiva/encrypt_utils.cc: ########## @@ -87,4 +90,17 @@ int32_t aes_decrypt(const char* ciphertext, int32_t ciphertext_len, const char* EVP_CIPHER_CTX_free(de_ctx); return plaintext_len; } + +const EVP_CIPHER* get_cipher_algo(int32_t key_length) { + switch (key_length) { + case 16: + return EVP_aes_128_ecb(); + case 24: + return EVP_aes_192_ecb(); + case 32: + return EVP_aes_256_ecb(); + default: + throw std::runtime_error("unsupported key length"); Review Comment: I did. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org