Signature Algorithms
- OPENSSL_ALGO_SHA1 (integer)
- Used as default algorithm by openssl_sign() and openssl_verify().
- OPENSSL_ALGO_MD5 (integer)
- OPENSSL_ALGO_MD4 (integer)
- OPENSSL_ALGO_MD2 (integer)
Замечание: These constants were added in 5.0.0.
Замечание: These constants were added in 5.0.0.
Коментарии
It should be noted that the default signature algorithm used by openssl_sign() and openssl_verify (OPENSSL_ALGO_SHA1) is no longer supported by default in OpenSSL Version 3 series.
With an up to date OpenSSL library, one has to run
"update-crypto-policies --set LEGACY"
on the server where the library resides in order to allow these functions to work without the optional alternative algorithm argument.