Debian Codegraph @

ext/bcrypt/ow-crypt.h

raw
1 /*
2 * Written by Solar Designer <solar at openwall.com> in 2000-2011.
3 * No copyright is claimed, and the software is hereby placed in the public
4 * domain. In case this attempt to disclaim copyright and place the software
5 * in the public domain is deemed null and void, then the software is
6 * Copyright (c) 2000-2011 Solar Designer and it is hereby released to the
7 * general public under the following terms:
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted.
11 *
12 * There's ABSOLUTELY NO WARRANTY, express or implied.
13 *
14 * See crypt_blowfish.c for more information.
15 */
16
17 #ifndef _OW_CRYPT_H
18 #define _OW_CRYPT_H
19
20 #ifndef __GNUC__
21 #undef __const
22 #define __const const
23 #endif
24
25 #ifndef __SKIP_GNU
26 extern char *crypt(__const char *key, __const char *setting);
27 extern char *crypt_r(__const char *key, __const char *setting, void *data);
28 #endif
29
30 #ifndef __SKIP_OW
31 extern char *crypt_rn(__const char *key, __const char *setting,
32 void *data, int size);
33 extern char *crypt_ra(__const char *key, __const char *setting,
34 void **data, int *size);
35 extern char *crypt_gensalt(__const char *prefix, unsigned long count,
36 __const char *input, int size);
37 extern char *crypt_gensalt_rn(__const char *prefix, unsigned long count,
38 __const char *input, int size, char *output, int output_size);
39 extern char *crypt_gensalt_ra(__const char *prefix, unsigned long count,
40 __const char *input, int size);
41 #endif
42
43 #endif