- May 05, 2017
-
-
Matt Schwager authored
This also required adding an additional argument to SimpleSAML\Utils\Crypto::loadPrivateKey to ease in testing. Without this additional argument, SimpleSAML_Configuration::getBaseDir eventually gets called to determine the private key location. This doesn't work well with vfsstream. This argument shouldn't cause too much trouble, and seems cohesive enough with the function's purpose.
-
Jaime Pérez Crespo authored
The reason was the lack of conversion to integer for each character of the strings before applying the XOR operator to them. The operator returns always an empty string when applied to two characters, and applying a binary-wise OR between 0 and an empty string, yields 0. Therefore, $diff is always 0, and the function returns true for every two strings with same length, regardless of their contents.
-
- Apr 26, 2017
-
-
Jaime Pérez Crespo authored
-
Jaime Pérez Crespo authored
-
Jaime Pérez Crespo authored
This reverts commit b1b0d0ef.
-
Jaime Pérez Crespo authored
This reverts commit c441f9c9.
-
Jaime Pérez Crespo authored
It looks like mb_substr() doesn’t cope well with NULL as the third parameter in PHP 5.3.
-
Jaime Pérez Crespo authored
-
Jaime Pérez Crespo authored
-
Jaime Pérez Crespo authored
-
- Mar 30, 2017
-
-
Jaime Pérez Crespo authored
IVs must be random and one-time (never reused). Additionally, by deriving it from the key, the key length was effectively reduced to 128 bits.
-
- Mar 17, 2017
-
-
Jaime Pérez Crespo authored
Use it when constant-time comparisons are needed to avoid side-channel attacks.
-
- Jan 10, 2017
-
-
Jaime Pérez authored
This resolves #476.
-
Jaime Pérez authored
-
- Aug 05, 2016
-
-
Thijs Kinkhorst authored
Issue a notice when the option is used nonetheless. Closes: #432
-
- Jul 31, 2015
-
-
Jaime Perez Crespo authored
-
- Jul 20, 2015
-
-
Jaime Perez Crespo authored
Reimplement \SimpleSAML\Utils\Crypto::aesDecrypt() and \SimpleSAML\Utils\Crypto::aesEncrypt() to use openssl instead of mcrypt. This removes the direct dependency on mcrypt and closes #228.
-
- Jun 20, 2015
-
-
Jaime Perez Crespo authored
Move the aes[En|De]crypt() functionality in \SimpleSAML\Utils\Crypto to internal methods where the secret is passed as a parameter. Then we don't need a working configuration to test the functionality.
-
- Apr 23, 2015
-
-
Jaime Perez Crespo authored
Use InvalidArgumentException instead of SimpleSAML_Error_Exception when dealing with wrong input parameters.
-
Jaime Perez Crespo authored
Move SimpleSAML_Utilities::resolveCert() to SimpleSAML\Utils\Config::getCertPath() and deprecate the former.
-
- Apr 20, 2015
-
-
Jaime Perez Crespo authored
-
Jaime Perez Crespo authored
-
- Apr 16, 2015
-
-
Jaime Perez Crespo authored
Move SimpleSAML_Utilities::getSecretSalt() to SimpleSAML_Utils_Config::getSecretSalt(). Deprecate the former and stop using it.
-
Jaime Perez Crespo authored
-
Jaime Perez Crespo authored
Mark the old ones as deprecated and schedule them for removal in 2.0.
-
Jaime Perez Crespo authored
Mark the old ones as deprecated and schedule them for removal in 2.0.
-
Jaime Perez Crespo authored
Reformat SimpleSAML_Utils_Crypto. Remove SimpleSAML_Utils_Crypto::apr1Md5Hash() and SimpleSAML_Utils_Crypto::apr1Md5Valid(), since we are using now an external library for that.
-
- Jul 09, 2014
-
-
Thijs Kinkhorst authored
-
- Feb 09, 2014
-
-
Jaime Pérez Crespo authored
Remove more legacy code that's no longer necessary since we are requiring PHP >= 5.3.0. Deprecate SimpleSAML_Utilities::generateRandomBytesMTrand(). git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3362 44740490-163a-0410-bde0-09ae8108e29a
-
- Nov 04, 2011
-
-
Olav Morken authored
Thanks to Dyonisius Visser for implementing this! git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2974 44740490-163a-0410-bde0-09ae8108e29a
-
- Nov 03, 2011
-
-
Olav Morken authored
Avoid using the short tag style, since it may be disabled. Thanks to Thijs Kinkhorst for identifying this bug. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2973 44740490-163a-0410-bde0-09ae8108e29a
-
- Oct 28, 2011
-
-
Olav Morken authored
Thanks to Dyonisius Visser for implementing this. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2962 44740490-163a-0410-bde0-09ae8108e29a
-