00001 /* @file psMD5.h 00002 * @brief support for MD5 hashes 00003 * 00004 * $Revision: 1.2 $ $Name: $ 00005 * $Date: 2007/01/23 22:47:23 $ 00006 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 00007 */ 00008 00009 #ifndef PS_MD5_H 00010 #define PS_MD5_h 00011 00012 /// @addtogroup MathOps Mathematical Operations 00013 /// @{ 00014 00015 #include "psVector.h" 00016 #include "psString.h" 00017 #include "psImage.h" 00018 00019 /// Return an MD5 hash of the supplied string. 00020 /// 00021 /// The MD5 hash is returned in a U8 vector of size 16. 00022 psVector *psStringMD5(const char *string ///< String to hash 00023 ); 00024 00025 /// Return an MD5 hash of the supplied vector. 00026 /// 00027 /// The MD5 hash is returned in a U8 vector of size 16. 00028 psVector *psVectorMD5(const psVector *vector ///< Vector to hash 00029 ); 00030 00031 /// Return an MD5 hash of the supplied image. 00032 /// 00033 /// The MD5 hash is returned in a U8 vector of size 16. 00034 psVector *psImageMD5(const psImage *image ///< Image to hash 00035 ); 00036 00037 /// Convert an MD5 hash into a string, for printing. 00038 psString psMD5toString(const psVector *hash ///< Hash to stringify 00039 ); 00040 00041 /// @} 00042 #endif
1.5.1