Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SHA1.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  lemur
namespace  lemur::utility

Defines

#define GET_ULONG_BE(n, b, i)
#define PUT_ULONG_BE(n, b, i)


Define Documentation

#define GET_ULONG_BE n,
b,
 ) 
 

Value:

{                                                     \
    (n) = ( (unsigned long) (b)[(i)    ] << 24 )        \
          | ( (unsigned long) (b)[(i) + 1] << 16 )      \
          | ( (unsigned long) (b)[(i) + 2] <<  8 )      \
          | ( (unsigned long) (b)[(i) + 3]       );     \
  }
SHA1 hashing classes - derived from work done by Christophe Devine ( http://xyssl.org/ )

#define PUT_ULONG_BE n,
b,
 ) 
 

Value:

{                                                     \
    (b)[(i)    ] = (unsigned char) ( (n) >> 24 );       \
    (b)[(i) + 1] = (unsigned char) ( (n) >> 16 );       \
    (b)[(i) + 2] = (unsigned char) ( (n) >>  8 );       \
    (b)[(i) + 3] = (unsigned char) ( (n)       );       \
  }


Generated on Tue Jun 15 11:02:57 2010 for Lemur by doxygen 1.3.4