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


Change subject: CDPD-50675: Include crypto functions supported by Hive
......................................................................

CDPD-50675: 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: I78389ff527ddb2c3fc01d4c6c56eca1c07753e5d
---
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, 82 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/64/20364/1
--
To view, visit http://gerrit.cloudera.org:8080/20364
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

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

Reply via email to