�����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.218
Web Server : Apache
System : Linux bob 6.17.4-2-pve #1 SMP PREEMPT_DYNAMIC PMX 6.17.4-2 (2025-12-19T07:49Z) 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) :  /media/../usr/share/javascript/../doc/nodejs/../cpp/../python3.8/../../../include/openssl/

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

Current File : //media/../usr/share/javascript/../doc/nodejs/../cpp/../python3.8/../../../include/openssl/des.h
/*
 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
 *
 * Licensed under the OpenSSL license (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * https://www.openssl.org/source/license.html
 */

#ifndef HEADER_DES_H
# define HEADER_DES_H

# include <openssl/opensslconf.h>

# ifndef OPENSSL_NO_DES
# ifdef  __cplusplus
extern "C" {
# endif
# include <openssl/e_os2.h>

typedef unsigned int DES_LONG;

# ifdef OPENSSL_BUILD_SHLIBCRYPTO
#  undef OPENSSL_EXTERN
#  define OPENSSL_EXTERN OPENSSL_EXPORT
# endif

typedef unsigned char DES_cblock[8];
typedef /* const */ unsigned char const_DES_cblock[8];
/*
 * With "const", gcc 2.8.1 on Solaris thinks that DES_cblock * and
 * const_DES_cblock * are incompatible pointer types.
 */

typedef struct DES_ks {
    union {
        DES_cblock cblock;
        /*
         * make sure things are correct size on machines with 8 byte longs
         */
        DES_LONG deslong[2];
    } ks[16];
} DES_key_schedule;

# define DES_KEY_SZ      (sizeof(DES_cblock))
# define DES_SCHEDULE_SZ (sizeof(DES_key_schedule))

# define DES_ENCRYPT     1
# define DES_DECRYPT     0

# define DES_CBC_MODE    0
# define DES_PCBC_MODE   1

# define DES_ecb2_encrypt(i,o,k1,k2,e) \
        DES_ecb3_encrypt((i),(o),(k1),(k2),(k1),(e))

# define DES_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \
        DES_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e))

# define DES_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \
        DES_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e))

# define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \
        DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n))

OPENSSL_DECLARE_GLOBAL(int, DES_check_key); /* defaults to false */
# define DES_check_key OPENSSL_GLOBAL_REF(DES_check_key)

const char *DES_options(void);
void DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output,
                      DES_key_schedule *ks1, DES_key_schedule *ks2,
                      DES_key_schedule *ks3, int enc);
DES_LONG DES_cbc_cksum(const unsigned char *input, DES_cblock *output,
                       long length, DES_key_schedule *schedule,
                       const_DES_cblock *ivec);
/* DES_cbc_encrypt does not update the IV!  Use DES_ncbc_encrypt instead. */
void DES_cbc_encrypt(const unsigned char *input, unsigned char *output,
                     long length, DES_key_schedule *schedule,
                     DES_cblock *ivec, int enc);
void DES_ncbc_encrypt(const unsigned char *input, unsigned char *output,
                      long length, DES_key_schedule *schedule,
                      DES_cblock *ivec, int enc);
void DES_xcbc_encrypt(const unsigned char *input, unsigned char *output,
                      long length, DES_key_schedule *schedule,
                      DES_cblock *ivec, const_DES_cblock *inw,
                      const_DES_cblock *outw, int enc);
void DES_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits,
                     long length, DES_key_schedule *schedule,
                     DES_cblock *ivec, int enc);
void DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output,
                     DES_key_schedule *ks, int enc);

/*
 * This is the DES encryption function that gets called by just about every
 * other DES routine in the library.  You should not use this function except
 * to implement 'modes' of DES.  I say this because the functions that call
 * this routine do the conversion from 'char *' to long, and this needs to be
 * done to make sure 'non-aligned' memory access do not occur.  The
 * characters are loaded 'little endian'. Data is a pointer to 2 unsigned
 * long's and ks is the DES_key_schedule to use.  enc, is non zero specifies
 * encryption, zero if decryption.
 */
void DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc);

/*
 * This functions is the same as DES_encrypt1() except that the DES initial
 * permutation (IP) and final permutation (FP) have been left out.  As for
 * DES_encrypt1(), you should not use this function. It is used by the
 * routines in the library that implement triple DES. IP() DES_encrypt2()
 * DES_encrypt2() DES_encrypt2() FP() is the same as DES_encrypt1()
 * DES_encrypt1() DES_encrypt1() except faster :-).
 */
void DES_encrypt2(DES_LONG *data, DES_key_schedule *ks, int enc);

void DES_encrypt3(DES_LONG *data, DES_key_schedule *ks1,
                  DES_key_schedule *ks2, DES_key_schedule *ks3);
void DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1,
                  DES_key_schedule *ks2, DES_key_schedule *ks3);
void DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output,
                          long length,
                          DES_key_schedule *ks1, DES_key_schedule *ks2,
                          DES_key_schedule *ks3, DES_cblock *ivec, int enc);
void DES_ede3_cfb64_encrypt(const unsigned char *in, unsigned char *out,
                            long length, DES_key_schedule *ks1,
                            DES_key_schedule *ks2, DES_key_schedule *ks3,
                            DES_cblock *ivec, int *num, int enc);
void DES_ede3_cfb_encrypt(const unsigned char *in, unsigned char *out,
                          int numbits, long length, DES_key_schedule *ks1,
                          DES_key_schedule *ks2, DES_key_schedule *ks3,
                          DES_cblock *ivec, int enc);
void DES_ede3_ofb64_encrypt(const unsigned char *in, unsigned char *out,
                            long length, DES_key_schedule *ks1,
                            DES_key_schedule *ks2, DES_key_schedule *ks3,
                            DES_cblock *ivec, int *num);
char *DES_fcrypt(const char *buf, const char *salt, char *ret);
char *DES_crypt(const char *buf, const char *salt);
void DES_ofb_encrypt(const unsigned char *in, unsigned char *out, int numbits,
                     long length, DES_key_schedule *schedule,
                     DES_cblock *ivec);
void DES_pcbc_encrypt(const unsigned char *input, unsigned char *output,
                      long length, DES_key_schedule *schedule,
                      DES_cblock *ivec, int enc);
DES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[],
                        long length, int out_count, DES_cblock *seed);
int DES_random_key(DES_cblock *ret);
void DES_set_odd_parity(DES_cblock *key);
int DES_check_key_parity(const_DES_cblock *key);
int DES_is_weak_key(const_DES_cblock *key);
/*
 * DES_set_key (= set_key = DES_key_sched = key_sched) calls
 * DES_set_key_checked if global variable DES_check_key is set,
 * DES_set_key_unchecked otherwise.
 */
int DES_set_key(const_DES_cblock *key, DES_key_schedule *schedule);
int DES_key_sched(const_DES_cblock *key, DES_key_schedule *schedule);
int DES_set_key_checked(const_DES_cblock *key, DES_key_schedule *schedule);
void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule);
void DES_string_to_key(const char *str, DES_cblock *key);
void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2);
void DES_cfb64_encrypt(const unsigned char *in, unsigned char *out,
                       long length, DES_key_schedule *schedule,
                       DES_cblock *ivec, int *num, int enc);
void DES_ofb64_encrypt(const unsigned char *in, unsigned char *out,
                       long length, DES_key_schedule *schedule,
                       DES_cblock *ivec, int *num);

# define DES_fixup_key_parity DES_set_odd_parity

# ifdef  __cplusplus
}
# endif
# endif

#endif

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
December 13 2023 9:42:27
root
0755
aes.h
3.271 KB
January 31 2024 9:45:27
root
0644
asn1.h
32.839 KB
January 31 2024 9:45:27
root
0644
asn1_mac.h
0.386 KB
January 31 2024 9:45:27
root
0644
asn1err.h
14.343 KB
January 31 2024 9:45:27
root
0644
asn1t.h
32.168 KB
January 31 2024 9:45:27
root
0644
async.h
2.342 KB
January 31 2024 9:45:27
root
0644
asyncerr.h
1.295 KB
January 31 2024 9:45:27
root
0644
bio.h
34.089 KB
January 31 2024 9:45:27
root
0644
bioerr.h
6.25 KB
January 31 2024 9:45:27
root
0644
blowfish.h
1.804 KB
January 31 2024 9:45:27
root
0644
bn.h
21.616 KB
January 31 2024 9:45:27
root
0644
bnerr.h
4.853 KB
January 31 2024 9:45:27
root
0644
buffer.h
1.563 KB
January 31 2024 9:45:27
root
0644
buffererr.h
0.801 KB
January 31 2024 9:45:27
root
0644
camellia.h
3.104 KB
January 31 2024 9:45:27
root
0644
cast.h
1.635 KB
January 31 2024 9:45:27
root
0644
cmac.h
1.039 KB
January 31 2024 9:45:27
root
0644
cms.h
15.995 KB
January 31 2024 9:45:27
root
0644
cmserr.h
10.898 KB
January 31 2024 9:45:27
root
0644
comp.h
1.297 KB
January 31 2024 9:45:27
root
0644
comperr.h
1.184 KB
January 31 2024 9:45:27
root
0644
conf.h
5.47 KB
January 31 2024 9:45:27
root
0644
conf_api.h
1.27 KB
January 31 2024 9:45:27
root
0644
conferr.h
3.349 KB
January 31 2024 9:45:27
root
0644
crypto.h
16.835 KB
January 31 2024 9:45:27
root
0644
cryptoerr.h
2.208 KB
January 31 2024 9:45:27
root
0644
ct.h
15.5 KB
January 31 2024 9:45:27
root
0644
cterr.h
3.389 KB
January 31 2024 9:45:27
root
0644
des.h
7.448 KB
January 31 2024 9:45:27
root
0644
dh.h
13.368 KB
January 31 2024 9:45:27
root
0644
dherr.h
4.004 KB
January 31 2024 9:45:27
root
0644
dsa.h
9.815 KB
January 31 2024 9:45:27
root
0644
dsaerr.h
2.902 KB
January 31 2024 9:45:27
root
0644
dtls1.h
1.541 KB
January 31 2024 9:45:27
root
0644
e_os2.h
8.68 KB
January 31 2024 9:45:27
root
0644
ebcdic.h
0.902 KB
January 31 2024 9:45:27
root
0644
ec.h
62.105 KB
January 31 2024 9:45:27
root
0644
ecdh.h
0.35 KB
January 31 2024 9:45:27
root
0644
ecdsa.h
0.35 KB
January 31 2024 9:45:27
root
0644
ecerr.h
16.188 KB
January 31 2024 9:45:27
root
0644
engine.h
33.849 KB
January 31 2024 9:45:27
root
0644
engineerr.h
5.319 KB
January 31 2024 9:45:27
root
0644
err.h
11.005 KB
January 31 2024 9:45:27
root
0644
evp.h
75.027 KB
January 31 2024 9:45:27
root
0644
evperr.h
11.185 KB
January 31 2024 9:45:27
root
0644
hmac.h
1.554 KB
January 31 2024 9:45:27
root
0644
idea.h
2.05 KB
January 31 2024 9:45:27
root
0644
kdf.h
4.225 KB
January 31 2024 9:45:27
root
0644
kdferr.h
2.072 KB
January 31 2024 9:45:27
root
0644
lhash.h
9.054 KB
January 31 2024 9:45:27
root
0644
md2.h
1.029 KB
January 31 2024 9:45:27
root
0644
md4.h
1.291 KB
January 31 2024 9:45:27
root
0644
md5.h
1.289 KB
January 31 2024 9:45:27
root
0644
mdc2.h
1.028 KB
January 31 2024 9:45:27
root
0644
modes.h
10.232 KB
January 31 2024 9:45:27
root
0644
obj_mac.h
212.424 KB
January 31 2024 9:45:27
root
0644
objects.h
6.478 KB
January 31 2024 9:45:27
root
0644
objectserr.h
1.285 KB
January 31 2024 9:45:27
root
0644
ocsp.h
14.946 KB
January 31 2024 9:45:27
root
0644
ocsperr.h
3.277 KB
January 31 2024 9:45:27
root
0644
opensslv.h
4.006 KB
January 31 2024 9:45:27
root
0644
ossl_typ.h
6.119 KB
January 31 2024 9:45:27
root
0644
pem.h
15.105 KB
January 31 2024 9:45:27
root
0644
pem2.h
0.405 KB
January 31 2024 9:45:27
root
0644
pemerr.h
4.979 KB
January 31 2024 9:45:27
root
0644
pkcs12.h
9.64 KB
January 31 2024 9:45:27
root
0644
pkcs12err.h
3.661 KB
January 31 2024 9:45:27
root
0644
pkcs7.h
11.318 KB
January 31 2024 9:45:27
root
0644
pkcs7err.h
4.99 KB
January 31 2024 9:45:27
root
0644
rand.h
2.161 KB
January 31 2024 9:45:27
root
0644
rand_drbg.h
4.651 KB
January 31 2024 9:45:27
root
0644
randerr.h
4.524 KB
January 31 2024 9:45:27
root
0644
rc2.h
1.498 KB
January 31 2024 9:45:27
root
0644
rc4.h
0.806 KB
January 31 2024 9:45:27
root
0644
rc5.h
1.941 KB
January 31 2024 9:45:27
root
0644
ripemd.h
1.214 KB
January 31 2024 9:45:27
root
0644
rsa.h
21.682 KB
January 31 2024 9:45:27
root
0644
rsaerr.h
8.862 KB
January 31 2024 9:45:27
root
0644
safestack.h
7.948 KB
January 31 2024 9:45:27
root
0644
seed.h
3.397 KB
January 31 2024 9:45:27
root
0644
sha.h
3.741 KB
January 31 2024 9:45:27
root
0644
srp.h
3.737 KB
January 31 2024 9:45:27
root
0644
srtp.h
1.285 KB
January 31 2024 9:45:27
root
0644
ssl.h
108.646 KB
January 31 2024 9:45:27
root
0644
ssl2.h
0.529 KB
January 31 2024 9:45:27
root
0644
ssl3.h
14.234 KB
January 31 2024 9:45:27
root
0644
sslerr.h
45.582 KB
January 31 2024 9:45:27
root
0644
stack.h
3.022 KB
January 31 2024 9:45:27
root
0644
store.h
10.937 KB
January 31 2024 9:45:27
root
0644
storeerr.h
4.296 KB
January 31 2024 9:45:27
root
0644
symhacks.h
1.28 KB
January 31 2024 9:45:27
root
0644
tls1.h
70.791 KB
January 31 2024 9:45:27
root
0644
ts.h
21.903 KB
January 31 2024 9:45:27
root
0644
tserr.h
6.588 KB
January 31 2024 9:45:27
root
0644
txt_db.h
1.627 KB
January 31 2024 9:45:27
root
0644
ui.h
15.676 KB
January 31 2024 9:45:27
root
0644
uierr.h
2.673 KB
January 31 2024 9:45:27
root
0644
whrlpool.h
1.345 KB
January 31 2024 9:45:27
root
0644
x509.h
42.112 KB
January 31 2024 9:45:27
root
0644
x509_vfy.h
31.425 KB
January 31 2024 9:45:27
root
0644
x509err.h
6.618 KB
January 31 2024 9:45:27
root
0644
x509v3.h
32.597 KB
January 31 2024 9:45:27
root
0644
x509v3err.h
8.571 KB
January 31 2024 9:45:27
root
0644

NineSec Team - 2022