augustoasilva commented on a change in pull request #11515:
URL: https://github.com/apache/arrow/pull/11515#discussion_r742738094
##########
File path: cpp/src/gandiva/gdv_function_stubs.cc
##########
@@ -794,6 +796,60 @@ const char* gdv_fn_initcap_utf8(int64_t context, const
char* data, int32_t data_
*out_len = out_idx;
return out;
}
+
+GANDIVA_EXPORT
+const char* gdv_fn_aes_encrypt(int64_t context, const char* data, int32_t
data_len,
+ const char* key_data, int32_t key_data_len,
+ int32_t* out_len) {
+ if (data_len < 0) {
+ gdv_fn_context_set_error_msg(context, "Invalid data length to be
encrypted");
+ *out_len = 0;
+ return "";
+ }
+
+ unsigned char encrypted[256];
Review comment:
We dont need it anymore
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]