crypt_genhash_impl man page on OpenIndiana

Man page or keyword search:  
man Server   20441 pages
apropos Keyword Search (all sections)
Output format
OpenIndiana logo
[printable version]

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  is called by crypt(3C) to generate
       the encrypted password 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(4).  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 specifing 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(5) for descriptions of the following attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Interface Stability	     │Committed			   │
       ├─────────────────────────────┼─────────────────────────────┤
       │MT-Level		     │MT-Safe			   │
       └─────────────────────────────┴─────────────────────────────┘

SEE ALSO
       passwd(1),   crypt(3C),	  crypt_gensalt_impl(3C),    free(3C),	  get‐
       passphrase(3C), crypt.conf(4), passwd(4), attributes(5)

SunOS 5.11			  10 Jun 2002		crypt_genhash_impl(3C)
[top]

List of man pages available for OpenIndiana

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net