You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/12/10 05:10:58 UTC

[jira] [Commented] (TRAFODION-2228) add encryption functions for Trafodion

    [ https://issues.apache.org/jira/browse/TRAFODION-2228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15737236#comment-15737236 ] 

ASF GitHub Bot commented on TRAFODION-2228:
-------------------------------------------

GitHub user xwq opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/874

    [TRAFODION-2228]Add AES_ENCRYPT/AES_DECRYPT functions

    Add two functions which used to encrypt and decrypt the data using the
      official AES (Advanced Encryption Standard) algorithm.
    AES_ENCRYPT(str, key_str[, init_vector])
    AES_DECRYPT(crypt_str, key_str[, init_vector])
    
    Both these two function have optional init_vector argument which
    provides an initalization vector for block encryption modes that
    require it. For modes that require the optional init_vector argument, an error
    occurs if init_vector is missing. For modes that don't need
    init_vector, it will raise a unused argument waring if init_vector is
    provided.
    
    The new CQD block_encryption_mode controls the mode for
    block-based
    encryption algorithm. The default value is 0, which use
    aes-128-ecb.
    
    Here is the list for diffferent values for
    block_encryption_mode
    
    CQD value          algorithm
    0             aes-128-ecb
    1             aes_192_ecb
    2             aes_256_ecb
    3             aes_128_cbc
    4             aes_192_cbc
    5             aes_256_cbc
    6             aes_128_cfb1
    7             aes_192_cfb1
    8             aes_256_cfb1
    9             aes_128_cfb8
    10            aes_192_cfb8
    11            aes_256_cfb8
    12            aes_128_cfb128
    13            aes_192_cfb128
    14            aes_256_cfb128
    15            aes_128_ofb
    16            aes_192_ofb
    17            aes_256_ofb

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/xwq/incubator-trafodion encryption_function

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/874.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #874
    
----
commit 0bc6b1bc70186edd6482b703c34535b228a0a5b5
Author: Weiqing Xu <we...@esgyn.cn>
Date:   2016-12-09T15:20:01Z

    [TRAFODION-2228]Add AES_ENCRYPT/AES_DECRYPT functions
    
    Add two functions which used to encrypt and decrypt the data using the
      official AES (Advanced Encryption Standard) algorithm.
    AES_ENCRYPT(str, key_str[, init_vector])
    AES_DECRYPT(crypt_str, key_str[, init_vector])
    
    Both these two function have optional init_vector argument which
    provides an initalization vector for block encryption modes that
    require it. For modes that require the optional init_vector argument, an error
    occurs if init_vector is missing. For modes that don't need
    init_vector, it will raise a unused argument waring if init_vector is
    provided.
    
    The new CQD block_encryption_mode controls the mode for
    block-based
    encryption algorithm. The default value is 0, which use
    aes-128-ecb.
    
    Here is the list for diffferent values for
    block_encryption_mode
    
    CQD value          algorithm
    0             aes-128-ecb
    1             aes_192_ecb
    2             aes_256_ecb
    3             aes_128_cbc
    4             aes_192_cbc
    5             aes_256_cbc
    6             aes_128_cfb1
    7             aes_192_cfb1
    8             aes_256_cfb1
    9             aes_128_cfb8
    10            aes_192_cfb8
    11            aes_256_cfb8
    12            aes_128_cfb128
    13            aes_192_cfb128
    14            aes_256_cfb128
    15            aes_128_ofb
    16            aes_192_ofb
    17            aes_256_ofb

----


> add encryption functions for Trafodion
> --------------------------------------
>
>                 Key: TRAFODION-2228
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2228
>             Project: Apache Trafodion
>          Issue Type: Sub-task
>            Reporter: liu ming
>            Assignee: Weiqing Xu
>
> AES_DECRYPT()	Decrypt using AES
> AES_ENCRYPT()	Encrypt using AES
> ASYMMETRIC_DECRYPT()	Decrypt ciphertext using private or public key
> ASYMMETRIC_DERIVE()	Derive symmetric key from asymmetric keys
> ASYMMETRIC_ENCRYPT()	Encrypt cleartext using private or public key
> ASYMMETRIC_SIGN()	Generate signature from digest
> ASYMMETRIC_VERIFY()	Verify that signature matches digest



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)