Skip to content

mcrypt: fix MCRYPT_ENIGMA to the real MCRYPT_ENIGNA and add MCRYPT_BLOWFISH_COMPAT#5667

Closed
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-src/mcrypt-constants
Closed

mcrypt: fix MCRYPT_ENIGMA to the real MCRYPT_ENIGNA and add MCRYPT_BLOWFISH_COMPAT#5667
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-src/mcrypt-constants

Conversation

@lacatoire

Copy link
Copy Markdown
Member

The cipher list documented MCRYPT_ENIGMA, but the constant registered by ext/mcrypt is spelled MCRYPT_ENIGNA (see ext/mcrypt/mcrypt.c: MCRYPT_ENTRY2_2_4(ENIGNA, "crypt")), so the documented name never existed.

Also adds MCRYPT_BLOWFISH_COMPAT, which is registered (MCRYPT_ENTRY2_2_4(BLOWFISH_COMPAT, "blowfish-compat")) but was missing from the list.

ciphers.xml listed MCRYPT_ENIGMA, but the extension registers the constant
as MCRYPT_ENIGNA (a long-standing misspelling in mcrypt.c: MCRYPT_ENTRY2_2_4(ENIGNA, "crypt")),
so MCRYPT_ENIGMA does not exist. Also add the registered but undocumented
MCRYPT_BLOWFISH_COMPAT constant.
@lacatoire lacatoire closed this Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant