aboutsummaryrefslogtreecommitdiff
path: root/src/crypto.h
blob: 0bee9a3063395c392fd092d34feb8c7629135e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "lua.h"
#include "i_util.h"
#include "hash/md5.h"
#include "hash/sha01.h"
#include "hash/sha2xx.h"
#include "hash/pearson.h"
#include "hash/xxh.h"

#include "encode/uuencode.h"
#include "encode/base64.h"

unsigned i_lr(unsigned, unsigned);
unsigned i_rr(unsigned, unsigned);

static const luaL_Reg crypto_function_list [] = {
      {"md5",l_md5},
      {"sha0",l_sha0},
      {"sha1",l_sha1},
      {"sha256",l_sha256},
      {"sha224",l_sha224},
      {"setpearson",l_setpearson},
      {"pearson",l_pearson},
      {"xxh64",l_xxh64},
      {"xxh32",l_xxh32},

      {"uuencode",l_uuencode},
      {"uudecode",l_uudecode},

      {"base64encode",l_base64encode},
      {"base64decode",l_base64decode},


      {NULL,NULL}
};