Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
crypto.hpp
Go to the documentation of this file.
1 #pragma once
2 // Tiger Hash implementation, see crpyto.cpp
3 // AVOID USE!
4 
6 
9 extern void hashpassword(int cn, int sessionid, const char *pwd, char *result, int maxlen = MAXSTRLEN);
10 
13 extern bool checkpassword(int cn, int sessionid, const char *wanted, const char *given);
14 
void hashpassword(int cn, int sessionid, const char *pwd, char *result, int maxlen=MAXSTRLEN)
Get the session hash.
Definition: crypto.cpp:837
bool checkpassword(int cn, int sessionid, const char *wanted, const char *given)
Checks if the given session hash results from our pw or not.
Definition: crypto.cpp:845
int sessionid
Definition: client.cpp:229
void result(tagval &v)
Definition: command.cpp:2562
#define MAXSTRLEN
maximal cube-string length.
Definition: cube_types.hpp:16