Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encryption: change to use openssl EVP API #5

Merged
merged 2 commits into from
Aug 7, 2023

Commits on Aug 7, 2023

  1. encryption: change to use openssl EVP API (facebook#156)

    Summary:
    Instead of using openssl's raw `AES_encrypt` and `AES_decrypt` API, which is a low level call to encrypt or decrypt exact one block (16 bytes), we change to use the `EVP_*` API. The former is deprecated, and will use the default C implementation without AES-NI support. Also the EVP API is capable of handing CTR mode on its own.
    
    Test Plan:
    will add tests
    
    Signed-off-by: Yi Wu <yiwu@pingcap.com>
    yiwu-arbug authored and acelyc111 committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    42f8313 View commit details
    Browse the repository at this point in the history
  2. fmt

    acelyc111 committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    74f85ff View commit details
    Browse the repository at this point in the history