crypt-blowfish.h revision 1ebb6094e5105ba7ef521a0177c42d3ea81243f0
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomi * Written by Solar Designer <solar at openwall.com> in 2000-2011.
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomi * No copyright is claimed, and the software is hereby placed in the public
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomi * domain. In case this attempt to disclaim copyright and place the software
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomi * in the public domain is deemed null and void, then the software is
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomi * Copyright (c) 2000-2011 Solar Designer and it is hereby released to the
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomi * general public under the following terms:
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomi * Redistribution and use in source and binary forms, with or without
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomi * modification, are permitted.
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomi * There's ABSOLUTELY NO WARRANTY, express or implied.
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomi * See crypt_blowfish.c for more information.
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomi * 2017-10-10 - Adapted for dovecot code by Aki Tuomi <aki.tuomi@dovecot.fi>
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomiextern int crypt_output_magic(const char *setting, char *output, size_t size);
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomiextern char *crypt_blowfish_rn(const char *key, const char *setting,
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomiextern char *crypt_gensalt_blowfish_rn(const char *prefix,
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomi unsigned long count,
1ebb6094e5105ba7ef521a0177c42d3ea81243f0Aki Tuomi const char *input, size_t size, char *output, size_t output_size);