svcadm(1M)을 검색하려면 섹션에서 1M 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
crypt_genhash_impl(3c)
Standard C Library Functions crypt_genhash_impl(3C)
NAME
crypt_genhash_impl - generate encrypted password
SYNOPSIS
#include <crypt.h>
char *crypt_genhash_impl(char *ctbuffer, size_t ctbufflen,
const char *plaintext, const char *salt, const char **params);
DESCRIPTION
The crypt_genhash_impl() function provided by a pluggable crypt module
is called by crypt(3C) to generate the encrypted version of the pass‐
word string pointed to by plaintext.
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 informa‐
tion from the crypt.conf entry, such as specifying rounds information
"rounds=4096".
The crypt_genhash_impl() function must not free(3C) ctbufflen on
error.
RETURN VALUES
Upon successful completion, crypt_genhash_impl() returns a pointer to
the encoded version of plaintext. Otherwise a null pointer is returned
and errno is set to indicate the error.
ERRORS
The crypt_genhash_impl() function will fail if:
EINVAL The configuration file crypt.conf contains an invalid entry.
ELIBACC The required shared library was not found.
ENOMEM There is insufficient memory to perform hashing.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelMT-Safe
SEE ALSO
passwd(1), crypt(3C), crypt_gensalt_impl(3C), free(3C), get‐
passphrase(3C), crypt.conf(5), passwd(5), attributes(7)
Oracle Solaris 11.4 9 Mar 2020 crypt_genhash_impl(3C)