mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 21:59:40 +00:00
33 lines
722 B
C++
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
|