robrichards / xmlseclibs

A PHP library for XML Security
BSD 3-Clause "New" or "Revised" License
388 stars 181 forks source link

Calculating of the digest #231

Open akalongman opened 3 years ago

akalongman commented 3 years ago

In the method calculateDigest used function hash for calculating digest:

$digest = hash($alg, $data, true);

But openssl library has a openssl_digest function, why don't use it?

$digest = openssl_digest($data, $alg, true);