CRYPT_GENHASH_IMPL(3C) | Standard C Library Functions | CRYPT_GENHASH_IMPL(3C) |
#include <crypt.h> char *crypt_genhash_impl(char *ctbuffer, size_t ctbufflen, const char *plaintext, const char *salt, const char **params);
The ctbuffer argument is a pointer to an MT-safe buffer of ctbufflen size that is used to return the result.
The salt argument is the salt used in encoding.
The params argument is an argv-like null-terminated vector of type char *. The first element of params represents the mechanism token name from crypt.conf(5). The remaining elements of params represent strings of the form <parameter>[=<value>] to allow passing in additional information from the crypt.conf entry, such as specifying rounds information "rounds=4096".
The crypt_genhash_impl() function must not free(3C) ctbufflen on error.
EINVAL
ELIBACC
ENOMEM
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Evolving |
MT-Level | MT-Safe |
June 10, 2002 | OmniOS |