�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux bob 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /etc/ldap/../etckeeper/../../usr/include/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : //etc/ldap/../etckeeper/../../usr/include/crypt.h
/* High-level libcrypt interfaces.

   Copyright (C) 1991-2017 Free Software Foundation, Inc.

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public License
   as published by the Free Software Foundation; either version 2.1 of
   the License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with this library; if not, see
   <https://www.gnu.org/licenses/>.  */

#ifndef _CRYPT_H
#define _CRYPT_H 1

#include <sys/cdefs.h>

__BEGIN_DECLS

/* The strings returned by crypt, crypt_r, crypt_rn, and crypt_ra will
   be no longer than this, counting the terminating NUL.  (Existing
   algorithms all produce much shorter strings, but we have reserved
   generous space for future expansion.)  This is NOT the appropriate
   size to use in allocating the buffer supplied to crypt_rn; use
   sizeof (struct crypt_data) instead.  */
#define CRYPT_OUTPUT_SIZE 384

/* Passphrases longer than this (counting the terminating NUL) are not
   supported.  Note that some hash algorithms have lower limits.  */
#define CRYPT_MAX_PASSPHRASE_SIZE 512

/* The strings returned by crypt_gensalt, crypt_gensalt_rn, and
   crypt_gensalt_ra will be no longer than this.  This IS the
   appropriate size to use when allocating the buffer supplied to
   crypt_gensalt_rn.  (Again, existing algorithms all produce
   much shorter strings, but we have reserved generous space for
   future expansion.)  */
#define CRYPT_GENSALT_OUTPUT_SIZE 192

/* One-way hash the passphrase PHRASE as specified by SETTING, and
   return a string suitable for storage in a Unix-style "passwd" file.

   If SETTING is a previously hashed passphrase, the string returned
   will be equal to SETTING if and only if PHRASE is the same as the
   passphrase that was previously hashed.  See the documentation for
   other ways to use this function.

   The string returned by this function is stored in a statically-
   allocated buffer, and will be overwritten if the function is called
   again.  It is not safe to call this function from multiple threads
   concurrently.

   If an error occurs (such as SETTING being nonsense or unsupported)
   the string returned will begin with '*', and will not be equal to
   SETTING nor to any valid hashed passphrase.  Otherwise, the string
   will not begin with '*'.  */
extern char *crypt (const char *__phrase, const char *__setting)
__THROW;

/* These sizes are chosen to make sizeof (struct crypt_data) add up to
   exactly 32768 bytes.  */
#define CRYPT_DATA_RESERVED_SIZE 767
#define CRYPT_DATA_INTERNAL_SIZE 30720

/* Memory area used by crypt_r.  */
struct crypt_data
{
  /* crypt_r writes the hashed password to this field of its 'data'
     argument.  crypt_rn and crypt_ra do the same, treating the
     untyped data area they are supplied with as this struct.  */
  char output[CRYPT_OUTPUT_SIZE];

  /* Applications are encouraged, but not required, to use this field
     to store the "setting" string that must be passed to crypt_*.
     Future extensions to the API may make this more ergonomic.

     A valid "setting" is either previously hashed password or the
     string produced by one of the crypt_gensalt functions; see the
     crypt_gensalt documentation for further details.  */
  char setting[CRYPT_OUTPUT_SIZE];

  /* Applications are encouraged, but not required, to use this field
     to store the unhashed passphrase they will pass to crypt_*.
     Future extensions to the API may make this more ergonomic.  */
  char input[CRYPT_MAX_PASSPHRASE_SIZE];

  /* Reserved for future application-visible fields.  For maximum
     forward compatibility, applications should set this field to all
     bytes zero before calling crypt_r, crypt_rn, or crypt_ra for the
     first time with a just-allocated 'struct crypt_data'.  Future
     extensions to the API may make this more ergonomic.  */
  char reserved[CRYPT_DATA_RESERVED_SIZE];

  /* This field should be set to 0 before calling crypt_r, crypt_rn,
     or crypt_ra for the first time with a just-allocated
     'struct crypt_data'.  This is not required if crypt_ra is allowed
     to do the allocation itself (i.e. if the *DATA argument is a null
     pointer).  Future extensions to the API may make this more ergonomic.  */
  char initialized;

  /* Scratch space used internally.  Applications should not read or
     write this field.  All data written to this area is erased before
     returning from the library.  */
  char internal[CRYPT_DATA_INTERNAL_SIZE];
};

/* Thread-safe version of crypt.  Instead of writing to a static
   storage area, the string returned by this function will be within
   DATA->output.  Otherwise, behaves exactly the same as crypt.  */
extern char *crypt_r (const char *__phrase, const char *__setting,
                      struct crypt_data *__restrict __data)
__THROW;

/* Another thread-safe version of crypt.  Instead of writing to a
   static storage area, the string returned by this function will be
   somewhere within the space provided at DATA, which is of length SIZE
   bytes.  SIZE must be at least sizeof (struct crypt_data).

   Also, if an error occurs, this function returns a null pointer,
   not a special string.  (However, the string returned on success
   still will never begin with '*'.)  */
extern char *crypt_rn (const char *__phrase, const char *__setting,
                       void *__data, int __size)
__THROW;

/* Yet a third thread-safe version of crypt; this one works like
   getline(3).  *DATA must be either 0 or a pointer to memory
   allocated by malloc, and *SIZE must be the size of the allocation.
   This space will be allocated or reallocated as necessary and the
   values updated.  The string returned by this function will be
   somewhere within the space at *DATA.  It is safe to deallocate
   this space with free when it is no longer needed.

   Like crypt_rn, this function returns a null pointer on failure, not
   a special string.  */
extern char *crypt_ra (const char *__phrase, const char *__setting,
                       void **__data, int *__size)
__THROW;


/* Generate a string suitable for use as the setting when hashing a
   new passphrase.  PREFIX controls which hash function will be used,
   COUNT controls the computational cost of the hash (for functions
   where this is tunable), and RBYTES should point to NRBYTES bytes of
   random data.  If PREFIX is a null pointer, the current best default
   is used; if RBYTES is a null pointer, random data will be retrieved
   from the operating system if possible.  (Caution: setting PREFIX to
   an *empty string* selects the use of the oldest and least secure
   hash in the library.  Don't do that.)

   The string returned is stored in a statically-allocated buffer, and
   will be overwritten if the function is called again.  It is not
   safe to call this function from multiple threads concurrently.
   However, within a single thread, it is safe to pass the string as
   the SETTING argument to crypt without copying it first; the two
   functions use separate buffers.

   If an error occurs (e.g. a prefix that does not correspond to a
   supported hash function, or an inadequate amount of random data),
   this function returns a null pointer.  */
extern char *crypt_gensalt (const char *__prefix, unsigned long __count,
                            const char *__rbytes, int __nrbytes)
__THROW;

/* Thread-safe version of crypt_gensalt; instead of a
   statically-allocated buffer, the generated setting string is
   written to OUTPUT, which is OUTPUT_SIZE bytes long.  OUTPUT_SIZE
   must be at least CRYPT_GENSALT_OUTPUT_SIZE (see above).

   If an error occurs, this function returns a null pointer and writes
   a string that does not correspond to any valid setting into OUTPUT.  */
extern char *crypt_gensalt_rn (const char *__prefix, unsigned long __count,
                               const char *__rbytes, int __nrbytes,
                               char *__output, int __output_size)
__THROW;

/* Kept for code compatibility with libxcrypt (v3.1.1 and earlier).
   We intentionally declare the function using a macro here, since
   we actually want to link compiled applications against the
   identical crypt_gensalt_rn function.  */
#ifndef IN_LIBCRYPT  /* Defined when building libxcrypt. */
# ifdef __REDIRECT_NTH
extern char * __REDIRECT_NTH (crypt_gensalt_r, (const char *__prefix,
                              unsigned long __count, const char *__rbytes,
                              int __nrbytes, char *__output,
                              int __output_size), crypt_gensalt_rn);
# else
#  define crypt_gensalt_r crypt_gensalt_rn
# endif
#endif

/* Another thread-safe version of crypt_gensalt; the generated setting
   string is in storage allocated by malloc, and should be deallocated
   with free when it is no longer needed.  */
extern char *crypt_gensalt_ra (const char *__prefix, unsigned long __count,
                               const char *__rbytes, int __nrbytes)
__THROW;

/* Checks whether the given setting is a supported method.

   The return value is 0 if there is nothing wrong with this setting.
   Otherwise, it is one of the following constants.  */
extern int crypt_checksalt (const char *__setting);

/* Constants for checking the return value of the
   crypt_checksalt function.  */
#define CRYPT_SALT_OK              0
#define CRYPT_SALT_INVALID         1
#define CRYPT_SALT_METHOD_DISABLED 2  /* NOT implemented, yet. */
#define CRYPT_SALT_METHOD_LEGACY   3  /* NOT implemented, yet. */
#define CRYPT_SALT_TOO_CHEAP       4  /* NOT implemented, yet. */

/* Convenience function to get the prefix of the preferred hash method,
   which is also used by the crypt_gensalt functions, if their given
   prefix parameter is NULL.

   The return value is string that equals the prefix of the preferred
   hash method.  Otherwise, it is NULL.  */
extern const char *crypt_preferred_method (void);

/* These macros could be checked by portable users of crypt_gensalt*
   functions to find out whether null pointers could be specified
   as PREFIX and RBYTES arguments.  */
#define CRYPT_GENSALT_IMPLEMENTS_DEFAULT_PREFIX 1
#define CRYPT_GENSALT_IMPLEMENTS_AUTO_ENTROPY   1

/* These macros can be checked by portable users of libxcrypt
   to find out whether the function is implemented.  */
#define CRYPT_CHECKSALT_AVAILABLE 1
#define CRYPT_PREFERRED_METHOD_AVAILABLE 1

/* Version number split in single integers.  */
#define XCRYPT_VERSION_MAJOR 4
#define XCRYPT_VERSION_MINOR 4

/* Version number coded into an integer.  */
#define XCRYPT_VERSION_NUM ((XCRYPT_VERSION_MAJOR << 16) | \
                             XCRYPT_VERSION_MINOR)

/* Version number as a string constant.  */
#define XCRYPT_VERSION_STR "4.4.10"

__END_DECLS

#endif /* crypt.h */

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
March 29 2022 11:10:06
root
0755
X11
--
April 25 2020 3:53:29
root
0755
arpa
--
December 13 2023 9:42:27
root
0755
asm-generic
--
February 12 2024 9:08:13
root
0755
c++
--
April 08 2022 2:42:58
root
0755
drm
--
February 12 2024 9:08:13
root
0755
finclude
--
December 13 2023 9:42:27
root
0755
iproute2
--
April 25 2020 3:53:03
root
0755
linux
--
February 12 2024 9:08:13
root
0755
misc
--
February 12 2024 9:08:13
root
0755
mtd
--
February 12 2024 9:08:13
root
0755
net
--
December 13 2023 9:42:27
root
0755
netash
--
December 13 2023 9:42:27
root
0755
netatalk
--
December 13 2023 9:42:27
root
0755
netax25
--
December 13 2023 9:42:27
root
0755
neteconet
--
December 13 2023 9:42:27
root
0755
netinet
--
December 13 2023 9:42:27
root
0755
netipx
--
December 13 2023 9:42:27
root
0755
netiucv
--
December 13 2023 9:42:27
root
0755
netpacket
--
December 13 2023 9:42:27
root
0755
netrom
--
December 13 2023 9:42:27
root
0755
netrose
--
December 13 2023 9:42:27
root
0755
nfs
--
December 13 2023 9:42:27
root
0755
node
--
October 23 2023 6:29:41
root
0755
openssl
--
February 12 2024 9:07:13
root
0755
php
--
October 23 2023 10:09:35
root
0755
protocols
--
December 13 2023 9:42:27
root
0755
rdma
--
February 12 2024 9:08:13
root
0755
rpc
--
December 13 2023 9:42:27
root
0755
rpcsvc
--
December 13 2023 9:42:27
root
0755
scsi
--
February 12 2024 9:08:13
root
0755
sound
--
February 12 2024 9:08:13
root
0755
uv
--
April 12 2022 9:21:16
root
0755
video
--
February 12 2024 9:08:13
root
0755
x86_64-linux-gnu
--
December 13 2023 9:42:27
root
0755
xen
--
February 12 2024 9:08:13
root
0755
aio.h
7.282 KB
November 22 2023 2:32:50
root
0644
aliases.h
1.984 KB
November 22 2023 2:32:50
root
0644
alloca.h
1.176 KB
November 22 2023 2:32:50
root
0644
ar.h
1.69 KB
November 22 2023 2:32:50
root
0644
argp.h
24.876 KB
November 22 2023 2:32:50
root
0644
argz.h
5.909 KB
November 22 2023 2:32:50
root
0644
assert.h
4.534 KB
November 22 2023 2:32:50
root
0644
byteswap.h
1.372 KB
November 22 2023 2:32:50
root
0644
complex.h
6.996 KB
November 22 2023 2:32:50
root
0644
cpio.h
2.215 KB
November 22 2023 2:32:50
root
0644
crypt.h
10.898 KB
March 10 2020 5:24:31
root
0644
ctype.h
10.712 KB
November 22 2023 2:32:50
root
0644
dirent.h
12.222 KB
November 22 2023 2:32:50
root
0644
dlfcn.h
7.304 KB
November 22 2023 2:32:50
root
0644
elf.h
173.189 KB
November 22 2023 2:32:50
root
0644
endian.h
2.245 KB
November 22 2023 2:32:50
root
0644
envz.h
2.8 KB
November 22 2023 2:32:50
root
0644
err.h
2.214 KB
November 22 2023 2:32:50
root
0644
errno.h
1.64 KB
November 22 2023 2:32:50
root
0644
error.h
2.229 KB
November 22 2023 2:32:50
root
0644
execinfo.h
1.487 KB
November 22 2023 2:32:50
root
0644
fastcgi.h
2.899 KB
March 22 2020 4:45:46
root
0644
fcgi_config.h
3.877 KB
March 22 2020 4:45:46
root
0644
fcgi_stdio.h
5.647 KB
March 22 2020 4:45:46
root
0644
fcgiapp.h
18.146 KB
March 22 2020 4:45:46
root
0644
fcgimisc.h
0.623 KB
March 22 2020 4:45:46
root
0644
fcgio.h
3.633 KB
March 22 2020 4:45:46
root
0644
fcgios.h
3.421 KB
March 22 2020 4:45:46
root
0644
fcntl.h
9.482 KB
November 22 2023 2:32:50
root
0644
features.h
16.679 KB
November 22 2023 2:32:50
root
0644
fenv.h
5.736 KB
November 22 2023 2:32:50
root
0644
fmtmsg.h
3.164 KB
November 22 2023 2:32:50
root
0644
fnmatch.h
2.242 KB
November 22 2023 2:32:50
root
0644
fstab.h
3.038 KB
November 22 2023 2:32:50
root
0644
fts.h
8.177 KB
November 22 2023 2:32:50
root
0644
ftw.h
5.129 KB
November 22 2023 2:32:50
root
0644
gconv.h
4.112 KB
November 22 2023 2:32:50
root
0644
getopt.h
1.435 KB
November 22 2023 2:32:50
root
0644
glob.h
6.462 KB
November 22 2023 2:32:50
root
0644
gnu-versions.h
2.288 KB
November 22 2023 2:32:50
root
0644
gnumake.h
2.844 KB
July 28 2018 12:07:31
root
0644
grp.h
6.53 KB
November 22 2023 2:32:50
root
0644
gshadow.h
4.423 KB
November 22 2023 2:32:50
root
0644
iconv.h
1.814 KB
November 22 2023 2:32:50
root
0644
ifaddrs.h
2.774 KB
November 22 2023 2:32:50
root
0644
inttypes.h
11.614 KB
November 22 2023 2:32:50
root
0644
langinfo.h
17.431 KB
November 22 2023 2:32:50
root
0644
lastlog.h
0.123 KB
November 22 2023 2:32:50
root
0644
libgen.h
1.354 KB
November 22 2023 2:32:50
root
0644
libintl.h
4.473 KB
November 22 2023 2:32:50
root
0644
limits.h
5.29 KB
November 22 2023 2:32:50
root
0644
link.h
7.038 KB
November 22 2023 2:32:50
root
0644
locale.h
7.495 KB
November 22 2023 2:32:50
root
0644
malloc.h
6.041 KB
November 22 2023 2:32:50
root
0644
math.h
45.316 KB
November 22 2023 2:32:50
root
0644
mcheck.h
2.378 KB
November 22 2023 2:32:50
root
0644
memory.h
0.934 KB
November 22 2023 2:32:50
root
0644
mntent.h
3.28 KB
November 22 2023 2:32:50
root
0644
monetary.h
1.762 KB
November 22 2023 2:32:50
root
0644
mqueue.h
3.672 KB
November 22 2023 2:32:50
root
0644
netdb.h
27.441 KB
November 22 2023 2:32:50
root
0644
nl_types.h
1.712 KB
November 22 2023 2:32:50
root
0644
nss.h
1.835 KB
November 22 2023 2:32:50
root
0644
obstack.h
20.808 KB
November 22 2023 2:32:50
root
0644
paths.h
2.913 KB
November 22 2023 2:32:50
root
0644
poll.h
0.021 KB
November 22 2023 2:32:50
root
0644
printf.h
6.642 KB
November 22 2023 2:32:50
root
0644
proc_service.h
3.396 KB
November 22 2023 2:32:50
root
0644
pthread.h
40.724 KB
November 22 2023 2:32:50
root
0644
pty.h
1.533 KB
November 22 2023 2:32:50
root
0644
pwd.h
6.015 KB
November 22 2023 2:32:50
root
0644
re_comp.h
0.94 KB
November 22 2023 2:32:50
root
0644
regex.h
24.136 KB
November 22 2023 2:32:50
root
0644
regexp.h
1.414 KB
November 22 2023 2:32:50
root
0644
resolv.h
11.595 KB
November 22 2023 2:32:50
root
0644
sched.h
4.622 KB
November 22 2023 2:32:50
root
0644
search.h
5.322 KB
November 22 2023 2:32:50
root
0644
semaphore.h
2.671 KB
November 22 2023 2:32:50
root
0644
setjmp.h
3.584 KB
November 22 2023 2:32:50
root
0644
sgtty.h
1.313 KB
November 22 2023 2:32:50
root
0644
shadow.h
5.344 KB
November 22 2023 2:32:50
root
0644
signal.h
12.021 KB
November 22 2023 2:32:50
root
0644
spawn.h
7.576 KB
November 22 2023 2:32:50
root
0644
stab.h
0.258 KB
November 22 2023 2:32:50
root
0644
stdc-predef.h
2.236 KB
November 22 2023 2:32:50
root
0644
stdint.h
8.275 KB
November 22 2023 2:32:50
root
0644
stdio.h
29.248 KB
November 22 2023 2:32:50
root
0644
stdio_ext.h
2.734 KB
November 22 2023 2:32:50
root
0644
stdlib.h
34.995 KB
November 22 2023 2:32:50
root
0644
string.h
17.246 KB
November 22 2023 2:32:50
root
0644
strings.h
4.642 KB
November 22 2023 2:32:50
root
0644
sudo_plugin.h
8.028 KB
April 04 2023 1:56:28
root
0644
syscall.h
0.024 KB
November 22 2023 2:32:50
root
0644
sysexits.h
5.109 KB
November 22 2023 2:32:50
root
0644
syslog.h
0.023 KB
November 22 2023 2:32:50
root
0644
tar.h
3.697 KB
November 22 2023 2:32:50
root
0644
termio.h
0.209 KB
November 22 2023 2:32:50
root
0644
termios.h
3.515 KB
November 22 2023 2:32:50
root
0644
tgmath.h
36.542 KB
November 22 2023 2:32:50
root
0644
thread_db.h
15.648 KB
November 22 2023 2:32:50
root
0644
threads.h
6.505 KB
November 22 2023 2:32:50
root
0644
time.h
10.035 KB
November 22 2023 2:32:50
root
0644
ttyent.h
2.436 KB
November 22 2023 2:32:50
root
0644
uchar.h
1.955 KB
November 22 2023 2:32:50
root
0644
ucontext.h
1.989 KB
November 22 2023 2:32:50
root
0644
ulimit.h
1.547 KB
November 22 2023 2:32:50
root
0644
unistd.h
41.801 KB
November 22 2023 2:32:50
root
0644
utime.h
1.467 KB
November 22 2023 2:32:50
root
0644
utmp.h
3.147 KB
November 22 2023 2:32:50
root
0644
utmpx.h
4.004 KB
November 22 2023 2:32:50
root
0644
uv.h
62.506 KB
July 05 2021 7:32:59
root
0644
values.h
1.91 KB
November 22 2023 2:32:50
root
0644
wait.h
0.021 KB
November 22 2023 2:32:50
root
0644
wchar.h
30.382 KB
November 22 2023 2:32:50
root
0644
wctype.h
5.419 KB
November 22 2023 2:32:50
root
0644
wordexp.h
2.443 KB
November 22 2023 2:32:50
root
0644

NineSec Team - 2022