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

aes_*_cfb128 wrongly reported as unsupported with OpenSSL 3.0 #6146

Closed
dmitrivereshchagin opened this issue Jul 11, 2022 · 0 comments
Closed
Assignees
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS

Comments

@dmitrivereshchagin
Copy link
Contributor

Describe the bug

I ran into this problem after building OTP 24.3.4.2 with OpenSSL 3.0.2. aes_128_cfb128 is not supported

> lists:member(aes_128_cfb128, crypto:supports(ciphers)).
false

At the same time I can see aes-128-cfb in the output of the following command

$ openssl enc -ciphers

To Reproduce

Build OTP with OpenSSL 3.0.

Expected behavior

The following expression evaluates to true

lists:member(aes_128_cfb128, crypto:supports(ciphers))

The same for aes_192_cfb128 and aes_256_cfb128.

Affected versions

OTP 24, OTP 25.

Additional context

According to openssl-enc man page aes-128-cfb is 128 bit AES in 128 bit CFB mode. It seems like crypto uses wrong name in cipher_type_t.str_v3. I can confirm that it works as expected if I replace -cfb128 with -cfb here

https://github.com/erlang/otp/blob/OTP-24.3.4.2/lib/crypto/c_src/cipher.c#L82-L84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

3 participants