botan: Add MD5 support to Botan hasher

Support MD5 in the Botan plugin if supported by Botan.
MD5 is required for RADIUS and obviously EAP-MD5,
and also for non-PKCS#8 encoded, encrypted private keys.
This commit is contained in:
René Korthaus
2018-09-12 16:25:00 +02:00
committed by Tobias Brunner
parent 04ecaff6a9
commit 13f113f7a9
3 changed files with 8 additions and 1 deletions
@@ -112,6 +112,9 @@ botan_hasher_t *botan_hasher_create(hash_algorithm_t algo)
switch (algo)
{
case HASH_MD5:
hash_name = "MD5";
break;
case HASH_SHA1:
hash_name = "SHA-1";
break;