����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/*
* Copyright 2025 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (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 OPENSSL_BYTEORDER_H
#define OPENSSL_BYTEORDER_H
#pragma once
#include <openssl/e_os2.h>
#include <string.h>
/*
* "Modern" compilers do a decent job of optimising these functions to just a
* couple of instruction ([swap +] store, or load [+ swap]) when either no
* swapping is required, or a suitable swap instruction is available.
*/
#if defined(_MSC_VER) && _MSC_VER >= 1300
#include <stdlib.h>
#pragma intrinsic(_byteswap_ushort)
#pragma intrinsic(_byteswap_ulong)
#pragma intrinsic(_byteswap_uint64)
#define OSSL_HTOBE16(x) _byteswap_ushort(x)
#define OSSL_HTOBE32(x) _byteswap_ulong(x)
#define OSSL_HTOBE64(x) _byteswap_uint64(x)
#define OSSL_BE16TOH(x) _byteswap_ushort(x)
#define OSSL_BE32TOH(x) _byteswap_ulong(x)
#define OSSL_BE64TOH(x) _byteswap_uint64(x)
#define OSSL_HTOLE16(x) (x)
#define OSSL_HTOLE32(x) (x)
#define OSSL_HTOLE64(x) (x)
#define OSSL_LE16TOH(x) (x)
#define OSSL_LE32TOH(x) (x)
#define OSSL_LE64TOH(x) (x)
#elif defined(__GLIBC__) && defined(__GLIBC_PREREQ)
#if (__GLIBC_PREREQ(2, 19)) && defined(_DEFAULT_SOURCE)
#include <endian.h>
#define OSSL_HTOBE16(x) htobe16(x)
#define OSSL_HTOBE32(x) htobe32(x)
#define OSSL_HTOBE64(x) htobe64(x)
#define OSSL_BE16TOH(x) be16toh(x)
#define OSSL_BE32TOH(x) be32toh(x)
#define OSSL_BE64TOH(x) be64toh(x)
#define OSSL_HTOLE16(x) htole16(x)
#define OSSL_HTOLE32(x) htole32(x)
#define OSSL_HTOLE64(x) htole64(x)
#define OSSL_LE16TOH(x) le16toh(x)
#define OSSL_LE32TOH(x) le32toh(x)
#define OSSL_LE64TOH(x) le64toh(x)
#endif
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#if defined(__OpenBSD__)
#include <sys/types.h>
#else
#include <sys/endian.h>
#endif
#define OSSL_HTOBE16(x) htobe16(x)
#define OSSL_HTOBE32(x) htobe32(x)
#define OSSL_HTOBE64(x) htobe64(x)
#define OSSL_BE16TOH(x) be16toh(x)
#define OSSL_BE32TOH(x) be32toh(x)
#define OSSL_BE64TOH(x) be64toh(x)
#define OSSL_HTOLE16(x) htole16(x)
#define OSSL_HTOLE32(x) htole32(x)
#define OSSL_HTOLE64(x) htole64(x)
#define OSSL_LE16TOH(x) le16toh(x)
#define OSSL_LE32TOH(x) le32toh(x)
#define OSSL_LE64TOH(x) le64toh(x)
#elif defined(__APPLE__)
#include <libkern/OSByteOrder.h>
#define OSSL_HTOBE16(x) OSSwapHostToBigInt16(x)
#define OSSL_HTOBE32(x) OSSwapHostToBigInt32(x)
#define OSSL_HTOBE64(x) OSSwapHostToBigInt64(x)
#define OSSL_BE16TOH(x) OSSwapBigToHostInt16(x)
#define OSSL_BE32TOH(x) OSSwapBigToHostInt32(x)
#define OSSL_BE64TOH(x) OSSwapBigToHostInt64(x)
#define OSSL_HTOLE16(x) OSSwapHostToLittleInt16(x)
#define OSSL_HTOLE32(x) OSSwapHostToLittleInt32(x)
#define OSSL_HTOLE64(x) OSSwapHostToLittleInt64(x)
#define OSSL_LE16TOH(x) OSSwapLittleToHostInt16(x)
#define OSSL_LE32TOH(x) OSSwapLittleToHostInt32(x)
#define OSSL_LE64TOH(x) OSSwapLittleToHostInt64(x)
#endif
static ossl_inline ossl_unused unsigned char *
OPENSSL_store_u16_le(unsigned char *out, uint16_t val)
{
#ifdef OSSL_HTOLE16
uint16_t t = OSSL_HTOLE16(val);
memcpy(out, (unsigned char *)&t, 2);
return out + 2;
#else
*out++ = (val & 0xff);
*out++ = (val >> 8) & 0xff;
return out;
#endif
}
static ossl_inline ossl_unused unsigned char *
OPENSSL_store_u16_be(unsigned char *out, uint16_t val)
{
#ifdef OSSL_HTOBE16
uint16_t t = OSSL_HTOBE16(val);
memcpy(out, (unsigned char *)&t, 2);
return out + 2;
#else
*out++ = (val >> 8) & 0xff;
*out++ = (val & 0xff);
return out;
#endif
}
static ossl_inline ossl_unused unsigned char *
OPENSSL_store_u32_le(unsigned char *out, uint32_t val)
{
#ifdef OSSL_HTOLE32
uint32_t t = OSSL_HTOLE32(val);
memcpy(out, (unsigned char *)&t, 4);
return out + 4;
#else
*out++ = (val & 0xff);
*out++ = (val >> 8) & 0xff;
*out++ = (val >> 16) & 0xff;
*out++ = (val >> 24) & 0xff;
return out;
#endif
}
static ossl_inline ossl_unused unsigned char *
OPENSSL_store_u32_be(unsigned char *out, uint32_t val)
{
#ifdef OSSL_HTOBE32
uint32_t t = OSSL_HTOBE32(val);
memcpy(out, (unsigned char *)&t, 4);
return out + 4;
#else
*out++ = (val >> 24) & 0xff;
*out++ = (val >> 16) & 0xff;
*out++ = (val >> 8) & 0xff;
*out++ = (val & 0xff);
return out;
#endif
}
static ossl_inline ossl_unused unsigned char *
OPENSSL_store_u64_le(unsigned char *out, uint64_t val)
{
#ifdef OSSL_HTOLE64
uint64_t t = OSSL_HTOLE64(val);
memcpy(out, (unsigned char *)&t, 8);
return out + 8;
#else
*out++ = (val & 0xff);
*out++ = (val >> 8) & 0xff;
*out++ = (val >> 16) & 0xff;
*out++ = (val >> 24) & 0xff;
*out++ = (val >> 32) & 0xff;
*out++ = (val >> 40) & 0xff;
*out++ = (val >> 48) & 0xff;
*out++ = (val >> 56) & 0xff;
return out;
#endif
}
static ossl_inline ossl_unused unsigned char *
OPENSSL_store_u64_be(unsigned char *out, uint64_t val)
{
#ifdef OSSL_HTOLE64
uint64_t t = OSSL_HTOBE64(val);
memcpy(out, (unsigned char *)&t, 8);
return out + 8;
#else
*out++ = (val >> 56) & 0xff;
*out++ = (val >> 48) & 0xff;
*out++ = (val >> 40) & 0xff;
*out++ = (val >> 32) & 0xff;
*out++ = (val >> 24) & 0xff;
*out++ = (val >> 16) & 0xff;
*out++ = (val >> 8) & 0xff;
*out++ = (val & 0xff);
return out;
#endif
}
static ossl_inline ossl_unused const unsigned char *
OPENSSL_load_u16_le(uint16_t *val, const unsigned char *in)
{
#ifdef OSSL_LE16TOH
uint16_t t;
memcpy((unsigned char *)&t, in, 2);
*val = OSSL_LE16TOH(t);
return in + 2;
#else
uint16_t b0 = *in++;
uint16_t b1 = *in++;
*val = b0 | (b1 << 8);
return in;
#endif
}
static ossl_inline ossl_unused const unsigned char *
OPENSSL_load_u16_be(uint16_t *val, const unsigned char *in)
{
#ifdef OSSL_LE16TOH
uint16_t t;
memcpy((unsigned char *)&t, in, 2);
*val = OSSL_BE16TOH(t);
return in + 2;
#else
uint16_t b1 = *in++;
uint16_t b0 = *in++;
*val = b0 | (b1 << 8);
return in;
#endif
}
static ossl_inline ossl_unused const unsigned char *
OPENSSL_load_u32_le(uint32_t *val, const unsigned char *in)
{
#ifdef OSSL_LE32TOH
uint32_t t;
memcpy((unsigned char *)&t, in, 4);
*val = OSSL_LE32TOH(t);
return in + 4;
#else
uint32_t b0 = *in++;
uint32_t b1 = *in++;
uint32_t b2 = *in++;
uint32_t b3 = *in++;
*val = b0 | (b1 << 8) | (b2 << 16) | (b3 << 24);
return in;
#endif
}
static ossl_inline ossl_unused const unsigned char *
OPENSSL_load_u32_be(uint32_t *val, const unsigned char *in)
{
#ifdef OSSL_LE32TOH
uint32_t t;
memcpy((unsigned char *)&t, in, 4);
*val = OSSL_BE32TOH(t);
return in + 4;
#else
uint32_t b3 = *in++;
uint32_t b2 = *in++;
uint32_t b1 = *in++;
uint32_t b0 = *in++;
*val = b0 | (b1 << 8) | (b2 << 16) | (b3 << 24);
return in;
#endif
}
static ossl_inline ossl_unused const unsigned char *
OPENSSL_load_u64_le(uint64_t *val, const unsigned char *in)
{
#ifdef OSSL_LE64TOH
uint64_t t;
memcpy((unsigned char *)&t, in, 8);
*val = OSSL_LE64TOH(t);
return in + 8;
#else
uint64_t b0 = *in++;
uint64_t b1 = *in++;
uint64_t b2 = *in++;
uint64_t b3 = *in++;
uint64_t b4 = *in++;
uint64_t b5 = *in++;
uint64_t b6 = *in++;
uint64_t b7 = *in++;
*val = b0 | (b1 << 8) | (b2 << 16) | (b3 << 24)
| (b4 << 32) | (b5 << 40) | (b6 << 48) | (b7 << 56);
return in;
#endif
}
static ossl_inline ossl_unused const unsigned char *
OPENSSL_load_u64_be(uint64_t *val, const unsigned char *in)
{
#ifdef OSSL_LE64TOH
uint64_t t;
memcpy((unsigned char *)&t, in, 8);
*val = OSSL_BE64TOH(t);
return in + 8;
#else
uint64_t b7 = *in++;
uint64_t b6 = *in++;
uint64_t b5 = *in++;
uint64_t b4 = *in++;
uint64_t b3 = *in++;
uint64_t b2 = *in++;
uint64_t b1 = *in++;
uint64_t b0 = *in++;
*val = b0 | (b1 << 8) | (b2 << 16) | (b3 << 24)
| (b4 << 32) | (b5 << 40) | (b6 << 48) | (b7 << 56);
return in;
#endif
}
#undef OSSL_HTOBE16
#undef OSSL_HTOBE32
#undef OSSL_HTOBE64
#undef OSSL_BE16TOH
#undef OSSL_BE32TOH
#undef OSSL_BE64TOH
#undef OSSL_HTOLE16
#undef OSSL_HTOLE32
#undef OSSL_HTOLE64
#undef OSSL_LE16TOH
#undef OSSL_LE32TOH
#undef OSSL_LE64TOH
#endif
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| aes.h | File | 3.23 KB | 0644 |
|
| asn1.h | File | 56.38 KB | 0644 |
|
| asn1err.h | File | 5.05 KB | 0644 |
|
| asn1t.h | File | 37.7 KB | 0644 |
|
| async.h | File | 2.95 KB | 0644 |
|
| asyncerr.h | File | 739 B | 0644 |
|
| bio.h | File | 40.43 KB | 0644 |
|
| bioerr.h | File | 2.3 KB | 0644 |
|
| blowfish.h | File | 2.09 KB | 0644 |
|
| bn.h | File | 21.79 KB | 0644 |
|
| bnerr.h | File | 1.3 KB | 0644 |
|
| buffer.h | File | 1.55 KB | 0644 |
|
| buffererr.h | File | 587 B | 0644 |
|
| byteorder.h | File | 8.25 KB | 0644 |
|
| camellia.h | File | 3.19 KB | 0644 |
|
| cast.h | File | 1.84 KB | 0644 |
|
| cmac.h | File | 1.42 KB | 0644 |
|
| cmp.h | File | 46.91 KB | 0644 |
|
| cmp_util.h | File | 1.59 KB | 0644 |
|
| cmperr.h | File | 4.71 KB | 0644 |
|
| cms.h | File | 30.37 KB | 0644 |
|
| cmserr.h | File | 4.44 KB | 0644 |
|
| comp.h | File | 4.59 KB | 0644 |
|
| comperr.h | File | 1002 B | 0644 |
|
| conf.h | File | 10.14 KB | 0644 |
|
| conf_api.h | File | 1.3 KB | 0644 |
|
| conferr.h | File | 1.66 KB | 0644 |
|
| configuration-x86_64.h | File | 4.36 KB | 0644 |
|
| configuration.h | File | 1.55 KB | 0644 |
|
| conftypes.h | File | 1.15 KB | 0644 |
|
| core.h | File | 7.64 KB | 0644 |
|
| core_dispatch.h | File | 45.85 KB | 0644 |
|
| core_names.h | File | 29.14 KB | 0644 |
|
| core_object.h | File | 1.02 KB | 0644 |
|
| crmf.h | File | 19.18 KB | 0644 |
|
| crmferr.h | File | 1.81 KB | 0644 |
|
| crypto.h | File | 22.58 KB | 0644 |
|
| cryptoerr.h | File | 1.94 KB | 0644 |
|
| cryptoerr_legacy.h | File | 46.89 KB | 0644 |
|
| ct.h | File | 21.72 KB | 0644 |
|
| cterr.h | File | 1.21 KB | 0644 |
|
| decoder.h | File | 4.79 KB | 0644 |
|
| decodererr.h | File | 740 B | 0644 |
|
| des.h | File | 7.58 KB | 0644 |
|
| dh.h | File | 12.72 KB | 0644 |
|
| dherr.h | File | 1.66 KB | 0644 |
|
| dsa.h | File | 10.72 KB | 0644 |
|
| dsaerr.h | File | 1.14 KB | 0644 |
|
| dtls1.h | File | 1.21 KB | 0644 |
|
| e_os2.h | File | 8.25 KB | 0644 |
|
| e_ostime.h | File | 1.12 KB | 0644 |
|
| ebcdic.h | File | 1 KB | 0644 |
|
| ec.h | File | 60.85 KB | 0644 |
|
| ecdh.h | File | 361 B | 0644 |
|
| ecdsa.h | File | 361 B | 0644 |
|
| ecerr.h | File | 3.28 KB | 0644 |
|
| encoder.h | File | 4.46 KB | 0644 |
|
| encodererr.h | File | 741 B | 0644 |
|
| engine.h | File | 36.66 KB | 0644 |
|
| engineerr.h | File | 1.99 KB | 0644 |
|
| err.h | File | 19.96 KB | 0644 |
|
| ess.h | File | 8.5 KB | 0644 |
|
| esserr.h | File | 982 B | 0644 |
|
| evp.h | File | 93.39 KB | 0644 |
|
| evperr.h | File | 5.4 KB | 0644 |
|
| fips.h | File | 601 B | 0644 |
|
| fips_names.h | File | 1.6 KB | 0644 |
|
| fipskey.h | File | 1.21 KB | 0644 |
|
| hmac.h | File | 1.85 KB | 0644 |
|
| hpke.h | File | 5.94 KB | 0644 |
|
| http.h | File | 4.61 KB | 0644 |
|
| httperr.h | File | 1.81 KB | 0644 |
|
| idea.h | File | 2.23 KB | 0644 |
|
| indicator.h | File | 818 B | 0644 |
|
| kdf.h | File | 4.98 KB | 0644 |
|
| kdferr.h | File | 480 B | 0644 |
|
| lhash.h | File | 32.59 KB | 0644 |
|
| macros.h | File | 10.47 KB | 0644 |
|
| md2.h | File | 1.3 KB | 0644 |
|
| md4.h | File | 1.57 KB | 0644 |
|
| md5.h | File | 1.57 KB | 0644 |
|
| mdc2.h | File | 1.28 KB | 0644 |
|
| ml_kem.h | File | 959 B | 0644 |
|
| modes.h | File | 7.94 KB | 0644 |
|
| obj_mac.h | File | 282.74 KB | 0644 |
|
| objects.h | File | 7.39 KB | 0644 |
|
| objectserr.h | File | 686 B | 0644 |
|
| ocsp.h | File | 27.2 KB | 0644 |
|
| ocsperr.h | File | 1.6 KB | 0644 |
|
| opensslconf.h | File | 510 B | 0644 |
|
| opensslv.h | File | 3.37 KB | 0644 |
|
| ossl_typ.h | File | 561 B | 0644 |
|
| param_build.h | File | 2.31 KB | 0644 |
|
| params.h | File | 6.89 KB | 0644 |
|
| pem.h | File | 22.14 KB | 0644 |
|
| pem2.h | File | 523 B | 0644 |
|
| pemerr.h | File | 1.79 KB | 0644 |
|
| pkcs12.h | File | 16.61 KB | 0644 |
|
| pkcs12err.h | File | 1.39 KB | 0644 |
|
| pkcs7.h | File | 21.36 KB | 0644 |
|
| pkcs7err.h | File | 2.19 KB | 0644 |
|
| prov_ssl.h | File | 969 B | 0644 |
|
| proverr.h | File | 6.26 KB | 0644 |
|
| provider.h | File | 3.3 KB | 0644 |
|
| quic.h | File | 2.05 KB | 0644 |
|
| rand.h | File | 3.96 KB | 0644 |
|
| randerr.h | File | 2.43 KB | 0644 |
|
| rc2.h | File | 1.73 KB | 0644 |
|
| rc4.h | File | 1.05 KB | 0644 |
|
| rc5.h | File | 2.1 KB | 0644 |
|
| ripemd.h | File | 1.5 KB | 0644 |
|
| rsa.h | File | 21.78 KB | 0644 |
|
| rsaerr.h | File | 3.77 KB | 0644 |
|
| safestack.h | File | 28.47 KB | 0644 |
|
| seed.h | File | 3.53 KB | 0644 |
|
| self_test.h | File | 4.61 KB | 0644 |
|
| sha.h | File | 4.3 KB | 0644 |
|
| srp.h | File | 14.8 KB | 0644 |
|
| srtp.h | File | 1.84 KB | 0644 |
|
| ssl.h | File | 119.35 KB | 0644 |
|
| ssl2.h | File | 625 B | 0644 |
|
| ssl3.h | File | 12.45 KB | 0644 |
|
| sslerr.h | File | 15.05 KB | 0644 |
|
| sslerr_legacy.h | File | 17.84 KB | 0644 |
|
| stack.h | File | 3.05 KB | 0644 |
|
| store.h | File | 13.68 KB | 0644 |
|
| storeerr.h | File | 1.66 KB | 0644 |
|
| symhacks.h | File | 1.08 KB | 0644 |
|
| thread.h | File | 865 B | 0644 |
|
| tls1.h | File | 61.84 KB | 0644 |
|
| trace.h | File | 10.57 KB | 0644 |
|
| ts.h | File | 18.96 KB | 0644 |
|
| tserr.h | File | 2.03 KB | 0644 |
|
| txt_db.h | File | 1.6 KB | 0644 |
|
| types.h | File | 7.13 KB | 0644 |
|
| ui.h | File | 18.08 KB | 0644 |
|
| uierr.h | File | 1.04 KB | 0644 |
|
| whrlpool.h | File | 1.64 KB | 0644 |
|
| x509.h | File | 65.91 KB | 0644 |
|
| x509_acert.h | File | 21.41 KB | 0644 |
|
| x509_vfy.h | File | 46.07 KB | 0644 |
|
| x509err.h | File | 2.26 KB | 0644 |
|
| x509v3.h | File | 126.32 KB | 0644 |
|
| x509v3err.h | File | 3.49 KB | 0644 |
|