diff options
Diffstat (limited to 'src/cms/cms_ealg.cpp')
-rw-r--r-- | src/cms/cms_ealg.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cms/cms_ealg.cpp b/src/cms/cms_ealg.cpp index 32de548b8..36641753b 100644 --- a/src/cms/cms_ealg.cpp +++ b/src/cms/cms_ealg.cpp @@ -52,9 +52,10 @@ DER_Encoder& encode_si(DER_Encoder& der, const X509_Certificate& cert, * Compute the hash of some content * *************************************************/ SecureVector<byte> hash_of(const SecureVector<byte>& content, - const std::string& hash) + const std::string& hash_name) { - std::auto_ptr<HashFunction> hash_fn(get_hash(hash)); + Algorithm_Factory& af = global_state().algorithm_factory(); + std::auto_ptr<HashFunction> hash_fn(af.make_hash_function(hash_name)); return hash_fn->process(content); } |