00001
00002 #ifndef __CRYPTO_AUX_H__
00003 #define __CRYPTO_AUX_H__
00004
00005 #include <stdio.h>
00006 #ifndef WIN32
00007 #include "XrdSys/XrdSysHeaders.hh"
00008 #endif
00009 #include <XProtocol/XProtocol.hh>
00010
00011
00012
00013
00014 #define ABSTRACTMETHOD(x) {cerr <<"Method "<<x<<" must be overridden!" <<endl;}
00015
00016
00017
00018
00019 #define cryptoTRACE_ALL 0x0007
00020 #define cryptoTRACE_Dump 0x0004
00021 #define cryptoTRACE_Debug 0x0002
00022 #define cryptoTRACE_Notify 0x0001
00023
00024
00025 #define XrdCryptoMinRSABits 512
00026 #define XrdCryptoDefRSABits 1024
00027 #define XrdCryptoDefRSAExp 0x10001
00028
00029
00030
00031
00032 typedef int (*XrdCryptoKDFunLen_t)();
00033 typedef int (*XrdCryptoKDFun_t)(const char *pass, int plen,
00034 const char *salt, int slen,
00035 char *key, int klen);
00036 int XrdCryptoKDFunLen();
00037 int XrdCryptoKDFun(const char *pass, int plen, const char *salt, int slen,
00038 char *key, int klen);
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 void XrdCryptoSetTrace(kXR_int32 trace);
00049
00050 #endif