-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Warning when use \Phalcon\Crypt with aes-256-gcm #13869
Comments
Did you tried to set key as second param in encrypt method? |
No, but it does not matter. Look at the code: Line 402 in 171b6cd
The sixth argument (tag) is never passed. From PHP documentation:
|
Yep, at first I didn't count arguments and thought that Seems that Phalcon doesn't support GCM or CCM modes. |
Documentation suggests using aes-256-gcm.
|
Resolved in #14079 |
Expected and Actual Behavior
It should work without warning.
Details
php --ri phalcon
)Version => 3.4.2
Powered by Zephir => Version 0.10.14-975ad02db4
php -v
)PHP 7.2.14 ( NTS )
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.14, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
Ubuntu 18.10
Compiling from source
The text was updated successfully, but these errors were encountered: