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

Allow kuznyechik-ctr-acpkm-omac PKCS12 integration #413

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Nov 2, 2022

  1. Allow kuznyechik-ctr-acpkm-omac PKCS12 integration

    OpenSSL PKCS12 module sets all-zeros initial vector on encryption and
    doesn't change it on decryption.
    
    This patch addresses `kuznyechik-ctr-acpkm-omac` behavior differences in
    two places:
    
    1. in `gost2015_acpkm_omac_init()` IV is initialized with a random value
       on encryption, thus overwriting user-defined value
    
    2. in `gost_grasshopper_cipher_init` IV is initialized with a random
       value, thus overwriting assumed default all-zeros value
    
    This patch also implements 3 ctrl operations required by PKCS12 module:
    - EVP_CTRL_AEAD_GET_TAG
    - EVP_CTRL_AEAD_SET_TAG
    - EVP_CTRL_AEAD_TLS1_AAD
    
    Signed-off-by: Sergei Ianovich <s@elektroplus.ru>
    Sergei Ianovich authored and yanovich committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    ecf873d View commit details
    Browse the repository at this point in the history
  2. fixup! Allow kuznyechik-ctr-acpkm-omac PKCS12 integration

    Sergei Ianovich authored and yanovich committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    c40bd93 View commit details
    Browse the repository at this point in the history
  3. fixup! Allow kuznyechik-ctr-acpkm-omac PKCS12 integration

    Sergei Ianovich authored and yanovich committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    fa4d6b0 View commit details
    Browse the repository at this point in the history
  4. fixup! Allow kuznyechik-ctr-acpkm-omac PKCS12 integration

    Sergei Ianovich authored and yanovich committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    e44a4b7 View commit details
    Browse the repository at this point in the history