Hash.C File Reference

#include "Image/Hash.H"
#include "Image/Image.H"
#include "Image/Pixels.H"
#include "Util/md5.H"
#include "Util/sha1.H"
#include "Util/sha2.H"
#include "rutz/compat_snprintf.h"
#include "rutz/trace.h"
#include <cctype>
Include dependency graph for Hash.C:

Go to the source code of this file.

Functions

std::string digestFormatHelper (const byte *buf, unsigned int n)
 Helper function for Digest::format().
void digestScanHelper (const std::string &s, byte *buf, unsigned int n)
 Helper function for Digest::fromString().
Digest< 16 > md5byte (const Image< byte > *img, const void *extra, size_t nextra)
 Compute the 128-bit md5 digest of a byte image.
Digest< 16 > md5float (const Image< float > *img, const void *extra, size_t nextra)
 Compute the 128-bit md5 digest of a float image.
Digest< 16 > md5rgb (const Image< PixRGB< byte > > *img, const void *extra, size_t nextra)
 Compute the 128-bit md5 digest of an rgb image.
Digest< 20 > sha1byte (const Image< byte > *img, const void *extra, size_t nextra)
 Compute the 160-bit sha1 digest of a byte image.
Digest< 20 > sha1float (const Image< float > *img, const void *extra, size_t nextra)
 Compute the 160-bit sha1 digest of a float image.
Digest< 20 > sha1rgb (const Image< PixRGB< byte > > *img, const void *extra, size_t nextra)
 Compute the 160-bit sha1 digest of an rgb image.
Digest< 32 > sha256byte (const Image< byte > *img, const void *extra, size_t nextra)
 Compute the 256-bit sha2 digest of a byte image.
Digest< 32 > sha256float (const Image< float > *img, const void *extra, size_t nextra)
 Compute the 256-bit sha2 digest of a float image.
Digest< 32 > sha256rgb (const Image< PixRGB< byte > > *img, const void *extra, size_t nextra)
 Compute the 256-bit sha2 digest of an rgb image.

Detailed Description

hash/message-digest functions for Image objects

Definition in file Hash.C.


Function Documentation

std::string digestFormatHelper ( const byte buf,
unsigned int  n 
)

Helper function for Digest::format().

Definition at line 104 of file Hash.C.

Referenced by Digest< 16 >::asString().

void digestScanHelper ( const std::string s,
byte buf,
unsigned int  n 
)

Helper function for Digest::fromString().

Definition at line 117 of file Hash.C.

Referenced by Digest< 16 >::fromString().

Digest<16> md5byte ( const Image< byte > *  img,
const void *  extra,
size_t  nextra 
)

Compute the 128-bit md5 digest of a byte image.

Definition at line 159 of file Hash.C.

Digest<16> md5float ( const Image< float > *  img,
const void *  extra,
size_t  nextra 
)

Compute the 128-bit md5 digest of a float image.

Definition at line 162 of file Hash.C.

Digest<16> md5rgb ( const Image< PixRGB< byte > > *  img,
const void *  extra,
size_t  nextra 
)

Compute the 128-bit md5 digest of an rgb image.

Definition at line 165 of file Hash.C.

Digest<20> sha1byte ( const Image< byte > *  img,
const void *  extra,
size_t  nextra 
)

Compute the 160-bit sha1 digest of a byte image.

Definition at line 169 of file Hash.C.

Digest<20> sha1float ( const Image< float > *  img,
const void *  extra,
size_t  nextra 
)

Compute the 160-bit sha1 digest of a float image.

Definition at line 172 of file Hash.C.

Digest<20> sha1rgb ( const Image< PixRGB< byte > > *  img,
const void *  extra,
size_t  nextra 
)

Compute the 160-bit sha1 digest of an rgb image.

Definition at line 175 of file Hash.C.

Digest<32> sha256byte ( const Image< byte > *  img,
const void *  extra,
size_t  nextra 
)

Compute the 256-bit sha2 digest of a byte image.

Definition at line 179 of file Hash.C.

Digest<32> sha256float ( const Image< float > *  img,
const void *  extra,
size_t  nextra 
)

Compute the 256-bit sha2 digest of a float image.

Definition at line 182 of file Hash.C.

Digest<32> sha256rgb ( const Image< PixRGB< byte > > *  img,
const void *  extra,
size_t  nextra 
)

Compute the 256-bit sha2 digest of an rgb image.

Definition at line 185 of file Hash.C.

Generated on Sun May 8 08:42:41 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3