18 #ifndef _DECAF_SECURITY_MESSAGEDIGEST_H_ 19 #define _DECAF_SECURITY_MESSAGEDIGEST_H_ 31 class MessageDigestSpi;
32 class MessageDigestImpl;
74 MessageDigestImpl* impl;
78 std::string algorithm;
97 std::vector<unsigned char> digest();
116 int digest(
unsigned char* input,
int size,
int offset,
int length);
130 std::vector<unsigned char> digest(
const unsigned char* input,
int size);
142 std::vector<unsigned char> digest(
const std::vector<unsigned char>& input);
151 return this->algorithm;
163 return this->provider;
173 int getDigestLength()
const;
195 std::string toString()
const;
203 void update(
unsigned char input);
217 void update(
unsigned char* input,
int size,
int offset,
int len);
225 void update(
const std::vector<unsigned char>& input);
256 static MessageDigest* getInstance(
const std::string& algorithm);
268 static bool isEqual(
const std::vector<unsigned char>& digesta,
269 const std::vector<unsigned char>& digestb);
This class represents a "provider" for the Decaf Security API, where a provider implements some or al...
Definition: Provider.h:46
This class defines six categories of operations upon byte buffers:
Definition: ByteBuffer.h:97
const Provider * getProvider() const
Returns the Provider associated with this MessageDigest.
Definition: MessageDigest.h:162
std::string getAlgorithmName() const
Returns a string that identifies the algorithm, independent of implementation details.
Definition: MessageDigest.h:150
This MessageDigest class provides applications the functionality of a message digest algorithm...
Definition: MessageDigest.h:71
#define DECAF_API
Definition: Config.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25
This class defines the Service Provider Interface (SPI) for the MessageDigest class, which provides the functionality of a message digest algorithm, such as MD5 or SHA.
Definition: MessageDigestSpi.h:47