From ff1e835d888a2783e59efc30fa125bfaf7d150fe Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 12 Nov 2008 18:11:50 +0000 Subject: Remove support for provider identifiers from SCAN_Name - it turns out this was not the right place to keep track of this information. Also modify all Algorithm_Factory constructor functions to take instead of a SCAN_Name a pair of std::strings - the SCAN name and an optional provider name. If a provider is specified, either that provider will be used or the request will fail. Otherwise, the library will attempt best effort, based on user-set algorithm implementation settings (combine with benchmark.h for choosing the fastest implementation at runtime) or if not set, a static ordering (preset in static_provider_weight in prov_weight.cpp, though it would be nice to make this easier to toggle). --- src/engine/def_engine/lookup_mac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/engine') diff --git a/src/engine/def_engine/lookup_mac.cpp b/src/engine/def_engine/lookup_mac.cpp index ae44bbe3d..35f17e134 100644 --- a/src/engine/def_engine/lookup_mac.cpp +++ b/src/engine/def_engine/lookup_mac.cpp @@ -59,7 +59,7 @@ Default_Engine::find_mac(const SCAN_Name& request, #if defined(BOTAN_HAS_ANSI_X919_MAC) if(request.algo_name() == "X9.19-MAC" && request.arg_count() == 0) - return new ANSI_X919_MAC(af.make_block_cipher(SCAN_Name("DES"))); + return new ANSI_X919_MAC(af.make_block_cipher("DES")); #endif return 0; -- cgit v1.2.3