+/* clang-format off */
{- join("\n",map { "/* $_ */" } @autowarntext) -}
+/* clang-format on */
/*
* Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
*
/* Should we define BN_DIV2W here? */
/* Only one for the following should be defined */
+/* clang-format off */
{- $config{b64l} ? "#define" : "#undef" -} SIXTY_FOUR_BIT_LONG
+/* clang-format on */
+/* clang-format off */
{- $config{b64} ? "#define" : "#undef" -} SIXTY_FOUR_BIT
+/* clang-format on */
+/* clang-format off */
{- $config{b32} ? "#define" : "#undef" -} THIRTY_TWO_BIT
+/* clang-format on */
#endif
+/* clang-format off */
{- join("\n",map { "/* $_ */" } @autowarntext) -}
+/* clang-format on */
/*
* Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
*
# define OSSL_CRYPTO_DSO_CONF_H
# pragma once
+/* clang-format off */
{- # The DSO code currently always implements all functions so that no
# applications will have to worry about that from a compilation point
# of view. However, the "method"s may return zero unless that platform
@macros = ( "DSO_DLFCN" );
}
join("\n", map { "# define $_" } @macros); -}
+/* clang-format on */
+/* clang-format off */
# define DSO_EXTENSION "{- platform->dsoext() -}"
+/* clang-format on */
#endif
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_ASN1_H
# define OPENSSL_ASN1_H
# define SMIME_STREAM 0x1000
/* Stacks for types not otherwise defined in this header */
+/* clang-format off */
{-
generate_stack_macros("X509_ALGOR");
-}
+/* clang-format on */
# define ASN1_STRING_FLAG_BITS_LEFT 0x08 /* Set if 0x07 has bits left value */
unsigned long flags;
};
+/* clang-format off */
{-
generate_stack_macros("ASN1_STRING_TABLE");
-}
+/* clang-format on */
/* size limits: this stuff is taken straight from RFC 5280 */
} value;
};
+/* clang-format off */
{-
generate_stack_macros("ASN1_TYPE");
-}
+/* clang-format on */
typedef STACK_OF(ASN1_TYPE) ASN1_SEQUENCE_ANY;
ASN1_TYPE *ASN1_TYPE_pack_sequence(const ASN1_ITEM *it, void *s, ASN1_TYPE **t);
void *ASN1_TYPE_unpack_sequence(const ASN1_ITEM *it, const ASN1_TYPE *t);
+/* clang-format off */
{-
generate_stack_macros("ASN1_OBJECT");
-}
+/* clang-format on */
DECLARE_ASN1_FUNCTIONS(ASN1_OBJECT)
int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value,
BIT_STRING_BITNAME *tbl);
+/* clang-format off */
{-
generate_stack_macros("ASN1_INTEGER");
-}
+/* clang-format on */
DECLARE_ASN1_FUNCTIONS(ASN1_INTEGER)
int ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *str, const unsigned char *data,
int len);
+/* clang-format off */
{-
generate_stack_macros("ASN1_UTF8STRING");
-}
+/* clang-format on */
DECLARE_ASN1_FUNCTIONS(ASN1_VISIBLESTRING)
DECLARE_ASN1_FUNCTIONS(ASN1_UNIVERSALSTRING)
int UTF8_getc(const unsigned char *str, int len, unsigned long *val);
int UTF8_putc(unsigned char *str, int len, unsigned long value);
+/* clang-format off */
{-
generate_stack_macros("ASN1_GENERALSTRING");
-}
+/* clang-format on */
DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, ASN1_PRINTABLE)
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_ASN1T_H
# define OPENSSL_ASN1T_H
DECLARE_ASN1_ITEM(ZLONG)
# endif
+/* clang-format off */
{-
generate_stack_macros("ASN1_VALUE");
-}
+/* clang-format on */
/* Functions used internally by the ASN1 code */
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_BIO_H
# define OPENSSL_BIO_H
typedef int BIO_info_cb(BIO *, int, int);
typedef BIO_info_cb bio_info_cb; /* backward compatibility */
+/* clang-format off */
{-
generate_stack_macros("BIO");
-}
+/* clang-format on */
/* Prefix and suffix callback in ASN1 BIO */
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CMP_H
# define OPENSSL_CMP_H
DECLARE_ASN1_DUP_FUNCTION(OSSL_CMP_MSG)
DECLARE_ASN1_ENCODE_FUNCTIONS(OSSL_CMP_MSG, OSSL_CMP_MSG, OSSL_CMP_MSG)
typedef struct ossl_cmp_certstatus_st OSSL_CMP_CERTSTATUS;
+/* clang-format off */
{-
generate_stack_macros("OSSL_CMP_CERTSTATUS");
-}
+/* clang-format on */
typedef struct ossl_cmp_itav_st OSSL_CMP_ITAV;
DECLARE_ASN1_DUP_FUNCTION(OSSL_CMP_ITAV)
+/* clang-format off */
{-
generate_stack_macros("OSSL_CMP_ITAV");
-}
+/* clang-format on */
typedef struct ossl_cmp_crlstatus_st OSSL_CMP_CRLSTATUS;
+/* clang-format off */
{-
generate_stack_macros("OSSL_CMP_CRLSTATUS");
-}
+/* clang-format on */
typedef OSSL_CRMF_ATTRIBUTETYPEANDVALUE OSSL_CMP_ATAV;
# define OSSL_CMP_ATAV_free OSSL_CRMF_ATTRIBUTETYPEANDVALUE_free
typedef struct ossl_cmp_pkisi_st OSSL_CMP_PKISI;
DECLARE_ASN1_FUNCTIONS(OSSL_CMP_PKISI)
DECLARE_ASN1_DUP_FUNCTION(OSSL_CMP_PKISI)
+/* clang-format off */
{-
generate_stack_macros("OSSL_CMP_PKISI");
-}
+/* clang-format on */
typedef struct ossl_cmp_certrepmessage_st OSSL_CMP_CERTREPMESSAGE;
+/* clang-format off */
{-
generate_stack_macros("OSSL_CMP_CERTREPMESSAGE");
-}
+/* clang-format on */
typedef struct ossl_cmp_pollrep_st OSSL_CMP_POLLREP;
typedef STACK_OF(OSSL_CMP_POLLREP) OSSL_CMP_POLLREPCONTENT;
typedef struct ossl_cmp_certresponse_st OSSL_CMP_CERTRESPONSE;
+/* clang-format off */
{-
generate_stack_macros("OSSL_CMP_CERTRESPONSE");
-}
+/* clang-format on */
typedef STACK_OF(ASN1_UTF8STRING) OSSL_CMP_PKIFREETEXT;
/*
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CMS_H
# define OPENSSL_CMS_H
typedef struct CMS_RecipientEncryptedKey_st CMS_RecipientEncryptedKey;
typedef struct CMS_OtherKeyAttribute_st CMS_OtherKeyAttribute;
+/* clang-format off */
{-
generate_stack_macros("CMS_SignerInfo")
.generate_stack_macros("CMS_RecipientEncryptedKey")
.generate_stack_macros("CMS_RecipientInfo")
.generate_stack_macros("CMS_RevocationInfoChoice");
-}
+/* clang-format on */
DECLARE_ASN1_ITEM(CMS_EnvelopedData)
DECLARE_ASN1_ALLOC_FUNCTIONS(CMS_SignedData)
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_COMP_H
# define OPENSSL_COMP_H
typedef struct ssl_comp_st SSL_COMP;
+/* clang-format off */
{-
generate_stack_macros("SSL_COMP");
-}
+/* clang-format on */
# ifdef __cplusplus
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros generate_lhash_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CONF_H
# define OPENSSL_CONF_H
char *value;
} CONF_VALUE;
+/* clang-format off */
{-
generate_stack_macros("CONF_VALUE")
.generate_lhash_macros("CONF_VALUE");
-}
+/* clang-format on */
struct conf_st;
struct conf_method_st;
* OpenSSL was configured with the following options:
*/
+/* clang-format off */
{- if (@{$config{openssl_sys_defines}}) {
foreach (@{$config{openssl_sys_defines}}) {
$OUT .= "# ifndef $_\n";
}
"";
-}
+/* clang-format on */
/* Generate 80386 code? */
+/* clang-format off */
{- $config{processor} eq "386" ? "# define" : "# undef" -} I386_ONLY
+/* clang-format on */
/*
* The following are cipher-specific, but are part of the public API.
*/
# if !defined(OPENSSL_SYS_UEFI)
+/* clang-format off */
{- $config{bn_ll} ? "# define" : "# undef" -} BN_LLONG
+/* clang-format on */
/* Only one for the following should be defined */
+/* clang-format off */
{- $config{b64l} ? "# define" : "# undef" -} SIXTY_FOUR_BIT_LONG
+/* clang-format on */
+/* clang-format off */
{- $config{b64} ? "# define" : "# undef" -} SIXTY_FOUR_BIT
+/* clang-format on */
+/* clang-format off */
{- $config{b32} ? "# define" : "# undef" -} THIRTY_TWO_BIT
+/* clang-format on */
# endif
+/* clang-format off */
# define RC4_INT {- $config{rc4_int} -}
+/* clang-format on */
# if defined(OPENSSL_NO_COMP) || (defined(OPENSSL_NO_BROTLI) && defined(OPENSSL_NO_ZSTD) && defined(OPENSSL_NO_ZLIB))
# define OPENSSL_NO_COMP_ALG
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(generate_public_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CORE_NAMES_H
# define OPENSSL_CORE_NAMES_H
#define OSSL_PKEY_RETAIN_SEED "pkey_retain_seed"
/* Parameter name definitions - generated by util/perl/OpenSSL/paramnames.pm */
+/* clang-format off */
{- generate_public_macros(); -}
+/* clang-format on */
# ifdef __cplusplus
}
* CRMF (RFC 4211) implementation by M. Peylo, M. Viljanen, and D. von Oheimb.
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CRMF_H
# define OPENSSL_CRMF_H
typedef struct ossl_crmf_msg_st OSSL_CRMF_MSG;
DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_MSG)
DECLARE_ASN1_DUP_FUNCTION(OSSL_CRMF_MSG)
+/* clang-format off */
{-
generate_stack_macros("OSSL_CRMF_MSG");
-}
+/* clang-format on */
typedef struct ossl_crmf_attributetypeandvalue_st OSSL_CRMF_ATTRIBUTETYPEANDVALUE;
void OSSL_CRMF_ATTRIBUTETYPEANDVALUE_free(OSSL_CRMF_ATTRIBUTETYPEANDVALUE *v);
DECLARE_ASN1_DUP_FUNCTION(OSSL_CRMF_ATTRIBUTETYPEANDVALUE)
+/* clang-format off */
{-
generate_stack_macros("OSSL_CRMF_ATTRIBUTETYPEANDVALUE");
-}
+/* clang-format on */
typedef struct ossl_crmf_pbmparameter_st OSSL_CRMF_PBMPARAMETER;
DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_PBMPARAMETER)
typedef struct ossl_crmf_certid_st OSSL_CRMF_CERTID;
DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_CERTID)
DECLARE_ASN1_DUP_FUNCTION(OSSL_CRMF_CERTID)
+/* clang-format off */
{-
generate_stack_macros("OSSL_CRMF_CERTID");
-}
+/* clang-format on */
typedef struct ossl_crmf_pkipublicationinfo_st OSSL_CRMF_PKIPUBLICATIONINFO;
DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_PKIPUBLICATIONINFO)
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CRYPTO_H
# define OPENSSL_CRYPTO_H
STACK_OF(void) *sk;
};
+/* clang-format off */
{-
generate_stack_macros("void");
-}
+/* clang-format on */
/*
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_CT_H
# define OPENSSL_CT_H
/* All hashes are SHA256 in v1 of Certificate Transparency */
# define CT_V1_HASHLEN SHA256_DIGEST_LENGTH
+/* clang-format off */
{-
generate_stack_macros("SCT")
.generate_stack_macros("CTLOG");
-}
+/* clang-format on */
typedef enum {
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_lhash_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_ERR_H
# define OPENSSL_ERR_H
const char *string;
} ERR_STRING_DATA;
+/* clang-format off */
{-
generate_lhash_macros("ERR_STRING_DATA");
-}
+/* clang-format on */
/* 12 lines and some on an 80 column terminal */
#define ERR_MAX_DATA_SIZE 1024
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_ESS_H
# define OPENSSL_ESS_H
typedef struct ESS_cert_id ESS_CERT_ID;
typedef struct ESS_signing_cert ESS_SIGNING_CERT;
+/* clang-format off */
{-
generate_stack_macros("ESS_CERT_ID");
-}
+/* clang-format on */
typedef struct ESS_signing_cert_v2_st ESS_SIGNING_CERT_V2;
typedef struct ESS_cert_id_v2_st ESS_CERT_ID_V2;
+/* clang-format off */
{-
generate_stack_macros("ESS_CERT_ID_V2");
-}
+/* clang-format on */
DECLARE_ASN1_ALLOC_FUNCTIONS(ESS_ISSUER_SERIAL)
DECLARE_ASN1_ENCODE_FUNCTIONS_only(ESS_ISSUER_SERIAL, ESS_ISSUER_SERIAL)
/*
* The FIPS validation HMAC key, usable as an array initializer.
*/
+/* clang-format off */
#define FIPS_KEY_ELEMENTS \
{- join(', ', map { "0x$_" } unpack("(A2)*", $config{FIPSKEY})) -}
+/* clang-format on */
/*
* The FIPS validation key, as a string.
*/
+/* clang-format off */
#define FIPS_KEY_STRING "{- $config{FIPSKEY} -}"
+/* clang-format on */
/*
* The FIPS provider vendor name, as a string.
*/
+/* clang-format off */
#define FIPS_VENDOR "{- $config{FIPS_VENDOR} -}"
+/* clang-format on */
# ifdef __cplusplus
}
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_lhash_macros);
-}
+/* clang-format on */
/*
* Header for dynamic hash table routines Author - Eric Young
} \
LHASH_OF(type)
+/* clang-format off */
{-
generate_lhash_macros("OPENSSL_STRING")
.generate_lhash_macros("OPENSSL_CSTRING");
-}
+/* clang-format on */
#ifdef __cplusplus
}
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_OCSP_H
# define OPENSSL_OCSP_H
typedef struct ocsp_signature_st OCSP_SIGNATURE;
typedef struct ocsp_request_st OCSP_REQUEST;
+/* clang-format off */
{-
generate_stack_macros("OCSP_CERTID")
.generate_stack_macros("OCSP_ONEREQ");
-}
+/* clang-format on */
# define OCSP_RESPONSE_STATUS_SUCCESSFUL 0
# define OCSP_RESPONSE_STATUS_MALFORMEDREQUEST 1
# define V_OCSP_RESPID_NAME 0
# define V_OCSP_RESPID_KEY 1
+/* clang-format off */
{-
generate_stack_macros("OCSP_RESPID");
-}
+/* clang-format on */
typedef struct ocsp_revoked_info_st OCSP_REVOKEDINFO;
typedef struct ocsp_cert_status_st OCSP_CERTSTATUS;
typedef struct ocsp_single_response_st OCSP_SINGLERESP;
+/* clang-format off */
{-
generate_stack_macros("OCSP_SINGLERESP");
-}
+/* clang-format on */
typedef struct ocsp_response_data_st OCSP_RESPDATA;
*
* These macros express version number MAJOR.MINOR.PATCH exactly
*/
+/* clang-format off */
# define OPENSSL_VERSION_MAJOR {- $config{major} -}
+/* clang-format on */
+/* clang-format off */
# define OPENSSL_VERSION_MINOR {- $config{minor} -}
+/* clang-format on */
+/* clang-format off */
# define OPENSSL_VERSION_PATCH {- $config{patch} -}
+/* clang-format on */
/*
* Additional version information
*/
/* Could be: #define OPENSSL_VERSION_PRE_RELEASE "-alpha.1" */
+/* clang-format off */
# define OPENSSL_VERSION_PRE_RELEASE "{- $config{prerelease} -}"
+/* clang-format on */
/* Could be: #define OPENSSL_VERSION_BUILD_METADATA "+fips" */
/* Could be: #define OPENSSL_VERSION_BUILD_METADATA "+vendor.1" */
+/* clang-format off */
# define OPENSSL_VERSION_BUILD_METADATA "{- $config{build_metadata} -}"
+/* clang-format on */
/*
* Note: The OpenSSL Project will never define OPENSSL_VERSION_BUILD_METADATA
* be related to the API version expressed with the macros above.
* This is defined in free form.
*/
+/* clang-format off */
# define OPENSSL_SHLIB_VERSION {- $config{shlib_version} -}
+/* clang-format on */
/*
* SECTION 2: USEFUL MACROS
* longer variant with OPENSSL_VERSION_PRE_RELEASE_STR and
* OPENSSL_VERSION_BUILD_METADATA_STR appended.
*/
+/* clang-format off */
# define OPENSSL_VERSION_STR "{- $config{version} -}"
+/* clang-format on */
+/* clang-format off */
# define OPENSSL_FULL_VERSION_STR "{- $config{full_version} -}"
+/* clang-format on */
/*
* SECTION 3: ADDITIONAL METADATA
*
* These strings are defined separately to allow them to be parsable.
*/
+/* clang-format off */
# define OPENSSL_RELEASE_DATE "{- $config{release_date} -}"
+/* clang-format on */
/*
* SECTION 4: BACKWARD COMPATIBILITY
*/
+/* clang-format off */
# define OPENSSL_VERSION_TEXT "OpenSSL {- "$config{full_version} $config{release_date}" -}"
+/* clang-format on */
+/* clang-format off */
/* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PP0L */
# define OPENSSL_VERSION_NUMBER \
( (OPENSSL_VERSION_MAJOR<<28) \
|(OPENSSL_VERSION_MINOR<<20) \
|(OPENSSL_VERSION_PATCH<<4) \
|0x0L )
+/* clang-format on */
# ifdef __cplusplus
}
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_PKCS12_H
# define OPENSSL_PKCS12_H
typedef struct PKCS12_SAFEBAG_st PKCS12_SAFEBAG;
+/* clang-format off */
{-
generate_stack_macros("PKCS12_SAFEBAG");
-}
+/* clang-format on */
typedef struct pkcs12_bag_st PKCS12_BAGS;
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_PKCS7_H
# define OPENSSL_PKCS7_H
EVP_PKEY *pkey;
const PKCS7_CTX *ctx;
} PKCS7_SIGNER_INFO;
+/* clang-format off */
{-
generate_stack_macros("PKCS7_SIGNER_INFO");
-}
+/* clang-format on */
typedef struct pkcs7_recip_info_st {
ASN1_INTEGER *version; /* version 0 */
X509 *cert; /* get the pub-key from this */
const PKCS7_CTX *ctx;
} PKCS7_RECIP_INFO;
+/* clang-format off */
{-
generate_stack_macros("PKCS7_RECIP_INFO");
-}
+/* clang-format on */
typedef struct pkcs7_signed_st {
} d;
PKCS7_CTX ctx;
} PKCS7;
+/* clang-format off */
{-
generate_stack_macros("PKCS7");
-}
+/* clang-format on */
# define PKCS7_OP_SET_DETACHED_SIGNATURE 1
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_string_macros
generate_stack_const_string_macros
generate_stack_block_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_SAFESTACK_H
# define OPENSSL_SAFESTACK_H
* chars. So, we have to implement STRING specially for STACK_OF. This is
* dealt with in the autogenerated macros below.
*/
+/* clang-format off */
{-
generate_stack_string_macros()
.generate_stack_const_string_macros();
-}
+/* clang-format on */
#if !defined(OPENSSL_NO_DEPRECATED_3_0)
/*
* These should also be distinguished from "normal" stacks.
*/
typedef void *OPENSSL_BLOCK;
+/* clang-format off */
{-
generate_stack_block_macros();
-}
+/* clang-format on */
#endif
# ifdef __cplusplus
* for the EdelKey project.
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_SRP_H
# define OPENSSL_SRP_H
char *b64_bn;
BIGNUM *bn;
} SRP_gN_cache;
+/* clang-format off */
{-
generate_stack_macros("SRP_gN_cache");
-}
+/* clang-format on */
typedef struct SRP_user_pwd_st {
/* Owned by us. */
char *info;
} SRP_user_pwd;
+/* clang-format off */
{-
generate_stack_macros("SRP_user_pwd");
-}
+/* clang-format on */
OSSL_DEPRECATEDIN_3_0
SRP_user_pwd *SRP_user_pwd_new(void);
const BIGNUM *g;
const BIGNUM *N;
} SRP_gN;
+/* clang-format off */
{-
generate_stack_macros("SRP_gN");
-}
+/* clang-format on */
OSSL_DEPRECATEDIN_3_0
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros generate_const_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_SSL_H
# define OPENSSL_SSL_H
const char *name;
unsigned long id;
} SRTP_PROTECTION_PROFILE;
+/* clang-format off */
{-
generate_stack_macros("SRTP_PROTECTION_PROFILE");
-}
+/* clang-format on */
typedef int (*tls_session_ticket_ext_cb_fn)(SSL *s, const unsigned char *data,
* These need to be after the above set of includes due to a compiler bug
* in VisualStudio 2015
*/
+/* clang-format off */
{-
generate_const_stack_macros("SSL_CIPHER");
-}
+/* clang-format on */
/* compatibility */
# define SSL_set_app_data(s,arg) (SSL_set_ex_data(s,0,(char *)(arg)))
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_UI_H
# define OPENSSL_UI_H
*/
typedef struct ui_string_st UI_STRING;
+/* clang-format off */
{-
generate_stack_macros("UI_STRING");
-}
+/* clang-format on */
/*
* The different types of strings that are currently supported. This is only
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_X509_H
# define OPENSSL_X509_H
#endif
/* Needed stacks for types defined in other headers */
+/* clang-format off */
{-
generate_stack_macros("X509_NAME")
.generate_stack_macros("X509")
.generate_stack_macros("X509_REVOKED")
.generate_stack_macros("X509_CRL");
-}
+/* clang-format on */
/* Flags for X509_get_signature_info() */
/* Signature info is valid */
typedef struct X509_name_entry_st X509_NAME_ENTRY;
+/* clang-format off */
{-
generate_stack_macros("X509_NAME_ENTRY");
-}
+/* clang-format on */
# define X509_EX_V_NETSCAPE_HACK 0x8000
# define X509_EX_V_INIT 0x0001
typedef struct X509_extension_st X509_EXTENSION;
+/* clang-format off */
{-
generate_stack_macros("X509_EXTENSION");
-}
+/* clang-format on */
typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS;
typedef struct x509_attributes_st X509_ATTRIBUTE;
+/* clang-format off */
{-
generate_stack_macros("X509_ATTRIBUTE");
-}
+/* clang-format on */
typedef struct X509_req_info_st X509_REQ_INFO;
typedef struct X509_req_st X509_REQ;
typedef struct x509_cert_aux_st X509_CERT_AUX;
int enc_len;
char *enc_data;
} X509_INFO;
+/* clang-format off */
{-
generate_stack_macros("X509_INFO");
-}
+/* clang-format on */
/*
* The next 2 structures and their 8 routines are used to manipulate Netscape's
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_X509_ACERT_H
# define OPENSSL_X509_ACERT_H
typedef struct OSSL_IETF_ATTR_SYNTAX_VALUE_st OSSL_IETF_ATTR_SYNTAX_VALUE;
typedef struct OSSL_IETF_ATTR_SYNTAX_st OSSL_IETF_ATTR_SYNTAX;
+/* clang-format off */
{-
generate_stack_macros("OSSL_IETF_ATTR_SYNTAX_VALUE");
-}
+/* clang-format on */
DECLARE_ASN1_ITEM(OSSL_IETF_ATTR_SYNTAX_VALUE)
DECLARE_ASN1_ALLOC_FUNCTIONS(OSSL_IETF_ATTR_SYNTAX_VALUE)
typedef STACK_OF(OSSL_TARGET) OSSL_TARGETS;
typedef STACK_OF(OSSL_TARGETS) OSSL_TARGETING_INFORMATION;
+/* clang-format off */
{-
generate_stack_macros("OSSL_TARGET");
-}
+/* clang-format on */
+/* clang-format off */
{-
generate_stack_macros("OSSL_TARGETS");
-}
+/* clang-format on */
DECLARE_ASN1_FUNCTIONS(OSSL_TARGET)
DECLARE_ASN1_FUNCTIONS(OSSL_TARGETS)
typedef STACK_OF(OSSL_ISSUER_SERIAL) OSSL_AUTHORITY_ATTRIBUTE_ID_SYNTAX;
DECLARE_ASN1_FUNCTIONS(OSSL_AUTHORITY_ATTRIBUTE_ID_SYNTAX)
+/* clang-format off */
{-
generate_stack_macros("OSSL_ISSUER_SERIAL");
-}
+/* clang-format on */
#endif
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_X509_VFY_H
# define OPENSSL_X509_VFY_H
#define X509_LU_FAIL 0
#endif
+/* clang-format off */
{-
generate_stack_macros("X509_LOOKUP")
.generate_stack_macros("X509_OBJECT")
.generate_stack_macros("X509_VERIFY_PARAM");
-}
+/* clang-format on */
/* This is used for a table of trust checking functions */
typedef struct x509_trust_st {
int arg1;
void *arg2;
} X509_TRUST;
+/* clang-format off */
{-
generate_stack_macros("X509_TRUST");
-}
+/* clang-format on */
/* standard trust ids */
# define X509_TRUST_DEFAULT 0 /* Only valid in purpose settings */
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::stackhash qw(generate_stack_macros);
-}
+/* clang-format on */
#ifndef OPENSSL_X509V3_H
# define OPENSSL_X509V3_H
typedef struct v3_ext_method X509V3_EXT_METHOD;
+/* clang-format off */
{-
generate_stack_macros("X509V3_EXT_METHOD");
-}
+/* clang-format on */
/* ext_flags values */
# define X509V3_EXT_DYNAMIC 0x1
int GENERAL_NAME_set1_X509_NAME(GENERAL_NAME **tgt, const X509_NAME *src);
+/* clang-format off */
{-
generate_stack_macros("ACCESS_DESCRIPTION")
.generate_stack_macros("GENERAL_NAME");
-}
+/* clang-format on */
typedef STACK_OF(ACCESS_DESCRIPTION) AUTHORITY_INFO_ACCESS;
typedef STACK_OF(ASN1_OBJECT) EXTENDED_KEY_USAGE;
typedef STACK_OF(ASN1_INTEGER) TLS_FEATURE;
typedef STACK_OF(GENERAL_NAME) GENERAL_NAMES;
+/* clang-format off */
{-
generate_stack_macros("GENERAL_NAMES");
-}
+/* clang-format on */
typedef struct DIST_POINT_NAME_st {
int type;
int dp_reasons;
};
+/* clang-format off */
{-
generate_stack_macros("DIST_POINT");
-}
+/* clang-format on */
typedef STACK_OF(DIST_POINT) CRL_DIST_POINTS;
ASN1_OCTET_STRING *user;
} SXNETID;
+/* clang-format off */
{-
generate_stack_macros("SXNETID");
-}
+/* clang-format on */
typedef struct SXNET_st {
} d;
} POLICYQUALINFO;
+/* clang-format off */
{-
generate_stack_macros("POLICYQUALINFO");
-}
+/* clang-format on */
typedef struct POLICYINFO_st {
STACK_OF(POLICYQUALINFO) *qualifiers;
} POLICYINFO;
+/* clang-format off */
{-
generate_stack_macros("POLICYINFO");
-}
+/* clang-format on */
typedef STACK_OF(POLICYINFO) CERTIFICATEPOLICIES;
ASN1_OBJECT *subjectDomainPolicy;
} POLICY_MAPPING;
+/* clang-format off */
{-
generate_stack_macros("POLICY_MAPPING");
-}
+/* clang-format on */
typedef STACK_OF(POLICY_MAPPING) POLICY_MAPPINGS;
ASN1_INTEGER *maximum;
} GENERAL_SUBTREE;
+/* clang-format off */
{-
generate_stack_macros("GENERAL_SUBTREE");
-}
+/* clang-format on */
struct NAME_CONSTRAINTS_st {
STACK_OF(GENERAL_SUBTREE) *permittedSubtrees;
0,0,0,0, \
NULL}
+/* clang-format off */
# define EXT_END { -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
+/* clang-format on */
/* X509_PURPOSE stuff */
void *usr_data;
} X509_PURPOSE;
+/* clang-format off */
{-
generate_stack_macros("X509_PURPOSE");
-}
+/* clang-format on */
# define X509_PURPOSE_DEFAULT_ANY 0
# define X509_PURPOSE_SSL_CLIENT 1
unsigned long chtype);
void X509_POLICY_NODE_print(BIO *out, X509_POLICY_NODE *node, int indent);
+/* clang-format off */
{-
generate_stack_macros("X509_POLICY_NODE");
-}
+/* clang-format on */
#ifndef OPENSSL_NO_RFC3779
} u;
} ASIdOrRange;
+/* clang-format off */
{-
generate_stack_macros("ASIdOrRange");
-}
+/* clang-format on */
typedef STACK_OF(ASIdOrRange) ASIdOrRanges;
} u;
} IPAddressOrRange;
+/* clang-format off */
{-
generate_stack_macros("IPAddressOrRange");
-}
+/* clang-format on */
typedef STACK_OF(IPAddressOrRange) IPAddressOrRanges;
IPAddressChoice *ipAddressChoice;
} IPAddressFamily;
+/* clang-format off */
{-
generate_stack_macros("IPAddressFamily");
-}
+/* clang-format on */
typedef STACK_OF(IPAddressFamily) IPAddrBlocks;
#endif /* OPENSSL_NO_RFC3779 */
+/* clang-format off */
{-
generate_stack_macros("ASN1_STRING");
-}
+/* clang-format on */
/*
* Admission Syntax
DECLARE_ASN1_FUNCTIONS(PROFESSION_INFO)
DECLARE_ASN1_FUNCTIONS(ADMISSIONS)
DECLARE_ASN1_FUNCTIONS(ADMISSION_SYNTAX)
+/* clang-format off */
{-
generate_stack_macros("PROFESSION_INFO")
.generate_stack_macros("ADMISSIONS");
-}
+/* clang-format on */
typedef STACK_OF(PROFESSION_INFO) PROFESSION_INFOS;
const ASN1_OBJECT *NAMING_AUTHORITY_get0_authorityId(
typedef STACK_OF(USERNOTICE) OSSL_USER_NOTICE_SYNTAX;
DECLARE_ASN1_FUNCTIONS(OSSL_USER_NOTICE_SYNTAX)
+/* clang-format off */
{-
generate_stack_macros("USERNOTICE");
-}
+/* clang-format on */
typedef struct OSSL_ROLE_SPEC_CERT_ID_st {
GENERAL_NAME *roleName;
DECLARE_ASN1_FUNCTIONS(OSSL_ROLE_SPEC_CERT_ID)
+/* clang-format off */
{-
generate_stack_macros("OSSL_ROLE_SPEC_CERT_ID");
-}
+/* clang-format on */
typedef STACK_OF(OSSL_ROLE_SPEC_CERT_ID) OSSL_ROLE_SPEC_CERT_ID_SYNTAX;
DECLARE_ASN1_FUNCTIONS(OSSL_TIME_SPEC)
DECLARE_ASN1_FUNCTIONS(OSSL_TIME_PERIOD)
+/* clang-format off */
{-
generate_stack_macros("OSSL_TIME_PERIOD");
-}
+/* clang-format on */
+/* clang-format off */
{-
generate_stack_macros("OSSL_DAY_TIME_BAND");
-}
+/* clang-format on */
/* Attribute Type and Value */
typedef struct atav_st {
DECLARE_ASN1_FUNCTIONS(OSSL_ATTRIBUTE_MAPPING)
DECLARE_ASN1_FUNCTIONS(OSSL_ATTRIBUTE_MAPPINGS)
+/* clang-format off */
{-
generate_stack_macros("OSSL_ATTRIBUTE_MAPPING");
-}
+/* clang-format on */
# define OSSL_AAA_ATTRIBUTE_TYPE 0
# define OSSL_AAA_ATTRIBUTE_VALUES 1
DECLARE_ASN1_FUNCTIONS(OSSL_ALLOWED_ATTRIBUTES_ITEM)
DECLARE_ASN1_FUNCTIONS(OSSL_ALLOWED_ATTRIBUTES_SYNTAX)
+/* clang-format off */
{-
generate_stack_macros("OSSL_ALLOWED_ATTRIBUTES_CHOICE");
-}
+/* clang-format on */
+/* clang-format off */
{-
generate_stack_macros("OSSL_ALLOWED_ATTRIBUTES_ITEM");
-}
+/* clang-format on */
typedef struct AA_DIST_POINT_st {
DIST_POINT_NAME *distpoint;
#include "prov/der_digests.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1',
'providers/common/der/DIGESTS.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_dsa.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/DSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_ec.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/EC.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_ecx.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/ECX.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_hkdf.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/HKDF.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_ml_dsa.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/ML_DSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_rsa.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1',
'providers/common/der/RSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_slh_dsa.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/SLH_DSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_sm2.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/SM2.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "prov/der_wrap.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/wrap.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_C });
-}
+/* clang-format on */
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1',
'providers/common/der/DIGESTS.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/DSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
/* Subject Public Key Info */
int ossl_DER_w_algorithmIdentifier_DSA(WPACKET *pkt, int tag, DSA *dsa);
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/EC.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
/* Subject Public Key Info */
int ossl_DER_w_algorithmIdentifier_EC(WPACKET *pkt, int cont, EC_KEY *ec);
#include "crypto/ecx.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/ECX.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
int ossl_DER_w_algorithmIdentifier_ED25519(WPACKET *pkt, int cont, ECX_KEY *ec);
int ossl_DER_w_algorithmIdentifier_ED448(WPACKET *pkt, int cont, ECX_KEY *ec);
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/HKDF.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
#include "crypto/ml_dsa.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/ML_DSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
int ossl_DER_w_algorithmIdentifier_ML_DSA(WPACKET *pkt, int tag, ML_DSA_KEY *key);
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1',
'providers/common/der/RSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
/* PSS parameters */
int ossl_DER_w_RSASSA_PSS_params(WPACKET *pkt, int tag,
#include "crypto/slh_dsa.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/SLH_DSA.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
int ossl_DER_w_algorithmIdentifier_SLH_DSA(WPACKET *pkt, int tag, SLH_DSA_KEY *key);
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/SM2.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
/* Subject Public Key Info */
int ossl_DER_w_algorithmIdentifier_SM2(WPACKET *pkt, int cont, EC_KEY *ec);
#include "internal/der.h"
/* Well known OIDs precompiled */
+/* clang-format off */
{-
$OUT = oids_to_c::process_leaves('providers/common/der/wrap.asn1',
{ dir => $config{sourcedir},
filter => \&oids_to_c::filter_to_H });
-}
+/* clang-format on */
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* RSA low level APIs are deprecated for public use, but still ok for
return dstctx;
}
+/* clang-format off */
{- produce_param_decoder('rsa_get_ctx_params',
(['OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST', 'oaep', 'utf8_string'],
['OSSL_ASYM_CIPHER_PARAM_PAD_MODE', 'pad', 'utf8_string'],
['OSSL_ASYM_CIPHER_PARAM_IMPLICIT_REJECTION', 'imrej', 'uint'],
['OSSL_ASYM_CIPHER_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int rsa_get_ctx_params(void *vprsactx, OSSL_PARAM *params)
{
return rsa_get_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('rsa_set_ctx_params',
(['OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST', 'oaep', 'utf8_string'],
['OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST_PROPS', 'oaep_pq', 'utf8_string'],
['OSSL_ASYM_CIPHER_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
['OSSL_ASYM_CIPHER_PARAM_FIPS_RSA_PKCS15_PAD_DISABLED', 'ind_pad', 'int', 'fips'],
)); -}
+/* clang-format on */
static int rsa_set_ctx_params(void *vprsactx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include "internal/deprecated.h"
return dstctx;
}
+/* clang-format off */
{- produce_param_decoder('sm2_get_ctx_params',
(['OSSL_ASYM_CIPHER_PARAM_DIGEST', 'digest', 'utf8_string'],
)); -}
+/* clang-format on */
static int sm2_get_ctx_params(void *vpsm2ctx, OSSL_PARAM *params)
{
return sm2_get_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('sm2_set_ctx_params',
(['OSSL_ASYM_CIPHER_PARAM_DIGEST', 'digest', 'utf8_string'],
['OSSL_ASYM_CIPHER_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_ASYM_CIPHER_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
)); -}
+/* clang-format on */
static int sm2_set_ctx_params(void *vpsm2ctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/* Dispatch functions for chacha20_poly1305 cipher */
CHACHA20_POLY1305_IVLEN * 8);
}
+/* clang-format off */
{- produce_param_decoder('chacha20_poly1305_get_ctx_params',
(['OSSL_CIPHER_PARAM_KEYLEN', 'keylen', 'size_t'],
['OSSL_CIPHER_PARAM_IVLEN', 'ivlen', 'size_t'],
['OSSL_CIPHER_PARAM_AEAD_TAG', 'tag', 'octet_string'],
['OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD', 'pad', 'size_t'],
)); -}
+/* clang-format on */
static int chacha20_poly1305_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
return chacha20_poly1305_get_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('chacha20_poly1305_set_ctx_params',
(['OSSL_CIPHER_PARAM_KEYLEN', 'keylen', 'size_t'],
['OSSL_CIPHER_PARAM_IVLEN', 'ivlen', 'size_t'],
['OSSL_CIPHER_PARAM_AEAD_TLS1_AAD', 'aad', 'octet_string'],
['OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED', 'fixed', 'octet_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *chacha20_poly1305_settable_ctx_params(
ossl_unused void *cctx, ossl_unused void *provctx
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* Generic dispatch table functions for ciphers.
/*-
* Generic cipher functions for OSSL_PARAM gettables and settables
*/
+/* clang-format off */
{- produce_param_decoder('ossl_cipher_generic_get_params',
(['OSSL_CIPHER_PARAM_MODE', 'mode', 'uint'],
['OSSL_CIPHER_PARAM_KEYLEN', 'keylen', 'size_t'],
['OSSL_CIPHER_PARAM_HAS_RAND_KEY', 'rand', 'int' ],
['OSSL_CIPHER_PARAM_ENCRYPT_THEN_MAC', 'etm', 'int' ],
)); -}
+/* clang-format on */
const OSSL_PARAM *ossl_cipher_generic_gettable_params(ossl_unused void *provctx)
{
#define cipher_generic_get_ctx_params_st ossl_cipher_get_ctx_param_list_st
+/* clang-format off */
{- produce_param_decoder('cipher_generic_get_ctx_params',
(['OSSL_CIPHER_PARAM_KEYLEN', 'keylen', 'size_t'],
['OSSL_CIPHER_PARAM_IVLEN', 'ivlen', 'size_t'],
['OSSL_CIPHER_PARAM_UPDATED_IV', 'updiv', 'octet_string' ],
['OSSL_CIPHER_PARAM_TLS_MAC', 'tlsmac', 'octet_string' ],
)); -}
+/* clang-format on */
const OSSL_PARAM *ossl_cipher_generic_gettable_ctx_params
(ossl_unused void *cctx, ossl_unused void *provctx)
#define cipher_generic_set_ctx_params_st ossl_cipher_set_ctx_param_list_st
+/* clang-format off */
{- produce_param_decoder('cipher_generic_set_ctx_params',
(['OSSL_CIPHER_PARAM_PADDING', 'pad', 'uint'],
['OSSL_CIPHER_PARAM_NUM', 'num', 'uint'],
['OSSL_CIPHER_PARAM_TLS_VERSION', 'tlsvers', 'uint'],
['OSSL_CIPHER_PARAM_TLS_MAC_SIZE', 'tlsmacsize', 'size_t'],
)); -}
+/* clang-format on */
const OSSL_PARAM *ossl_cipher_generic_settable_ctx_params
(ossl_unused void *cctx, ossl_unused void *provctx)
*/
#define cipher_var_keylen_set_ctx_params_st ossl_cipher_set_ctx_param_list_st
+/* clang-format off */
{- produce_param_decoder('cipher_var_keylen_set_ctx_params',
(['OSSL_CIPHER_PARAM_PADDING', 'pad', 'uint'],
['OSSL_CIPHER_PARAM_NUM', 'num', 'uint'],
['OSSL_CIPHER_PARAM_TLS_MAC_SIZE', 'tlsmacsize', 'size_t'],
['OSSL_CIPHER_PARAM_KEYLEN', 'keylen', 'size_t'],
)); -}
+/* clang-format on */
const OSSL_PARAM *ossl_cipher_var_keylen_settable_ctx_params
(ossl_unused void *cctx, ossl_unused void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/* Dispatch functions for ccm mode */
return 15 - ctx->l;
}
+/* clang-format off */
{- produce_param_decoder('ossl_cipher_ccm_set_ctx_params',
(['OSSL_CIPHER_PARAM_AEAD_IVLEN', 'ivlen', 'size_t'],
['OSSL_CIPHER_PARAM_AEAD_TAG', 'tag', 'octet_string'],
['OSSL_CIPHER_PARAM_AEAD_TLS1_AAD', 'aad', 'octet_string'],
['OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED', 'fixed', 'octet_string'],
)); -}
+/* clang-format on */
const OSSL_PARAM *ossl_ccm_settable_ctx_params(
ossl_unused void *cctx, ossl_unused void *provctx
return 1;
}
+/* clang-format off */
{- produce_param_decoder('ossl_cipher_ccm_get_ctx_params',
(['OSSL_CIPHER_PARAM_KEYLEN', 'keylen', 'size_t'],
['OSSL_CIPHER_PARAM_IVLEN', 'ivlen', 'size_t'],
['OSSL_CIPHER_PARAM_AEAD_TAG', 'tag', 'octet_string'],
['OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD', 'pad', 'size_t'],
)); -}
+/* clang-format on */
const OSSL_PARAM *ossl_ccm_gettable_ctx_params(
ossl_unused void *cctx, ossl_unused void *provctx
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/* Dispatch functions for gcm mode */
return 1;
}
+/* clang-format off */
{- produce_param_decoder('ossl_cipher_gcm_get_ctx_params',
(['OSSL_CIPHER_PARAM_KEYLEN', 'keylen', 'size_t'],
['OSSL_CIPHER_PARAM_IVLEN', 'ivlen', 'size_t'],
['OSSL_CIPHER_PARAM_AEAD_TLS1_GET_IV_GEN', 'ivgen', 'octet_string'],
['OSSL_CIPHER_PARAM_AEAD_IV_GENERATED', 'gen', 'uint'],
)); -}
+/* clang-format on */
const OSSL_PARAM *ossl_gcm_gettable_ctx_params(
ossl_unused void *cctx, ossl_unused void *provctx
return 1;
}
+/* clang-format off */
{- produce_param_decoder
('ossl_cipher_gcm_set_ctx_params',
(['OSSL_CIPHER_PARAM_AEAD_IVLEN', 'ivlen', 'size_t'],
['OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED', 'fixed', 'octet_string'],
['OSSL_CIPHER_PARAM_AEAD_TLS1_SET_IV_INV', 'inviv', 'octet_string'],
)); -}
+/* clang-format on */
const OSSL_PARAM *ossl_gcm_settable_ctx_params(
ossl_unused void *cctx, ossl_unused void *provctx
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <string.h>
#include <openssl/crypto.h>
static OSSL_FUNC_digest_gettable_ctx_params_fn blake_gettable_ctx_params;
static OSSL_FUNC_digest_settable_ctx_params_fn blake_settable_ctx_params;
+/* clang-format off */
{- produce_param_decoder('blake_get_ctx_params',
(['OSSL_DIGEST_PARAM_SIZE', 'size', 'uint'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *blake_gettable_ctx_params(ossl_unused void *ctx,
ossl_unused void *pctx)
return blake_get_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('blake_set_ctx_params',
(['OSSL_DIGEST_PARAM_SIZE', 'size', 'uint'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *blake_settable_ctx_params(ossl_unused void *ctx,
ossl_unused void *pctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <string.h>
#include <openssl/err.h>
#include "prov/digestcommon.h"
#include "internal/common.h"
+/* clang-format off */
{- produce_param_decoder('digest_default_get_params',
(['OSSL_DIGEST_PARAM_BLOCK_SIZE', 'bsize', 'size_t'],
['OSSL_DIGEST_PARAM_SIZE', 'size', 'size_t'],
['OSSL_DIGEST_PARAM_XOF', 'xof', 'int'],
['OSSL_DIGEST_PARAM_ALGID_ABSENT', 'aldid', 'int'],
)); -}
+/* clang-format on */
int ossl_digest_default_get_params(OSSL_PARAM params[], size_t blksz,
size_t paramsz, unsigned long flags)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <string.h>
#include <openssl/core_names.h>
return ret;
}
+/* clang-format off */
{- produce_param_decoder('shake_get_ctx_params',
(['OSSL_DIGEST_PARAM_XOFLEN', 'xoflen', 'size_t'],
['OSSL_DIGEST_PARAM_SIZE', 'size', 'size_t'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *shake_gettable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
return 1;
}
+/* clang-format off */
{- produce_param_decoder('shake_set_ctx_params',
(['OSSL_DIGEST_PARAM_XOFLEN', 'xoflen', 'size_t'],
['OSSL_DIGEST_PARAM_SIZE', 'xoflen', 'size_t'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *shake_settable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* low level APIs are deprecated for public use, but still ok for
return ctx;
}
+/* clang-format off */
{- produce_param_decoder('der2key_set_ctx_params',
(['OSSL_DECODER_PARAM_PROPERTIES', 'propq', 'utf8_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *der2key_settable_ctx_params(ossl_unused void *provctx)
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <openssl/core.h>
#include <openssl/core_dispatch.h>
OPENSSL_free(ctx);
}
+/* clang-format off */
{- produce_param_decoder('epki2pki_set_ctx_params',
(['OSSL_DECODER_PARAM_PROPERTIES', 'propq', 'utf8_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *epki2pki_settable_ctx_params(ossl_unused void *provctx)
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* RSA low level APIs are deprecated for public use, but still ok for
OPENSSL_free(ctx);
}
+/* clang-format off */
{- produce_param_decoder('pem2der_set_ctx_params',
(['OSSL_DECODER_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_OBJECT_PARAM_DATA_STRUCTURE', 'ds', 'utf8_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *pem2der_settable_ctx_params(ossl_unused void *provctx)
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* low level APIs are deprecated for public use, but still ok for
OPENSSL_free(ctx);
}
+/* clang-format off */
{- produce_param_decoder('pvk2key_set_ctx_params',
(['OSSL_DECODER_PARAM_PROPERTIES', 'propq', 'utf8_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *pvk2key_settable_ctx_params(ossl_unused void *provctx)
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <string.h>
#include <openssl/asn1t.h>
OPENSSL_free(ctx);
}
+/* clang-format off */
{- produce_param_decoder('spki2typespki_set_ctx_params',
(['OSSL_DECODER_PARAM_PROPERTIES', 'propq', 'utf8_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *spki2typespki_settable_ctx_params(ossl_unused void *provctx)
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* Low level APIs are deprecated for public use, but still ok for internal use.
OPENSSL_free(ctx);
}
+/* clang-format off */
{- produce_param_decoder('key2any_set_ctx_params',
(['OSSL_ENCODER_PARAM_CIPHER', 'cipher', 'utf8_string'],
['OSSL_ENCODER_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_ENCODER_PARAM_SAVE_PARAMETERS', 'svprm', 'int'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *key2any_settable_ctx_params(ossl_unused void *provctx)
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* Low level APIs are deprecated for public use, but still ok for internal use.
OPENSSL_free(ctx);
}
+/* clang-format off */
{- produce_param_decoder('key2pvk_set_ctx_params',
(['OSSL_ENCODER_PARAM_ENCRYPT_LEVEL', 'enclvl', 'int'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *key2pvk_settable_ctx_params(ossl_unused void *provctx)
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* DH low level APIs are deprecated for public use, but still ok for
return NULL;
}
+/* clang-format off */
{- produce_param_decoder('dh_set_ctx_params',
(['OSSL_EXCHANGE_PARAM_PAD', 'pad', 'int'],
['OSSL_EXCHANGE_PARAM_KDF_TYPE', 'kdf', 'utf8_string'],
['OSSL_EXCHANGE_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
['OSSL_EXCHANGE_PARAM_FIPS_DIGEST_CHECK', 'ind_d', 'int', 'fips'],
)); -}
+/* clang-format on */
static int dh_set_ctx_params(void *vpdhctx, const OSSL_PARAM params[])
{
return dh_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('dh_get_ctx_params',
(['OSSL_EXCHANGE_PARAM_KDF_TYPE', 'kdf', 'utf8_string'],
['OSSL_EXCHANGE_PARAM_KDF_DIGEST', 'digest', 'utf8_string'],
['OSSL_KDF_PARAM_CEK_ALG', 'cekalg', 'utf8_string'],
['OSSL_ALG_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *dh_gettable_ctx_params(ossl_unused void *vpdhctx,
ossl_unused void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* ECDH low level APIs are deprecated for public use, but still ok for
return NULL;
}
+/* clang-format off */
{- produce_param_decoder('ecdh_set_ctx_params',
(['OSSL_EXCHANGE_PARAM_EC_ECDH_COFACTOR_MODE', 'mode', 'int'],
['OSSL_EXCHANGE_PARAM_KDF_TYPE', 'kdf', 'utf8_string'],
['OSSL_EXCHANGE_PARAM_FIPS_DIGEST_CHECK', 'ind_d', 'int', 'fips'],
['OSSL_EXCHANGE_PARAM_FIPS_ECDH_COFACTOR_CHECK', 'ind_cofac', 'int', 'fips'],
)); -}
+/* clang-format on */
static
int ecdh_set_ctx_params(void *vpecdhctx, const OSSL_PARAM params[])
return ecdh_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('ecdh_get_ctx_params',
(['OSSL_EXCHANGE_PARAM_EC_ECDH_COFACTOR_MODE', 'mode', 'int'],
['OSSL_EXCHANGE_PARAM_KDF_TYPE', 'kdf', 'utf8_string'],
['OSSL_EXCHANGE_PARAM_KDF_UKM', 'ukm', 'octet_ptr'],
['OSSL_ALG_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static
int ecdh_get_ctx_params(void *vpecdhctx, OSSL_PARAM params[])
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <openssl/crypto.h>
#include <openssl/core_dispatch.h>
}
#ifdef FIPS_MODULE
+/* clang-format off */
{- produce_param_decoder('ecx_get_ctx_params',
(['OSSL_ALG_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
#endif
static const OSSL_PARAM *ecx_gettable_ctx_params(ossl_unused void *vctx,
* RFC 9106 Argon2 (see https://www.rfc-editor.org/rfc/rfc9106.txt)
*
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <stdlib.h>
#include <stddef.h>
return 1;
}
+/* clang-format off */
{- produce_param_decoder('argon2_set_ctx_params',
(['OSSL_KDF_PARAM_PASSWORD', 'pw', 'octet_string'],
['OSSL_KDF_PARAM_SALT', 'salt', 'octet_string'],
['OSSL_KDF_PARAM_ARGON2_VERSION', 'vers', 'uint32'],
['OSSL_KDF_PARAM_PROPERTIES', 'propq', 'utf8_string'],
)); -}
+/* clang-format on */
static int argon2_set_ctx_params(KDF_ARGON2 *ctx, const OSSL_PARAM params[],
OSSL_PARAM **size_param_ptr)
return argon2_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('argon2_get_ctx_params',
(['OSSL_KDF_PARAM_SIZE', 'size', 'size_t'],
)); -}
+/* clang-format on */
static int kdf_argon2_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* HMAC low level APIs are deprecated for public use, but still ok for internal
#define hkdf_set_ctx_params_st hkdf_all_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('hkdf_set_ctx_params',
(['OSSL_KDF_PARAM_MODE', 'mode', 'utf8_string'],
['OSSL_KDF_PARAM_MODE', 'mode', 'int'],
['OSSL_KDF_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
['OSSL_KDF_PARAM_INFO', 'info', 'octet_string', HKDF_MAX_INFOS],
)); -}
+/* clang-format on */
static int kdf_hkdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return hkdf_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('hkdf_get_ctx_params',
(['OSSL_KDF_PARAM_SIZE', 'size', 'size_t'],
['OSSL_KDF_PARAM_DIGEST', 'digest', 'utf8_string'],
['OSSL_KDF_PARAM_INFO', 'info', 'octet_string'],
['OSSL_KDF_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *hkdf_gettable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
#define hkdf_fixed_digest_set_ctx_params_st hkdf_all_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('hkdf_fixed_digest_set_ctx_params',
(['OSSL_KDF_PARAM_MODE', 'mode', 'utf8_string'],
['OSSL_KDF_PARAM_MODE', 'mode', 'int'],
['OSSL_KDF_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
['OSSL_KDF_PARAM_INFO', 'info', 'octet_string', HKDF_MAX_INFOS],
)); -}
+/* clang-format on */
static int kdf_hkdf_fixed_digest_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
#define kdf_tls1_3_set_ctx_params_st hkdf_all_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('kdf_tls1_3_set_ctx_params',
(['OSSL_KDF_PARAM_MODE', 'mode', 'utf8_string'],
['OSSL_KDF_PARAM_MODE', 'mode', 'int'],
['OSSL_KDF_PARAM_LABEL', 'label', 'octet_string'],
['OSSL_KDF_PARAM_DATA', 'data', 'octet_string'],
)); -}
+/* clang-format on */
static int kdf_tls1_3_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <stdlib.h>
#include <string.h>
return ossl_drbg_hmac_generate(drbg, out, outlen, NULL, 0);
}
+/* clang-format off */
{- produce_param_decoder('hmac_drbg_kdf_get_ctx_params',
(['OSSL_KDF_PARAM_MAC', 'mac', 'utf8_string'],
['OSSL_KDF_PARAM_DIGEST', 'digest', 'utf8_string'],
)); -}
+/* clang-format on */
static int hmac_drbg_kdf_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
return hmac_drbg_kdf_get_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('hmac_drbg_kdf_set_ctx_params',
(['OSSL_KDF_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_KDF_PARAM_HMACDRBG_ENTROPY', 'ent', 'octet_string'],
['OSSL_KDF_PARAM_HMACDRBG_NONCE', 'nonce', 'octet_string'],
)); -}
+/* clang-format on */
static int hmac_drbg_kdf_set_ctx_params(void *vctx,
const OSSL_PARAM params[])
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* This implements https://csrc.nist.gov/publications/detail/sp/800-108/final
return ret;
}
+/* clang-format off */
{- produce_param_decoder('kbkdf_set_ctx_params',
(['OSSL_KDF_PARAM_INFO', 'info', 'octet_string', KBKDF_MAX_INFOS],
['OSSL_KDF_PARAM_SALT', 'salt', 'octet_string'],
['OSSL_KDF_PARAM_KBKDF_R', 'r', 'int'],
['OSSL_KDF_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
)); -}
+/* clang-format on */
static int kbkdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return kbkdf_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('kbkdf_get_ctx_params',
(['OSSL_KDF_PARAM_SIZE', 'size', 'size_t'],
['OSSL_KDF_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int kbkdf_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* DES low level APIs are deprecated for public use, but still ok for internal
key, keylen);
}
+/* clang-format off */
{- produce_param_decoder('krb5kdf_set_ctx_params',
(['OSSL_KDF_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_KDF_PARAM_KEY', 'key', 'octet_string'],
['OSSL_KDF_PARAM_CONSTANT', 'cnst', 'octet_string'],
)); -}
+/* clang-format on */
static int krb5kdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return krb5kdf_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('krb5kdf_get_ctx_params',
(['OSSL_KDF_PARAM_SIZE', 'size', 'size_t'],
)); -}
+/* clang-format on */
static int krb5kdf_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <openssl/trace.h>
#include <stdlib.h>
ctx->iter, md, key, keylen);
}
+/* clang-format off */
{- produce_param_decoder('pbkdf1_set_ctx_params',
(['OSSL_KDF_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_KDF_PARAM_SALT', 'salt', 'octet_string'],
['OSSL_KDF_PARAM_ITER', 'iter', 'uint64'],
)); -}
+/* clang-format on */
static int kdf_pbkdf1_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return pbkdf1_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('pbkdf1_get_ctx_params',
(['OSSL_KDF_PARAM_SIZE', 'size', 'size_t'],
)); -}
+/* clang-format on */
static int kdf_pbkdf1_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* HMAC low level APIs are deprecated for public use, but still ok for internal
md, key, keylen, ctx->lower_bound_checks);
}
+/* clang-format off */
{- produce_param_decoder('pbkdf2_set_ctx_params',
(['OSSL_KDF_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_KDF_PARAM_ITER', 'iter', 'uint64'],
['OSSL_KDF_PARAM_PKCS5', 'pkcs5', 'int'],
)); -}
+/* clang-format on */
static int kdf_pbkdf2_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return pbkdf2_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('pbkdf2_get_ctx_params',
(['OSSL_KDF_PARAM_SIZE', 'size', 'size_t'],
['OSSL_KDF_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int kdf_pbkdf2_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <openssl/trace.h>
#include <stdlib.h>
ctx->id, ctx->iter, md, key, keylen);
}
+/* clang-format off */
{- produce_param_decoder('pkcs12_set_ctx_params',
(['OSSL_KDF_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_KDF_PARAM_ITER', 'iter', 'uint64'],
['OSSL_KDF_PARAM_PKCS12_ID', 'p12id', 'int'],
)); -}
+/* clang-format on */
static int kdf_pkcs12_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return pkcs12_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('pkcs12_get_ctx_params',
(['OSSL_KDF_PARAM_SIZE', 'size', 'size_t'],
)); -}
+/* clang-format on */
static int kdf_pkcs12_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <string.h>
#include <openssl/evp.h>
return res;
}
+/* clang-format off */
{- produce_param_decoder('pvk_set_ctx_params',
(['OSSL_KDF_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_KDF_PARAM_PASSWORD', 'pass', 'octet_string'],
['OSSL_KDF_PARAM_SALT', 'salt', 'octet_string'],
)); -}
+/* clang-format on */
static int kdf_pvk_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return pvk_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('pvk_get_ctx_params',
(['OSSL_KDF_PARAM_SIZE', 'size', 'size_t'],
)); -}
+/* clang-format on */
static int kdf_pvk_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <stdlib.h>
#include <stdarg.h>
return (value != 0) && ((value & (value - 1)) == 0);
}
+/* clang-format off */
{- produce_param_decoder('scrypt_set_ctx_params',
(['OSSL_KDF_PARAM_PASSWORD', 'pw', 'octet_string'],
['OSSL_KDF_PARAM_SALT', 'salt', 'octet_string'],
['OSSL_KDF_PARAM_SCRYPT_MAXMEM', 'maxmem', 'uint64'],
['OSSL_KDF_PARAM_PROPERTIES', 'propq', 'utf8_string'],
)); -}
+/* clang-format on */
static int kdf_scrypt_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return scrypt_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('scrypt_get_ctx_params',
(['OSSL_KDF_PARAM_SIZE', 'size', 'size_t'],
)); -}
+/* clang-format on */
static int kdf_scrypt_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <stdlib.h>
#include <stdarg.h>
ctx->type, key, keylen);
}
+/* clang-format off */
{- produce_param_decoder('sshkdf_set_ctx_params',
(['OSSL_KDF_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_KDF_PARAM_FIPS_DIGEST_CHECK', 'ind_d', 'int', 'fips'],
['OSSL_KDF_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
)); -}
+/* clang-format on */
static int kdf_sshkdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return sshkdf_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('sshkdf_get_ctx_params',
(['OSSL_KDF_PARAM_SIZE', 'size', 'size_t'],
['OSSL_KDF_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int kdf_sshkdf_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* Refer to https://csrc.nist.gov/publications/detail/sp/800-56c/rev-1/final
#define sskdf_set_ctx_params_st sskdf_all_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('sskdf_set_ctx_params',
(['OSSL_KDF_PARAM_SECRET', 'secret', 'octet_string'],
['OSSL_KDF_PARAM_KEY', 'secret', 'octet_string'],
['OSSL_KDF_PARAM_MAC_SIZE', 'size', 'size_t'],
['OSSL_KDF_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
)); -}
+/* clang-format on */
static int sskdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return sskdf_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('sskdf_get_ctx_params',
(['OSSL_KDF_PARAM_SIZE', 'size', 'size_t'],
['OSSL_KDF_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int sskdf_common_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
#define x963kdf_set_ctx_params_st sskdf_all_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('x963kdf_set_ctx_params',
(['OSSL_KDF_PARAM_SECRET', 'secret', 'octet_string'],
['OSSL_KDF_PARAM_KEY', 'secret', 'octet_string'],
['OSSL_KDF_PARAM_FIPS_DIGEST_CHECK', 'ind_d', 'int', 'fips'],
['OSSL_KDF_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
)); -}
+/* clang-format on */
static int x963kdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* Refer to "The TLS Protocol Version 1.0" Section 5
key, keylen);
}
+/* clang-format off */
{- produce_param_decoder('tls1prf_set_ctx_params',
(['OSSL_KDF_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_KDF_PARAM_FIPS_DIGEST_CHECK', 'ind_d', 'int', 'fips'],
['OSSL_KDF_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
)); -}
+/* clang-format on */
static int kdf_tls1_prf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return tls1prf_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('tls1prf_get_ctx_params',
(['OSSL_KDF_PARAM_SIZE', 'size', 'size_t'],
['OSSL_KDF_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int kdf_tls1_prf_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include "internal/e_os.h"
#include <openssl/core_names.h>
return ret;
}
+/* clang-format off */
{- produce_param_decoder('sshkdf_set_ctx_params',
(['OSSL_KDF_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_KDF_PARAM_CEK_ALG', 'cekalg', 'utf8_string'],
['OSSL_KDF_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
)); -}
+/* clang-format on */
static int x942kdf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return sshkdf_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('sshkdf_get_ctx_params',
(['OSSL_KDF_PARAM_SIZE', 'size', 'size_t'],
['OSSL_KDF_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int x942kdf_get_ctx_params(void *vctx, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* The following implementation is part of RFC 9180 related to DHKEM using
}
+/* clang-format off */
{- produce_param_decoder('eckem_set_ctx_params',
(['OSSL_KEM_PARAM_OPERATION', 'op', 'utf8_string'],
['OSSL_KEM_PARAM_IKME', 'ikme', 'octet_string'],
)); -}
+/* clang-format on */
static int eckem_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* The following implementation is part of RFC 9180 related to DHKEM using
return ecxkem_init(vctx, EVP_PKEY_OP_DECAPSULATE, vecx, vauthpub, params);
}
+/* clang-format off */
{- produce_param_decoder('ecxkem_set_ctx_params',
(['OSSL_KEM_PARAM_OPERATION', 'op', 'utf8_string'],
['OSSL_KEM_PARAM_IKME', 'ikme', 'octet_string'],
)); -}
+/* clang-format on */
static int ecxkem_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <string.h>
#include <openssl/crypto.h>
return ml_kem_init(vctx, EVP_PKEY_OP_DECAPSULATE, key, params);
}
+/* clang-format off */
{- produce_param_decoder('ml_kem_set_ctx_params',
(['OSSL_KEM_PARAM_IKME', 'ikme', 'octet_string'],
)); -}
+/* clang-format on */
static int ml_kem_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* RSA low level APIs are deprecated for public use, but still ok for
"RSA Decapsulate Init");
}
+/* clang-format off */
{- produce_param_decoder('rsakem_get_ctx_params',
(['OSSL_KEM_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int rsakem_get_ctx_params(void *vprsactx, OSSL_PARAM *params)
{
return rsakem_get_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('rsakem_set_ctx_params',
(['OSSL_KEM_PARAM_OPERATION', 'op', 'utf8_string'],
['OSSL_KEM_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
)); -}
+/* clang-format on */
static int rsakem_set_ctx_params(void *vprsactx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <assert.h>
#include <string.h>
return ok;
}
+/* clang-format off */
{- produce_param_decoder('ecx_imexport_types',
(['OSSL_PKEY_PARAM_PUB_KEY', 'pub', 'octet_string'],
['OSSL_PKEY_PARAM_PRIV_KEY', 'priv', 'octet_string'],
)); -}
+/* clang-format on */
static int ecx_import(void *keydata, int selection, const OSSL_PARAM params[])
{
#define ecx_get_params_st ecx_ed_common_get_params_st
+/* clang-format off */
{- produce_param_decoder('ecx_get_params',
(['OSSL_PKEY_PARAM_BITS', 'bits', 'int'],
['OSSL_PKEY_PARAM_SECURITY_BITS', 'secbits', 'int'],
['OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY', 'encpub', 'octet_string'],
['OSSL_PKEY_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
#define ed_get_params_st ecx_ed_common_get_params_st
+/* clang-format off */
{- produce_param_decoder('ed_get_params',
(['OSSL_PKEY_PARAM_BITS', 'bits', 'int'],
['OSSL_PKEY_PARAM_SECURITY_BITS', 'secbits', 'int'],
['OSSL_PKEY_PARAM_PRIV_KEY', 'priv', 'octet_string'],
['OSSL_PKEY_PARAM_MANDATORY_DIGEST', 'digest', 'utf8_string'],
)); -}
+/* clang-format on */
/* This getter is shared by ED25519, ED448, X25519 and X448 */
static int ecx_ed_common_get_params(void *key,
return 1;
}
+/* clang-format off */
{- produce_param_decoder('ecx_set_params',
(['OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY', 'pub', 'octet_string'],
['OSSL_PKEY_PARAM_PROPERTIES', 'propq', 'utf8_string'],
)); -}
+/* clang-format on */
static int ecx_set_params(void *key, const OSSL_PARAM params[])
{
return ecx_gen_init(provctx, selection, params, ECX_KEY_TYPE_ED448, NULL);
}
+/* clang-format off */
{- produce_param_decoder('ecx_gen_set_params',
(['OSSL_PKEY_PARAM_GROUP_NAME', 'group', 'utf8_string'],
['OSSL_KDF_PARAM_PROPERTIES', 'kdfpropq', 'utf8_string'],
['OSSL_PKEY_PARAM_DHKEM_IKM', 'ikm', 'octet_string'],
)); -}
+/* clang-format on */
static int ecx_gen_set_params(void *genctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <openssl/core_dispatch.h>
#include <openssl/core_names.h>
return ossl_lms_key_equal(key1, key2, selection);
}
+/* clang-format off */
{- produce_param_decoder('lms_import',
(['OSSL_PKEY_PARAM_PUB_KEY', 'pub', 'octet_string'],
)); -}
+/* clang-format on */
static int lms_import(void *keydata, int selection, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <openssl/core_dispatch.h>
#include <openssl/core_names.h>
return 1;
}
+/* clang-format off */
{- produce_param_decoder('ml_dsa_key_type_params',
(['OSSL_PKEY_PARAM_ML_DSA_SEED', 'seed', 'octet_string'],
['OSSL_PKEY_PARAM_PUB_KEY', 'pubkey', 'octet_string'],
['OSSL_PKEY_PARAM_PRIV_KEY', 'privkey', 'octet_string'],
)); -}
+/* clang-format on */
/**
* @brief Load a ML_DSA key from raw data.
return ml_dsa_key_type_params_list;
}
+/* clang-format off */
{- produce_param_decoder('ml_dsa_get_params',
(['OSSL_PKEY_PARAM_BITS', 'bits', 'int'],
['OSSL_PKEY_PARAM_SECURITY_BITS', 'secbits', 'int'],
['OSSL_PKEY_PARAM_PUB_KEY', 'pubkey', 'octet_string'],
['OSSL_PKEY_PARAM_PRIV_KEY', 'privkey', 'octet_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *ml_dsa_gettable_params(void *provctx)
{
return NULL;
}
+/* clang-format off */
{- produce_param_decoder('ml_dsa_gen_set_params',
(['OSSL_PKEY_PARAM_ML_DSA_SEED', 'seed', 'octet_string'],
['OSSL_PKEY_PARAM_PROPERTIES', 'propq', 'utf8_string'],
)); -}
+/* clang-format on */
static int ml_dsa_gen_set_params(void *genctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <openssl/core_dispatch.h>
#include <openssl/core_names.h>
return ret;
}
+/* clang-format off */
{- produce_param_decoder('ml_kem_key_type_params',
(['OSSL_PKEY_PARAM_ML_KEM_SEED', 'seed', 'octet_string'],
['OSSL_PKEY_PARAM_PRIV_KEY', 'privkey', 'octet_string'],
['OSSL_PKEY_PARAM_PUB_KEY', 'pubkey', 'octet_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *ml_kem_imexport_types(int selection)
{
return res;
}
+/* clang-format off */
{- produce_param_decoder('ml_kem_get_params',
(['OSSL_PKEY_PARAM_BITS', 'bits', 'int'],
['OSSL_PKEY_PARAM_SECURITY_BITS', 'secbits', 'int'],
['OSSL_PKEY_PARAM_CMS_RI_TYPE', 'ri_type', 'int'],
['OSSL_PKEY_PARAM_CMS_KEMRI_KDF_ALGORITHM', 'kemri_kdf_alg', 'octet_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *ml_kem_gettable_params(void *provctx)
{
return 1;
}
+/* clang-format off */
{- produce_param_decoder('ml_kem_set_params',
(['OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY', 'pub', 'octet_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *ml_kem_settable_params(void *provctx)
{
return ossl_ml_kem_parse_public_key(pubenc, publen, key);
}
+/* clang-format off */
{- produce_param_decoder('ml_kem_gen_set_params',
(['OSSL_PKEY_PARAM_ML_DSA_SEED', 'seed', 'octet_string'],
['OSSL_PKEY_PARAM_PROPERTIES', 'propq', 'utf8_string'],
)); -}
+/* clang-format on */
static int ml_kem_gen_set_params(void *vgctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <openssl/core_dispatch.h>
#include <openssl/core_names.h>
&& EVP_PKEY_eq(key1->xkey, key2->xkey);
}
+/* clang-format off */
{- produce_param_decoder('ml_kem_import_export',
(['OSSL_PKEY_PARAM_PRIV_KEY', 'privkey', 'octet_string'],
['OSSL_PKEY_PARAM_PUB_KEY', 'pubkey', 'octet_string'],
)); -}
+/* clang-format on */
typedef struct export_cb_arg_st {
const char *algorithm_name;
return mlx_kem_key_fromdata(key, params, include_private);
}
+/* clang-format off */
{- produce_param_decoder('mlx_get_params',
(['OSSL_PKEY_PARAM_BITS', 'bits', 'int'],
['OSSL_PKEY_PARAM_SECURITY_BITS', 'secbits', 'int'],
['OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY', 'pub', 'octet_string'],
['OSSL_PKEY_PARAM_PRIV_KEY', 'priv', 'octet_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *mlx_kem_gettable_params(void *provctx)
{
return 1;
}
+/* clang-format off */
{- produce_param_decoder('mlx_set_params',
(['OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY', 'pub', 'octet_string'],
['OSSL_PKEY_PARAM_PROPERTIES', 'propq', 'utf8_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *mlx_kem_settable_params(void *provctx)
{
return load_keys(key, pubenc, publen, NULL, 0);
}
+/* clang-format off */
{- produce_param_decoder('mlx_gen_set_params',
(['OSSL_PKEY_PARAM_PROPERTIES', 'propq', 'utf8_string'],
)); -}
+/* clang-format on */
static int mlx_kem_gen_set_params(void *vgctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <openssl/core_dispatch.h>
#include <openssl/core_names.h>
return 1;
}
+/* clang-format off */
{- produce_param_decoder('slh_dsa_import',
(['OSSL_PKEY_PARAM_PUB_KEY', 'pub', 'octet_string'],
['OSSL_PKEY_PARAM_PRIV_KEY', 'priv', 'octet_string'],
)); -}
+/* clang-format on */
static int slh_dsa_import(void *keydata, int selection, const OSSL_PARAM params[])
{
return slh_dsa_import_list;
}
+/* clang-format off */
{- produce_param_decoder('slh_dsa_get_params',
(['OSSL_PKEY_PARAM_BITS', 'bits', 'int'],
['OSSL_PKEY_PARAM_SECURITY_BITS', 'secbits', 'int'],
['OSSL_PKEY_PARAM_PUB_KEY', 'pub', 'octet_string'],
['OSSL_PKEY_PARAM_PRIV_KEY', 'priv', 'octet_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *slh_dsa_gettable_params(void *provctx)
{
return NULL;
}
+/* clang-format off */
{- produce_param_decoder('slh_dsa_gen_set_params',
(['OSSL_PKEY_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_PKEY_PARAM_SLH_DSA_SEED', 'seed', 'octet_string'],
)); -}
+/* clang-format on */
static int slh_dsa_gen_set_params(void *genctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <openssl/core_dispatch.h>
#include <openssl/core_names.h>
return ret;
}
+/* clang-format off */
{- produce_param_decoder('template_key_types',
(['OSSL_PKEY_PARAM_PUB_KEY', 'pub_key', 'octet_string'],
['OSSL_PKEY_PARAM_PRIV_KEY', 'priv_key', 'octet_string'],
)); -}
+/* clang-format on */
static int ossl_template_key_fromdata(void *key,
const OSSL_PARAM params[],
return NULL;
}
+/* clang-format off */
{- produce_param_decoder('template_get_params',
(['OSSL_PKEY_PARAM_BITS', 'bits', 'int'],
['OSSL_PKEY_PARAM_SECURITY_BITS', 'secbits', 'int'],
['OSSL_PKEY_PARAM_SECURITY_CATEGORY', 'seccat', 'int'],
['OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY', 'encpub', 'octet_string'],
)); -}
+/* clang-format on */
static int template_get_params(void *key, OSSL_PARAM params[])
{
return template_get_params_list;
}
+/* clang-format off */
{- produce_param_decoder('template_set_params',
(['OSSL_PKEY_PARAM_ENCODED_PUBLIC_KEY', 'pub', 'octet_string'],
)); -}
+/* clang-format on */
static int template_set_params(void *key, const OSSL_PARAM params[])
{
return template_set_params_list;
}
+/* clang-format off */
{- produce_param_decoder('template_gen_set_params',
(['OSSL_PKEY_PARAM_GROUP_NAME', 'name', 'utf8_string'],
)); -}
+/* clang-format on */
static int template_gen_set_params(void *genctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* CMAC low level APIs are deprecated for public use, but still ok for internal
return CMAC_Final(macctx->ctx, out, outl);
}
+/* clang-format off */
{- produce_param_decoder('cmac_get_ctx_params',
(['OSSL_MAC_PARAM_SIZE', 'size', 'size_t'],
['OSSL_MAC_PARAM_BLOCK_SIZE', 'bsize', 'size_t'],
['OSSL_ALG_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *cmac_gettable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
return 1;
}
+/* clang-format off */
{- produce_param_decoder('cmac_set_ctx_params',
(['OSSL_MAC_PARAM_CIPHER', 'cipher', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_MAC_PARAM_KEY', 'key', 'octet_string'],
['OSSL_CIPHER_PARAM_FIPS_ENCRYPT_CHECK', 'ind_ec', 'int', 'fips'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *cmac_settable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <stdlib.h>
#include <string.h>
return 1;
}
+/* clang-format off */
{- produce_param_decoder('gmac_get_params',
(['OSSL_MAC_PARAM_SIZE', 'size', 'size_t'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *gmac_gettable_params(void *provctx)
{
return 1;
}
+/* clang-format off */
{- produce_param_decoder('gmac_set_ctx_params',
(['OSSL_MAC_PARAM_CIPHER', 'cipher', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_MAC_PARAM_KEY', 'key', 'octet_string'],
['OSSL_MAC_PARAM_IV', 'iv', 'octet_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *gmac_settable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* HMAC low level APIs are deprecated for public use, but still ok for internal
return 1;
}
+/* clang-format off */
{- produce_param_decoder('hmac_get_ctx_params',
(['OSSL_MAC_PARAM_SIZE', 'size', 'size_t'],
['OSSL_MAC_PARAM_BLOCK_SIZE', 'bsize', 'size_t'],
['OSSL_ALG_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *hmac_gettable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
return 1;
}
+/* clang-format off */
{- produce_param_decoder('hmac_set_ctx_params',
(['OSSL_MAC_PARAM_DIGEST', 'digest', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_MAC_PARAM_TLS_DATA_SIZE', 'tlssize', 'size_t'],
['OSSL_MAC_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *hmac_settable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* See SP800-185 "Appendix A - KMAC, .... in Terms of Keccak[c]"
return ok;
}
+/* clang-format off */
{- produce_param_decoder('kmac_get_ctx_params',
(['OSSL_MAC_PARAM_SIZE', 'size', 'size_t'],
['OSSL_MAC_PARAM_BLOCK_SIZE', 'bsize', 'size_t'],
['OSSL_ALG_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *kmac_gettable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
return 1;
}
+/* clang-format off */
{- produce_param_decoder('kmac_set_ctx_params',
(['OSSL_MAC_PARAM_XOF', 'xof', 'int'],
['OSSL_MAC_PARAM_SIZE', 'size', 'size_t'],
['OSSL_MAC_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
['OSSL_MAC_PARAM_FIPS_NO_SHORT_MAC', 'ind_sht', 'int', 'fips'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *kmac_settable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <string.h>
return 1;
}
+/* clang-format off */
{- produce_param_decoder('poly1305_get_params',
(['OSSL_MAC_PARAM_SIZE', 'size', 'size_t'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *poly1305_gettable_params(void *provctx)
{
return 1;
}
+/* clang-format off */
{- produce_param_decoder('poly1305_set_ctx_params',
(['OSSL_MAC_PARAM_KEY', 'key', 'octet_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *poly1305_settable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <string.h>
#include <openssl/core_dispatch.h>
return SipHash_Final(&ctx->siphash, out, hlen);
}
+/* clang-format off */
{- produce_param_decoder('siphash_get_ctx_params',
(['OSSL_MAC_PARAM_SIZE', 'size', 'size_t'],
['OSSL_MAC_PARAM_C_ROUNDS', 'c', 'uint'],
['OSSL_MAC_PARAM_D_ROUNDS', 'd', 'uint'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *siphash_gettable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
return 1;
}
+/* clang-format off */
{- produce_param_decoder('siphash_set_params',
(['OSSL_MAC_PARAM_SIZE', 'size', 'size_t'],
['OSSL_MAC_PARAM_KEY', 'key', 'octet_string'],
['OSSL_MAC_PARAM_C_ROUNDS', 'c', 'uint'],
['OSSL_MAC_PARAM_D_ROUNDS', 'd', 'uint'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *siphash_settable_ctx_params(ossl_unused void *ctx,
void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <stdlib.h>
#include <string.h>
#define drbg_ctr_get_ctx_params_st drbg_get_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('drbg_ctr_get_ctx_params',
(['OSSL_DRBG_PARAM_CIPHER', 'cipher', 'utf8_string'],
['OSSL_DRBG_PARAM_USE_DF', 'df', 'int'],
['OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL', 'reseed_int', 'uint64'],
['OSSL_KDF_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int drbg_ctr_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
{
#define drbg_ctr_set_ctx_params_st drbg_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('drbg_ctr_set_ctx_params',
(['OSSL_DRBG_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_DRBG_PARAM_CIPHER', 'cipher', 'utf8_string'],
['OSSL_DRBG_PARAM_RESEED_REQUESTS', 'reseed_req', 'uint'],
['OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL', 'reseed_time', 'uint64'],
)); -}
+/* clang-format on */
static int drbg_ctr_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <assert.h>
#include <stdlib.h>
#define drbg_hash_get_ctx_params_st drbg_get_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('drbg_hash_get_ctx_params',
(['OSSL_DRBG_PARAM_DIGEST', 'digest', 'utf8_string'],
['OSSL_RAND_PARAM_STATE', 'state', 'int'],
['OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL', 'reseed_int', 'uint64'],
['OSSL_KDF_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int drbg_hash_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
{
#define drbg_hash_set_ctx_params_st drbg_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('drbg_hash_set_ctx_params',
(['OSSL_DRBG_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL', 'reseed_time', 'uint64'],
['OSSL_KDF_PARAM_FIPS_DIGEST_CHECK', 'ind_d', 'int', 'fips'],
)); -}
+/* clang-format on */
static int drbg_hash_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <stdlib.h>
#include <string.h>
#define drbg_hmac_get_ctx_params_st drbg_get_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('drbg_hmac_get_ctx_params',
(['OSSL_DRBG_PARAM_MAC', 'mac', 'utf8_string'],
['OSSL_DRBG_PARAM_DIGEST', 'digest', 'utf8_string'],
['OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL', 'reseed_int', 'uint64'],
['OSSL_KDF_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int drbg_hmac_get_ctx_params(void *vdrbg, OSSL_PARAM params[])
{
#define drbg_hmac_set_ctx_params_st drbg_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('drbg_hmac_set_ctx_params',
(['OSSL_DRBG_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_ALG_PARAM_ENGINE', 'engine', 'utf8_string', 'hidden'],
['OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL', 'reseed_time', 'uint64'],
['OSSL_KDF_PARAM_FIPS_DIGEST_CHECK', 'ind_d', 'int', 'fips'],
)); -}
+/* clang-format on */
static int drbg_hmac_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
/*
* Implementation of SP 800-90B section 4.4 Approved Continuous Health Tests.
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <string.h>
#include <openssl/evp.h>
CRYPTO_THREAD_unlock(crngt->lock);
}
+/* clang-format off */
{- produce_param_decoder('crng_test_get_ctx_params',
(['OSSL_RAND_PARAM_STATE', 'state', 'int'],
['OSSL_RAND_PARAM_STRENGTH', 'str', 'uint'],
['OSSL_RAND_PARAM_MAX_REQUEST', 'maxreq', 'size_t'],
['OSSL_RAND_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int crng_test_get_ctx_params(void *vcrngt, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <string.h>
#include <openssl/rand.h>
return 1;
}
+/* clang-format off */
{- produce_param_decoder('seed_src_get_ctx_params',
(['OSSL_RAND_PARAM_STATE', 'state', 'int'],
['OSSL_RAND_PARAM_STRENGTH', 'str', 'uint'],
['OSSL_RAND_PARAM_MAX_REQUEST', 'maxreq', 'size_t'],
)); -}
+/* clang-format on */
static int seed_src_get_ctx_params(void *vseed, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <string.h>
#include <openssl/rand.h>
return 1;
}
+/* clang-format off */
{- produce_param_decoder('jitter_get_ctx_params',
(['OSSL_RAND_PARAM_STATE', 'state', 'int'],
['OSSL_RAND_PARAM_STRENGTH', 'str', 'uint'],
['OSSL_RAND_PARAM_MAX_REQUEST', 'maxreq', 'size_t'],
)); -}
+/* clang-format on */
static int jitter_get_ctx_params(void *vseed, OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <string.h>
#include <stdlib.h>
return i;
}
+/* clang-format off */
{- produce_param_decoder('test_rng_get_ctx_params',
(['OSSL_RAND_PARAM_STATE', 'state', 'int'],
['OSSL_RAND_PARAM_STRENGTH', 'str', 'uint'],
['OSSL_RAND_PARAM_GENERATE', 'gen', 'uint'],
['OSSL_RAND_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int test_rng_get_ctx_params(void *vtest, OSSL_PARAM params[])
{
return test_rng_get_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('test_rng_set_ctx_params',
(['OSSL_RAND_PARAM_TEST_ENTROPY', 'ent', 'octet_string'],
['OSSL_RAND_PARAM_TEST_NONCE', 'nonce', 'octet_string'],
['OSSL_RAND_PARAM_MAX_REQUEST', 'maxreq', 'size_t'],
['OSSL_RAND_PARAM_GENERATE', 'gen', 'uint'],
)); -}
+/* clang-format on */
static int test_rng_set_ctx_params(void *vtest, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* DSA low level APIs are deprecated for public use, but still ok for
return NULL;
}
+/* clang-format off */
{- produce_param_decoder('dsa_get_ctx_params',
(['OSSL_SIGNATURE_PARAM_ALGORITHM_ID', 'algid', 'octet_string'],
['OSSL_SIGNATURE_PARAM_DIGEST', 'digest', 'utf8_string'],
['OSSL_SIGNATURE_PARAM_NONCE_TYPE', 'nonce', 'uint'],
['OSSL_SIGNATURE_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int dsa_get_ctx_params(void *vpdsactx, OSSL_PARAM *params)
{
#define dsa_set_ctx_params_st dsa_all_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('dsa_set_ctx_params',
(['OSSL_SIGNATURE_PARAM_DIGEST', 'digest', 'utf8_string'],
['OSSL_SIGNATURE_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_SIGNATURE_PARAM_FIPS_DIGEST_CHECK', 'ind_d', 'int', 'fips'],
['OSSL_SIGNATURE_PARAM_FIPS_SIGN_CHECK', 'ind_sign', 'int', 'fips'],
)); -}
+/* clang-format on */
static int dsa_set_ctx_params(void *vpdsactx, const OSSL_PARAM params[])
{
#define dsa_sigalg_set_ctx_params_st dsa_all_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('dsa_sigalg_set_ctx_params',
(['OSSL_SIGNATURE_PARAM_SIGNATURE', 'sig', 'octet_string'],
['OSSL_SIGNATURE_PARAM_NONCE_TYPE', 'nonce', 'uint'],
['OSSL_SIGNATURE_PARAM_FIPS_DIGEST_CHECK', 'ind_d', 'int', 'fips'],
['OSSL_SIGNATURE_PARAM_FIPS_SIGN_CHECK', 'ind_sign', 'int', 'fips'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *dsa_sigalg_settable_ctx_params(void *vpdsactx,
ossl_unused void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* ECDSA low level APIs are deprecated for public use, but still ok for
return NULL;
}
+/* clang-format off */
{- produce_param_decoder('ecdsa_get_ctx_params',
(['OSSL_SIGNATURE_PARAM_ALGORITHM_ID', 'algid', 'octet_string'],
['OSSL_SIGNATURE_PARAM_DIGEST_SIZE', 'size', 'size_t'],
['OSSL_SIGNATURE_PARAM_FIPS_VERIFY_MESSAGE', 'verify', 'uint', 'fips'],
['OSSL_SIGNATURE_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int ecdsa_get_ctx_params(void *vctx, OSSL_PARAM *params)
{
#define ecdsa_set_ctx_params_st ecdsa_all_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('ecdsa_set_ctx_params',
(['OSSL_SIGNATURE_PARAM_DIGEST', 'digest', 'utf8_string'],
['OSSL_SIGNATURE_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_SIGNATURE_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
['OSSL_SIGNATURE_PARAM_FIPS_DIGEST_CHECK', 'ind_d', 'int', 'fips'],
)); -}
+/* clang-format on */
static int ecdsa_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
#define ecdsa_sigalg_set_ctx_params_st ecdsa_all_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('ecdsa_sigalg_set_ctx_params',
(['OSSL_SIGNATURE_PARAM_SIGNATURE', 'sig', 'octet_string'],
['OSSL_SIGNATURE_PARAM_KAT', 'kat', 'uint',
['OSSL_SIGNATURE_PARAM_FIPS_KEY_CHECK', 'ind_k', 'int', 'fips'],
['OSSL_SIGNATURE_PARAM_FIPS_DIGEST_CHECK', 'ind_d', 'int', 'fips'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *ecdsa_sigalg_settable_ctx_params(void *vctx,
ossl_unused void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <openssl/crypto.h>
#include <openssl/core_dispatch.h>
return keytypes;
}
+/* clang-format off */
{- produce_param_decoder('eddsa_get_ctx_params',
(['OSSL_SIGNATURE_PARAM_ALGORITHM_ID', 'id', 'octet_string'],
)); -}
+/* clang-format on */
static int eddsa_get_ctx_params(void *vpeddsactx, OSSL_PARAM *params)
{
return eddsa_get_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('eddsa_set_ctx_params',
(['OSSL_SIGNATURE_PARAM_INSTANCE', 'inst', 'utf8_string'],
['OSSL_SIGNATURE_PARAM_CONTEXT_STRING', 'ctx', 'octet_string'],
)); -}
+/* clang-format on */
static int eddsa_set_ctx_params_internal
(PROV_EDDSA_CTX *peddsactx, const struct eddsa_set_ctx_params_st *p)
}
#define eddsa_set_variant_ctx_params_st eddsa_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('eddsa_set_variant_ctx_params',
(['OSSL_SIGNATURE_PARAM_CONTEXT_STRING', 'ctx', 'octet_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *
eddsa_settable_variant_ctx_params(ossl_unused void *vpeddsactx,
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include "internal/deprecated.h"
#define ml_dsa_set_ctx_params_st ml_dsa_verifymsg_set_ctx_params_st
#define ml_dsa_set_ctx_params_decoder ml_dsa_verifymsg_set_ctx_params_decoder
+/* clang-format off */
{- produce_param_decoder('ml_dsa_set_ctx_params',
(['OSSL_SIGNATURE_PARAM_CONTEXT_STRING', 'ctx', 'octet_string'],
['OSSL_SIGNATURE_PARAM_TEST_ENTROPY', 'ent', 'octet_string'],
['OSSL_SIGNATURE_PARAM_MESSAGE_ENCODING', 'msgenc', 'int'],
['OSSL_SIGNATURE_PARAM_MU', 'mu', 'int'],
)); -}
+/* clang-format on */
+/* clang-format off */
{- produce_param_decoder('ml_dsa_verifymsg_set_ctx_params',
(['OSSL_SIGNATURE_PARAM_CONTEXT_STRING', 'ctx', 'octet_string'],
['OSSL_SIGNATURE_PARAM_TEST_ENTROPY', 'ent', 'octet_string'],
['OSSL_SIGNATURE_PARAM_MU', 'mu', 'int'],
['OSSL_SIGNATURE_PARAM_SIGNATURE', 'sig', 'octet_string'],
)); -}
+/* clang-format on */
static int ml_dsa_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return ml_dsa_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('ml_dsa_get_ctx_params',
(['OSSL_SIGNATURE_PARAM_ALGORITHM_ID', 'id', 'octet_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *ml_dsa_gettable_ctx_params(ossl_unused void *vctx,
ossl_unused void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* RSA low level APIs are deprecated for public use, but still ok for
return NULL;
}
+/* clang-format off */
{- produce_param_decoder('rsa_get_ctx_params',
(['OSSL_SIGNATURE_PARAM_ALGORITHM_ID', 'algid', 'octet_string'],
['OSSL_SIGNATURE_PARAM_PAD_MODE', 'pad', 'utf8_string'],
['OSSL_SIGNATURE_PARAM_FIPS_VERIFY_MESSAGE', 'verify', 'uint', 'fips'],
['OSSL_SIGNATURE_PARAM_FIPS_APPROVED_INDICATOR', 'ind', 'int', 'fips'],
)); -}
+/* clang-format on */
static int rsa_get_ctx_params(void *vprsactx, OSSL_PARAM *params)
{
}
#endif
+/* clang-format off */
{- produce_param_decoder('rsa_set_ctx_params',
(['OSSL_SIGNATURE_PARAM_DIGEST', 'digest', 'utf8_string'],
['OSSL_SIGNATURE_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_SIGNATURE_PARAM_FIPS_RSA_PSS_SALTLEN_CHECK', 'ind_slen', 'int', 'fips'],
['OSSL_SIGNATURE_PARAM_FIPS_SIGN_X931_PAD_CHECK', 'ind_xpad', 'int', 'fips'],
)); -}
+/* clang-format on */
#define rsa_set_ctx_params_no_digest_st rsa_set_ctx_params_st
+/* clang-format off */
{- produce_param_decoder('rsa_set_ctx_params_no_digest',
(['OSSL_SIGNATURE_PARAM_PAD_MODE', 'pad', 'utf8_string'],
['OSSL_SIGNATURE_PARAM_PAD_MODE', 'pad', 'int'],
['OSSL_SIGNATURE_PARAM_FIPS_RSA_PSS_SALTLEN_CHECK', 'ind_slen', 'int', 'fips'],
['OSSL_SIGNATURE_PARAM_FIPS_SIGN_X931_PAD_CHECK', 'ind_xpad', 'int', 'fips'],
)); -}
+/* clang-format on */
static int rsa_set_ctx_params(void *vprsactx, const OSSL_PARAM params[])
{
return keytypes;
}
+/* clang-format off */
{- produce_param_decoder('rsa_sigalg_set_ctx_params',
(['OSSL_SIGNATURE_PARAM_SIGNATURE', 'sig', 'octet_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *rsa_sigalg_settable_ctx_params(void *vprsactx,
ossl_unused void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <openssl/core_names.h>
#include <openssl/err.h>
return slh_dsa_verify(vctx, sig, siglen, tbs, tbslen);
}
+/* clang-format off */
{- produce_param_decoder('slh_dsa_set_ctx_params',
(['OSSL_SIGNATURE_PARAM_CONTEXT_STRING', 'context', 'octet_string'],
['OSSL_SIGNATURE_PARAM_TEST_ENTROPY', 'entropy', 'octet_string'],
['OSSL_SIGNATURE_PARAM_DETERMINISTIC', 'det', 'int'],
['OSSL_SIGNATURE_PARAM_MESSAGE_ENCODING', 'msgenc', 'int'],
)); -}
+/* clang-format on */
static int slh_dsa_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
return slh_dsa_set_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('slh_dsa_get_ctx_params',
(['OSSL_SIGNATURE_PARAM_ALGORITHM_ID', 'algid', 'octet_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *slh_dsa_gettable_ctx_params(ossl_unused void *vctx,
ossl_unused void *provctx)
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* ECDSA low level APIs are deprecated for public use, but still ok for
return NULL;
}
+/* clang-format off */
{- produce_param_decoder('sm2sig_get_ctx_params',
(['OSSL_SIGNATURE_PARAM_ALGORITHM_ID', 'algid', 'octet_string'],
['OSSL_SIGNATURE_PARAM_DIGEST_SIZE', 'size', 'size_t'],
['OSSL_SIGNATURE_PARAM_DIGEST', 'digest', 'utf8_string'],
)); -}
+/* clang-format on */
static int sm2sig_get_ctx_params(void *vpsm2ctx, OSSL_PARAM *params)
{
return sm2sig_get_ctx_params_list;
}
+/* clang-format off */
{- produce_param_decoder('sm2sig_set_ctx_params',
(['OSSL_SIGNATURE_PARAM_DIGEST_SIZE', 'size', 'size_t'],
['OSSL_SIGNATURE_PARAM_DIGEST', 'digest', 'utf8_string'],
['OSSL_PKEY_PARAM_DIST_ID', 'distid', 'octet_string'],
)); -}
+/* clang-format on */
static int sm2sig_set_ctx_params(void *vpsm2ctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <string.h>
#include <openssl/core_dispatch.h>
OPENSSL_free(generic);
}
+/* clang-format off */
{- produce_param_decoder('generic_skey_import',
(['OSSL_SKEY_PARAM_RAW_BYTES', 'raw_bytes', 'octet_string'],
)); -}
+/* clang-format on */
void *generic_import(void *provctx, int selection, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/* This file has quite some overlap with engines/e_loader_attic.c */
* ------------------
*/
+/* clang-format off */
{- produce_param_decoder('file_set_ctx_params',
(['OSSL_STORE_PARAM_PROPERTIES', 'propq', 'utf8_string'],
['OSSL_STORE_PARAM_EXPECT', 'expect', 'int'],
['OSSL_STORE_PARAM_SUBJECT', 'sub', 'octet_string'],
['OSSL_STORE_PARAM_INPUT_TYPE', 'type', 'utf8_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *file_settable_ctx_params(void *provctx)
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
/*
* This is a decoder that's completely internal to the 'file:' store
OPENSSL_free(ctx);
}
+/* clang-format off */
{- produce_param_decoder('any2obj_set_ctx_params',
(['OSSL_OBJECT_PARAM_DATA_STRUCTURE', 'datastruct', 'utf8_string'],
)); -}
+/* clang-format on */
static int any2obj_set_ctx_params(void *vctx, const OSSL_PARAM params[])
{
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
+/* clang-format off */
{-
use OpenSSL::paramnames qw(produce_param_decoder);
-}
+/* clang-format on */
#include <openssl/store.h>
#include <openssl/core_dispatch.h>
return NULL; /* not supported */
}
+/* clang-format off */
{- produce_param_decoder('winstore_set_ctx_params',
(['OSSL_STORE_PARAM_SUBJECT', 'sub', 'octet_string'],
['OSSL_STORE_PARAM_PROPERTIES', 'propq', 'utf8_string'],
)); -}
+/* clang-format on */
static const OSSL_PARAM *winstore_settable_ctx_params(void *loaderctx, const OSSL_PARAM params[])
{