@@ -11,6 +11,7 @@
#ifdef USE_CRYPTOPP
# define CRYPTOPP_ENABLE_NAMESPACE_WEAK 1
#include <string.h>
+# include <cryptopp/cryptlib.h>
# include <cryptopp/md5.h>
# include <cryptopp/sha.h>
# include <cryptopp/hmac.h>
@@ -32,6 +33,8 @@ namespace ceph {
}
~HMACSHA1();
};
+
+ class Digest : public CryptoPP::HashTransformation { };
}
}
#elif USE_NSS
@@ -86,6 +89,9 @@ namespace ceph {
assert(dummy == digest_size);
Restart();
}
+ size_t DigestSize() {
+ return digest_size;
+ }
};
class MD5 : public Digest {
public: