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

crypto: fix error of createCipher in wrap mode #15037

Closed
wants to merge 1 commit into from

Commits on Aug 29, 2017

  1. crypto: fix error of createCipher in wrap mode

    EVP_CIPHER_CTX_FLAG_WRAP_ALLOW flag needs to be set in using wrap mode
    ciphers. In `crypto.createCipher()`, AES key wrap mode does not use a
    default IV defined in RFC3394 but a generated IV with
    `EVP_BytesToKey()` to be consistent API behaviors with other ciphers.
    
    The built-in AES wrap mode in OpenSSL is not supported in FIPS mode as
    http://openssl.6102.n7.nabble.com/AES-Key-Wrap-in-FIPS-Mode-td50238.html
    so its tests in FIPS mode are skipped.
    shigeki committed Aug 29, 2017
    Configuration menu
    Copy the full SHA
    de733a4 View commit details
    Browse the repository at this point in the history