00001 /* $Id: sha1.hpp 23842 2008-02-16 08:47:16Z mordante $ */ 00002 /* 00003 Copyright (C) 2007 - 2008 by Benoit Timbert <benoit.timbert@free.fr> 00004 Part of the Battle for Wesnoth Project http://www.wesnoth.org/ 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License version 2 00008 or at your option any later version. 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY. 00011 00012 See the COPYING file for more details. 00013 */ 00014 00015 #ifndef SHA1_H_INCLUDED 00016 #define SHA1_H_INCLUDED 00017 00018 #include <string> 00019 #include "SDL_types.h" 00020 00021 class sha1_hash 00022 { 00023 public: 00024 sha1_hash(const std::string& str); 00025 std::string display(); 00026 private: 00027 void next(Uint8 block[64]); 00028 Uint32 H0, H1, H2, H3, H4; 00029 00030 }; 00031 00032 #endif
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |