[email protected] has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20447


Change subject: IMPALA-12418: Include crypto functions supported by Hive
......................................................................

IMPALA-12418: Include crypto functions supported by Hive

aes_encrypt / aes_decrypt functions currently support 256-bit key length
encryption. It uses EncrytionKey class implemented in Impala for
encryption/decryption. We set our Cipher mode to AES_256_CTR in
EncrytionKey.
CTR mode requires us to initialize iv_ vector of size
AES_BLOCK_SIZE which will act as the first input buffer for
encryption and the last input buffer for decryption. After initializing
all EncrytionKey class data fields we finally encrypt our buffer data
in input_vec and store the result in the same input_vec.
At last, we return the StringVal of our input_vec buffer.

Some key length checks are also there which makes sure we are
only using 256-bit key length for both aes_encrypt and aes_decrypt.

Change-Id: I3902f2b1d95da4d06995cbd687e79c48e16190c9
---
M be/src/exprs/string-functions-ir.cc
M be/src/exprs/string-functions.h
M be/src/util/openssl-util.cc
M be/src/util/openssl-util.h
M bin/cmake_aux/create_py3_virtualenv.sh
M common/function-registry/impala_functions.py
6 files changed, 247 insertions(+), 42 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/47/20447/2
--
To view, visit http://gerrit.cloudera.org:8080/20447
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3902f2b1d95da4d06995cbd687e79c48e16190c9
Gerrit-Change-Number: 20447
Gerrit-PatchSet: 2
Gerrit-Owner: Anonymous Coward <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>

Reply via email to