
Template message digest class represting a digest with N bytes. More...
#include <Image/Hash.H>
Public Member Functions | |
| bool | operator< (const Digest< N > &other) const |
| Comparison operator for sorting e.g. in std::set or std::map. | |
| std::string | asString () const |
| Return a string with N*2 hexadecimal chars representing the digest. | |
| Image< byte > | asImage () const |
| Return an Nx1 Image containing the digest. | |
Static Public Member Functions | |
| static Digest< N > | asDigest (const byte *d, const unsigned int len) |
| Pseudo-constructor to create a digest from a byte array. | |
| static Digest< N > | fromString (const std::string &s) |
| Generate a digest by parsing hex digits from a string. | |
Public Attributes | |
| byte | buffer [N] |
Template message digest class represting a digest with N bytes.
Definition at line 57 of file Hash.H.
| static Digest<N> Digest< N >::asDigest | ( | const byte * | d, | |
| const unsigned int | len | |||
| ) | [inline, static] |
Pseudo-constructor to create a digest from a byte array.
NOTE! This is NOT a message digest OF the byte array; rather we interpreting the bytes in the array as a message digest itself. This might be the case if e.g. a bunch of message digests have been saved to disk as byte images.
| std::string Digest< N >::asString | ( | ) | const [inline] |
| static Digest<N> Digest< N >::fromString | ( | const std::string & | s | ) | [inline, static] |
1.6.3