wesnoth/src/sha1.hpp
Gunter Labes ae9e10f260 codeclean run
set svn:eol-style to native where missing
2007-08-31 19:09:40 +00:00

33 lines
722 B
C++

/* $Id$ */
/*
Copyright (C) 2007 by Benoit Timbert <benoit.timbert@free.fr>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2
or at your option any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY.
See the COPYING file for more details.
*/
#ifndef SHA1_H_INCLUDED
#define SHA1_H_INCLUDED
#include <string>
#include "SDL_types.h"
class sha1_hash
{
public:
sha1_hash(const std::string& str);
std::string display();
private:
void next(Uint8 block[64]);
Uint32 H0, H1, H2, H3, H4;
};
#endif