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.
switch (algo)
{
+ case HASH_MD5:
+ hash_name = "MD5";
+ break;
case HASH_SHA1:
hash_name = "SHA-1";
break;
/*
- * Copyright (C) 2017 René Korthaus, Rohde & Schwarz Cybersecurity
+ * Copyright (C) 2018 René Korthaus
+ * Rohde & Schwarz Cybersecurity GmbH
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
#endif
/* hashers */
PLUGIN_REGISTER(HASHER, botan_hasher_create),
+#ifdef BOTAN_HAS_MD5
+ PLUGIN_PROVIDE(HASHER, HASH_MD5),
+#endif
#ifdef BOTAN_HAS_SHA1
PLUGIN_PROVIDE(HASHER, HASH_SHA1),
#endif