openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libxcrypt/4.4.6-r0/git/lib/crypt-nthash.c
void gensalt_nt_rn(unsigned long count, ARG_UNUSED(const uint8_t* rbytes),
                   ARG_UNUSED(size_t nrbytes), uint8_t* output, size_t o_size)
{
    const char* prefix = "$3$";

    /* Minimal O_SIZE to store the prefix.  */
    if (o_size < strlen(prefix) + 1)
    {
        errno = ERANGE;
        return;
    }

    if (count != 0)
    {
        errno = EINVAL;
        return;
    }

    XCRYPT_STRCPY_OR_ABORT(output, o_size, prefix);
}
/* This function simply returns the magic string '$3$',
   so it can be used as SETTING for the crypt function.  */
This function simply returns the magic string '$3$',
so it can be used as SETTING for the crypt function.
This function simply returns the magic string ' $3$ ' so it can be used as SETTING for the crypt function .
void gensalt_nt_rn(unsigned long count, ARG_UNUSED(const uint8_t* rbytes),
                   ARG_UNUSED(size_t nrbytes), uint8_t* output, size_t o_size)
{
    const char* prefix = "$3$";
    if (o_size < strlen(prefix) + 1)
    {
        errno = ERANGE;
        return;
    }
    if (count != 0)
    {
        errno = EINVAL;
        return;
    }
    XCRYPT_STRCPY_OR_ABORT(output, o_size, prefix);
}
void gensalt_nt_rn ( unsigned long count , ARG_UNUSED ( const uint8_t * rbytes ) , ARG_UNUSED ( size_t nrbytes ) , uint8_t * output , size_t o_size ) { const char * prefix = " " ; if ( o_size < strlen ( prefix ) + 1 ) { errno = ERANGE ; return ; } if ( count != 0 ) { errno = EINVAL ; return ; } XCRYPT_STRCPY_OR_ABORT ( output , o_size , prefix ) ; }
This function simply returns the magic string '$3$',
so it can be used as SETTING for the crypt function.
This function simply returns the magic string ' $3$ ' so it can be used as SETTING for the crypt function .
/* Minimal O_SIZE to store the prefix.  */