File: ow-crypt.h

package info (click to toggle)
ruby-bcrypt 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 224 kB
  • sloc: ansic: 1,073; java: 679; ruby: 307; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 998 bytes parent folder | download | duplicates (4)
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
/*
 * 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
#if defined __GNUC__
#define __CONST __const
#elif defined _MSC_VER
#define __CONST const
#else
#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