pike.git / src / post_modules / Nettle / hash.cmod

version» Context lines:

pike.git/src/post_modules/Nettle/hash.cmod:29:   #include <nettle/sha.h>   #ifdef HAVE_NETTLE_SHA3_H   #include <nettle/sha3.h>   #endif   #ifdef HAVE_NETTLE_RIPEMD160_H   #include <nettle/ripemd160.h>   #endif   #ifdef HAVE_NETTLE_GOSTHASH94_H   #include <nettle/gosthash94.h>   #endif + #ifdef HAVE_NETTLE_PBKDF2_H + #include <nettle/pbkdf2.h> + #endif      #include "fdlib.h"      /*! @module Nettle */      /*! @class Hash    *!    *! Represents information about a hash algorithm, such as    *! name, digest size, and internal block size.    */
pike.git/src/post_modules/Nettle/hash.cmod:595:       /*! @endclass State */      }      /*! @endclass Hash */      /* The algorithm objects can be overloaded in pike. */      #cmod_define TOSTR(DEF) #DEF + #undef SPECIAL_PBKDF2    -  +    #cmod_define PIKE_NAME MD5   #cmod_define NETTLE_NAME md5   #cmod_include "hash.H"   #cmod_undef PIKE_NAME   #cmod_undef NETTLE_NAME      #cmod_define PIKE_NAME MD4   #cmod_define NETTLE_NAME md4   #cmod_include "hash.H"   #cmod_undef PIKE_NAME   #cmod_undef NETTLE_NAME      #cmod_define PIKE_NAME MD2   #cmod_define NETTLE_NAME md2   #cmod_include "hash.H"   #cmod_undef PIKE_NAME   #cmod_undef NETTLE_NAME      #cmod_define PIKE_NAME SHA1   #cmod_define NETTLE_NAME sha1 -  + #define SPECIAL_PBKDF2   #cmod_include "hash.H" -  + #undef SPECIAL_PBKDF2   #cmod_undef PIKE_NAME   #cmod_undef NETTLE_NAME      #ifdef HAVE_NETTLE_SHA224_INIT      #cmod_define PIKE_NAME SHA224   #cmod_define NETTLE_NAME sha224   #cmod_include "hash.H"   #cmod_undef PIKE_NAME   #cmod_undef NETTLE_NAME      #endif      #cmod_define PIKE_NAME SHA256   #cmod_define NETTLE_NAME sha256 -  + #define SPECIAL_PBKDF2   #cmod_include "hash.H" -  + #undef SPECIAL_PBKDF2   #cmod_undef PIKE_NAME   #cmod_undef NETTLE_NAME      #ifdef SHA384_DIGEST_SIZE      #cmod_define PIKE_NAME SHA384   #cmod_define NETTLE_NAME sha384   #cmod_include "hash.H"   #cmod_undef PIKE_NAME   #cmod_undef NETTLE_NAME