blob: f537a0be5af6c8ddd695ab708df46c1c95e426c6 (
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
|
/* Milkway
* Copyright (C) 2009- Luo Jinghua <sunmoon1997@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more
*/
#ifndef NW_CRYPT_H
#define NW_CRYPT_H
#include <milkway/mw-types.h>
enum mw_crypt_mode {
MW_ENCRYPT_BLOWFISH = 1,
MW_ENCRYPT_BASE32 = 2
};
mw_public int
mw_encrypt(const char *in, size_t inlen,
char *out, size_t *outlen,
int mode);
mw_public int
mw_decrypt(const char *in, size_t inlen,
char *out, size_t outlen);
#endif
|