💾 Archived View for gmi.noulin.net › gitRepositories › bcrypt › file › wrapper.h.gmi captured on 2023-01-29 at 13:17:27. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
wrapper.h (1343B)
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 extern char *crypt(__const char *key, __const char *setting); 21 extern char *crypt_r(__const char *key, __const char *setting, void *data); 22 23 extern char *crypt_rn(__const char *key, __const char *setting, 24 void *data, int size); 25 extern char *crypt_ra(__const char *key, __const char *setting, 26 void **data, int *size); 27 extern char *crypt_gensalt(__const char *prefix, unsigned long count, 28 __const char *input, int size); 29 extern char *crypt_gensalt_rn(__const char *prefix, unsigned long count, 30 __const char *input, int size, char *output, int output_size); 31 extern char *crypt_gensalt_ra(__const char *prefix, unsigned long count, 32 __const char *input, int size); 33 34 #endif