diff options
author | lloyd <[email protected]> | 2010-01-06 16:39:11 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-01-06 16:39:11 +0000 |
commit | a203ee234e31302946bba607be9afe1108abf527 (patch) | |
tree | 537e5c6f95af1df526737973811f6d185318f385 /src/algo_factory | |
parent | 0a146c37d78c1d0d07ac578b26fa43c9fbf202c5 (diff) |
Recognize aes_isa engine, set as high priority
Diffstat (limited to 'src/algo_factory')
-rw-r--r-- | src/algo_factory/prov_weight.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/algo_factory/prov_weight.cpp b/src/algo_factory/prov_weight.cpp index c7c2d8d8d..17284d024 100644 --- a/src/algo_factory/prov_weight.cpp +++ b/src/algo_factory/prov_weight.cpp @@ -19,15 +19,17 @@ u32bit static_provider_weight(const std::string& prov_name) * them, set the provider explicitly for the algorithms you want */ - if(prov_name == "core") return 5; - if(prov_name == "ia32") return 6; - if(prov_name == "amd64") return 7; + if(prov_name == "aes_isa") return 9; if(prov_name == "simd") return 8; + if(prov_name == "amd64") return 7; + if(prov_name == "ia32") return 6; + + if(prov_name == "core") return 5; if(prov_name == "openssl") return 2; if(prov_name == "gmp") return 1; - return 0; // other + return 0; // other/unknown } } |