OpenSSL Improvements

http://php.net/openssl

In order to improve support for OpenID, OpenSSL support has been improved.

Access to OpenSSL Digest Functions

<?php
foreach (openssl_get_md_methods() as $d) { 
  echo 
$d." - ".openssl_digest("foo"$d)."<br>\n"
}
?>
Output
blake2b512 - ca002330e69d3e6b84a46a56a6533fd79d51d97a3bb7cad6c2ff43b354185d6dc1e723fb3db4ae0737e120378424c714bb982d9dc5bbd7a0ab318240ddd18f8d
blake2s256 - 08d6cad88075de8f192db097573d0e829411cd91eb6ec65e8fc16c017edfdb74
md4 -
md5 - acbd18db4cc2f85cedef654fccc4a4d8
md5-sha1 - acbd18db4cc2f85cedef654fccc4a4d80beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33
ripemd160 - 42cfa211018ea492fdee45ac637b7972a0ad6873
sha1 - 0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33
sha224 - 0808f64e60d58979fcb676c96ec938270dea42445aeefcd3a4e6f8db
sha256 - 2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
sha3-224 - f4f6779e153c391bbd29c95e72b0708e39d9166c7cea51d1f10ef58a
sha3-256 - 76d3bc41c9f588f7fcd0d5bf4718f8f84b1c41b20882703100b9eb9413807c01
sha3-384 - 665551928d13b7d84ee02734502b018d896a0fb87eed5adb4c87ba91bbd6489410e11b0fbcc06ed7d0ebad559e5d3bb5
sha3-512 - 4bca2b137edc580fe50a88983ef860ebaca36c857b1f492839d6d7392452a63c82cbebc68e3b70a2a1480b4bb5d437a7cba6ecf9d89f9ff3ccd14cd6146ea7e7
sha384 - 98c11ffdfdd540676b1a137cb1a22b2a70350c9a44171d6b1180c6be5cbb2ee3f79d532c8a1dd9ef2e8e08e752a3babb
sha512 - f7fbba6e0636f890e56fbbf3283e524c6fa3204ae298382d624741d0dc6638326e282c41be5e4254d8820772c5518a2c5a8c0c7f7eda19594a7eb539453e1ed7
sha512-224 - d68f258d37d670cfc1ec1001a0394784233f88f056994f9a7e5e99be
sha512-256 - d58042e6aa5a335e03ad576c6a9e43b41591bfd2077f72dec9df7930e492055d
shake128 - f84e95cb5fbd2038863ab27d3cdeac29
shake256 - 1af97f7818a28edfdfce5ec66dbdc7e871813816d7d585fe1f12475ded5b6502
sm3 - 98474f4c313766eb66422d94760567eb9e36ee970827c96cfd7c6cd77253eef0
whirlpool -
Access to OpenSSL Cipher Functions

<?php
foreach(openssl_get_cipher_methods() as $k=>$v) {
  echo 
"$v<br>\n";
}
?>
Output
aes-128-cbc
aes-128-cbc-cts
aes-128-cbc-hmac-sha1
aes-128-cbc-hmac-sha256
aes-128-ccm
aes-128-cfb
aes-128-cfb1
aes-128-cfb8
aes-128-ctr
aes-128-ecb
aes-128-gcm
aes-128-ocb
aes-128-ofb
aes-128-siv
aes-128-wrap
aes-128-wrap-inv
aes-128-wrap-pad
aes-128-wrap-pad-inv
aes-128-xts
aes-192-cbc
aes-192-cbc-cts
aes-192-ccm
aes-192-cfb
aes-192-cfb1
aes-192-cfb8
aes-192-ctr
aes-192-ecb
aes-192-gcm
aes-192-ocb
aes-192-ofb
aes-192-siv
aes-192-wrap
aes-192-wrap-inv
aes-192-wrap-pad
aes-192-wrap-pad-inv
aes-256-cbc
aes-256-cbc-cts
aes-256-cbc-hmac-sha1
aes-256-cbc-hmac-sha256
aes-256-ccm
aes-256-cfb
aes-256-cfb1
aes-256-cfb8
aes-256-ctr
aes-256-ecb
aes-256-gcm
aes-256-ocb
aes-256-ofb
aes-256-siv
aes-256-wrap
aes-256-wrap-inv
aes-256-wrap-pad
aes-256-wrap-pad-inv
aes-256-xts
aria-128-cbc
aria-128-ccm
aria-128-cfb
aria-128-cfb1
aria-128-cfb8
aria-128-ctr
aria-128-ecb
aria-128-gcm
aria-128-ofb
aria-192-cbc
aria-192-ccm
aria-192-cfb
aria-192-cfb1
aria-192-cfb8
aria-192-ctr
aria-192-ecb
aria-192-gcm
aria-192-ofb
aria-256-cbc
aria-256-ccm
aria-256-cfb
aria-256-cfb1
aria-256-cfb8
aria-256-ctr
aria-256-ecb
aria-256-gcm
aria-256-ofb
camellia-128-cbc
camellia-128-cbc-cts
camellia-128-cfb
camellia-128-cfb1
camellia-128-cfb8
camellia-128-ctr
camellia-128-ecb
camellia-128-ofb
camellia-192-cbc
camellia-192-cbc-cts
camellia-192-cfb
camellia-192-cfb1
camellia-192-cfb8
camellia-192-ctr
camellia-192-ecb
camellia-192-ofb
camellia-256-cbc
camellia-256-cbc-cts
camellia-256-cfb
camellia-256-cfb1
camellia-256-cfb8
camellia-256-ctr
camellia-256-ecb
camellia-256-ofb
chacha20
chacha20-poly1305
des-ede-cbc
des-ede-cfb
des-ede-ecb
des-ede-ofb
des-ede3-cbc
des-ede3-cfb
des-ede3-cfb1
des-ede3-cfb8
des-ede3-ecb
des-ede3-ofb
des3-wrap
null
sm4-cbc
sm4-cfb
sm4-ctr
sm4-ecb
sm4-ofb