From be41b79db735f10d09f5f73e4c2d438cee2d4ab7 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 28 Jun 2010 19:54:46 +0000 Subject: Give all Filter objects a method for querying their name --- src/pbe/pbes2/pbes2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pbe/pbes2/pbes2.cpp') diff --git a/src/pbe/pbes2/pbes2.cpp b/src/pbe/pbes2/pbes2.cpp index 1ac16af8d..5b77acff5 100644 --- a/src/pbe/pbes2/pbes2.cpp +++ b/src/pbe/pbes2/pbes2.cpp @@ -207,6 +207,12 @@ bool PBE_PKCS5v20::known_cipher(const std::string& algo) return false; } +std::string PBE_PKCS5v20::name() const + { + return "PBE-PKCS5v20(" + block_cipher->name() + "," + + hash_function->name() + ")"; + } + /* * PKCS#5 v2.0 PBE Constructor */ -- cgit v1.2.3