-
Notifications
You must be signed in to change notification settings - Fork 4
/
ow-crypt.h
34 lines (29 loc) · 964 Bytes
/
ow-crypt.h
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
/*
* Written by Solar Designer and placed in the public domain.
* See crypt_blowfish.c for more information.
*/
#ifndef _OW_CRYPT_H
#define _OW_CRYPT_H
#undef __CONST
#ifdef __GNUC__
#define __CONST __const
#else
#define __CONST
#endif
#ifndef __SKIP_GNU
extern char *crypt(__CONST char *key, __CONST char *setting);
extern char *crypt_r(__CONST char *key, __CONST char *setting, void *data);
#endif
#ifndef __SKIP_OW
extern char *crypt_rn(__CONST char *key, __CONST char *setting,
void *data, int size);
extern char *crypt_ra(__CONST char *key, __CONST char *setting,
void **data, int *size);
extern char *crypt_gensalt(__CONST char *prefix, unsigned long count,
__CONST char *input, int size);
extern char *crypt_gensalt_rn(__CONST char *prefix, unsigned long count,
__CONST char *input, int size, char *output, int output_size);
extern char *crypt_gensalt_ra(__CONST char *prefix, unsigned long count,
__CONST char *input, int size);
#endif
#endif