3

I have written a PHP library that uses the openssl_verify() and openssl_sign(), using SHA256. I think the SHA256 support is kind of new for PHP and OpenSSL, but I don't know which version started to support SHA256.

This causes some problems with the clients using earlier versions of OpenSSL and PHP and I couldn't find the version I specified above.

Which OpenSSL version first supported SHA256 in RSA signing and verifying?

apaderno
  • 28,547
  • 16
  • 75
  • 90
LostMohican
  • 3,082
  • 7
  • 29
  • 38

1 Answers1

6

Due to PHP DOCS OPENSSL_ALGO_SHA256 constant vas first added in PHP 5.4.8.

I've also faced this problem while trying to verify SHA256. Don't know what to do now )

s.webbandit
  • 16,332
  • 16
  • 58
  • 82