22 #include "../Exception.h"
26 #define URI_SHA1 "http://www.w3.org/2000/09/xmldsig#sha1"
27 #define URI_SHA224 "http://www.w3.org/2001/04/xmldsig-more#sha224"
28 #define URI_SHA256 "http://www.w3.org/2001/04/xmlenc#sha256"
29 #define URI_SHA384 "http://www.w3.org/2001/04/xmldsig-more#sha384"
30 #define URI_SHA512 "http://www.w3.org/2001/04/xmlenc#sha512"
32 #define URI_RSA_SHA1 "http://www.w3.org/2000/09/xmldsig#rsa-sha1"
33 #define URI_RSA_SHA224 "http://www.w3.org/2001/04/xmldsig-more#rsa-sha224"
34 #define URI_RSA_SHA256 "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"
35 #define URI_RSA_SHA384 "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384"
36 #define URI_RSA_SHA512 "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"
52 void update(
const std::vector<unsigned char> &data)
throw(
IOException);
53 virtual void update(
const unsigned char *data,
unsigned long length)
throw(
IOException);
54 virtual std::vector<unsigned char> getDigest()
throw(
IOException);
55 unsigned int getSize()
const;
56 int getMethod()
const;
57 std::string getName()
const;
58 std::string getUri()
const;
60 static int toMethod(
const std::string &methodUri)
throw(
IOException);
61 static bool isSupported(
const std::string &methodUri);