Алгоритмы подписи
-
OPENSSL_ALGO_DSS1
(integer) -
OPENSSL_ALGO_SHA1
(integer) - Используется как алгоритм по умолчанию для функций openssl_sign() и openssl_verify().
-
OPENSSL_ALGO_MD5
(integer) -
OPENSSL_ALGO_MD4
(integer) -
OPENSSL_ALGO_MD2
(integer)
Замечание:
Эти константы добавлены в версии 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.