]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
3.6-PRE-CLANG-FORMAT-WEBKIT 3.6-PRE-CLANG-FORMAT-WEBKIT
authorBob Beck <beck@openssl.org>
Tue, 9 Dec 2025 07:57:52 +0000 (00:57 -0700)
committerBob Beck <beck@openssl.org>
Tue, 9 Dec 2025 07:57:52 +0000 (00:57 -0700)
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29245)

118 files changed:
include/crypto/bn_conf.h.in
include/crypto/dso_conf.h.in
include/openssl/asn1.h.in
include/openssl/asn1t.h.in
include/openssl/bio.h.in
include/openssl/cmp.h.in
include/openssl/cms.h.in
include/openssl/comp.h.in
include/openssl/conf.h.in
include/openssl/configuration.h.in
include/openssl/core_names.h.in
include/openssl/crmf.h.in
include/openssl/crypto.h.in
include/openssl/ct.h.in
include/openssl/err.h.in
include/openssl/ess.h.in
include/openssl/fipskey.h.in
include/openssl/lhash.h.in
include/openssl/ocsp.h.in
include/openssl/opensslv.h.in
include/openssl/pkcs12.h.in
include/openssl/pkcs7.h.in
include/openssl/safestack.h.in
include/openssl/srp.h.in
include/openssl/ssl.h.in
include/openssl/ui.h.in
include/openssl/x509.h.in
include/openssl/x509_acert.h.in
include/openssl/x509_vfy.h.in
include/openssl/x509v3.h.in
providers/common/der/der_digests_gen.c.in
providers/common/der/der_dsa_gen.c.in
providers/common/der/der_ec_gen.c.in
providers/common/der/der_ecx_gen.c.in
providers/common/der/der_hkdf_gen.c.in
providers/common/der/der_ml_dsa_gen.c.in
providers/common/der/der_rsa_gen.c.in
providers/common/der/der_slh_dsa_gen.c.in
providers/common/der/der_sm2_gen.c.in
providers/common/der/der_wrap_gen.c.in
providers/common/include/prov/der_digests.h.in
providers/common/include/prov/der_dsa.h.in
providers/common/include/prov/der_ec.h.in
providers/common/include/prov/der_ecx.h.in
providers/common/include/prov/der_hkdf.h.in
providers/common/include/prov/der_ml_dsa.h.in
providers/common/include/prov/der_rsa.h.in
providers/common/include/prov/der_slh_dsa.h.in
providers/common/include/prov/der_sm2.h.in
providers/common/include/prov/der_wrap.h.in
providers/implementations/asymciphers/rsa_enc.c.in
providers/implementations/asymciphers/sm2_enc.c.in
providers/implementations/ciphers/cipher_chacha20_poly1305.c.in
providers/implementations/ciphers/ciphercommon.c.in
providers/implementations/ciphers/ciphercommon_ccm.c.in
providers/implementations/ciphers/ciphercommon_gcm.c.in
providers/implementations/digests/blake2_prov.c.in
providers/implementations/digests/digestcommon.c.in
providers/implementations/digests/sha3_prov.c.in
providers/implementations/encode_decode/decode_der2key.c.in
providers/implementations/encode_decode/decode_epki2pki.c.in
providers/implementations/encode_decode/decode_pem2der.c.in
providers/implementations/encode_decode/decode_pvk2key.c.in
providers/implementations/encode_decode/decode_spki2typespki.c.in
providers/implementations/encode_decode/encode_key2any.c.in
providers/implementations/encode_decode/encode_key2ms.c.in
providers/implementations/exchange/dh_exch.c.in
providers/implementations/exchange/ecdh_exch.c.in
providers/implementations/exchange/ecx_exch.c.in
providers/implementations/kdfs/argon2.c.in
providers/implementations/kdfs/hkdf.c.in
providers/implementations/kdfs/hmacdrbg_kdf.c.in
providers/implementations/kdfs/kbkdf.c.in
providers/implementations/kdfs/krb5kdf.c.in
providers/implementations/kdfs/pbkdf1.c.in
providers/implementations/kdfs/pbkdf2.c.in
providers/implementations/kdfs/pkcs12kdf.c.in
providers/implementations/kdfs/pvkkdf.c.in
providers/implementations/kdfs/scrypt.c.in
providers/implementations/kdfs/sshkdf.c.in
providers/implementations/kdfs/sskdf.c.in
providers/implementations/kdfs/tls1_prf.c.in
providers/implementations/kdfs/x942kdf.c.in
providers/implementations/kem/ec_kem.c.in
providers/implementations/kem/ecx_kem.c.in
providers/implementations/kem/ml_kem_kem.c.in
providers/implementations/kem/rsa_kem.c.in
providers/implementations/keymgmt/ecx_kmgmt.c.in
providers/implementations/keymgmt/lms_kmgmt.c.in
providers/implementations/keymgmt/ml_dsa_kmgmt.c.in
providers/implementations/keymgmt/ml_kem_kmgmt.c.in
providers/implementations/keymgmt/mlx_kmgmt.c.in
providers/implementations/keymgmt/slh_dsa_kmgmt.c.in
providers/implementations/keymgmt/template_kmgmt.c.in
providers/implementations/macs/cmac_prov.c.in
providers/implementations/macs/gmac_prov.c.in
providers/implementations/macs/hmac_prov.c.in
providers/implementations/macs/kmac_prov.c.in
providers/implementations/macs/poly1305_prov.c.in
providers/implementations/macs/siphash_prov.c.in
providers/implementations/rands/drbg_ctr.c.in
providers/implementations/rands/drbg_hash.c.in
providers/implementations/rands/drbg_hmac.c.in
providers/implementations/rands/fips_crng_test.c.in
providers/implementations/rands/seed_src.c.in
providers/implementations/rands/seed_src_jitter.c.in
providers/implementations/rands/test_rng.c.in
providers/implementations/signature/dsa_sig.c.in
providers/implementations/signature/ecdsa_sig.c.in
providers/implementations/signature/eddsa_sig.c.in
providers/implementations/signature/ml_dsa_sig.c.in
providers/implementations/signature/rsa_sig.c.in
providers/implementations/signature/slh_dsa_sig.c.in
providers/implementations/signature/sm2_sig.c.in
providers/implementations/skeymgmt/generic.c.in
providers/implementations/storemgmt/file_store.c.in
providers/implementations/storemgmt/file_store_any2obj.c.in
providers/implementations/storemgmt/winstore_store.c.in

index dbc901b145ea5f6c783a94bf45d553a0d0cd4c1e..86c64ef63c6c6adee8215d55af7dc698246bc660 100644 (file)
@@ -1,4 +1,6 @@
+/* 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
index 12de11ade8da136b6b9218d1c378cbbb570cf8d2..7a35ad238b1091ae636a57cc14f30b5b40a14846 100644 (file)
@@ -1,4 +1,6 @@
+/* clang-format off */
 {- join("\n",map { "/* $_ */" } @autowarntext) -}
+/* clang-format on */
 /*
  * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
  *
@@ -12,6 +14,7 @@
 # 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
@@ -29,5 +32,8 @@
         @macros = ( "DSO_DLFCN" );
     }
     join("\n", map { "# define $_" } @macros); -}
+/* clang-format on */
+/* clang-format off */
 # define DSO_EXTENSION "{- platform->dsoext() -}"
+/* clang-format on */
 #endif
index b39929a0662a64351488aada7e0d9957631191c1..9da957c72961359bec82efed45ffb6fa83f270b7 100644 (file)
@@ -9,9 +9,11 @@
  * 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
@@ -130,9 +132,11 @@ extern "C" {
 # 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 */
@@ -208,9 +212,11 @@ struct asn1_string_table_st {
     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 */
 
@@ -505,9 +511,11 @@ struct asn1_type_st {
     } value;
 };
 
+/* clang-format off */
 {-
     generate_stack_macros("ASN1_TYPE");
 -}
+/* clang-format on */
 
 typedef STACK_OF(ASN1_TYPE) ASN1_SEQUENCE_ANY;
 
@@ -561,9 +569,11 @@ int ASN1_TYPE_cmp(const ASN1_TYPE *a, const ASN1_TYPE *b);
 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)
 
@@ -603,9 +613,11 @@ int ASN1_BIT_STRING_num_asc(const char *name, BIT_STRING_BITNAME *tbl);
 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)
@@ -641,9 +653,11 @@ int ASN1_OCTET_STRING_cmp(const ASN1_OCTET_STRING *a,
 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)
@@ -654,9 +668,11 @@ DECLARE_ASN1_FUNCTIONS(ASN1_BMPSTRING)
 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)
 
index b536fe51a20acbaaa0bae6bcfae1c754339403d0..4bf2bf7dbd620972567527492427f76b1b12cabb 100644 (file)
@@ -9,9 +9,11 @@
  * 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
@@ -895,9 +897,11 @@ DECLARE_ASN1_ITEM(LONG)
 DECLARE_ASN1_ITEM(ZLONG)
 # endif
 
+/* clang-format off */
 {-
     generate_stack_macros("ASN1_VALUE");
 -}
+/* clang-format on */
 
 
 /* Functions used internally by the ASN1 code */
index 228e00e0a6dd3583f5334e5acb5b73d2256264fd..d5e760889b5374aa76fe39debab62ace71979dda 100644 (file)
@@ -8,9 +8,11 @@
  * 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
@@ -334,9 +336,11 @@ int BIO_method_type(const BIO *b);
 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 */
index d659331fa38fa7a6c8042a001d0c55213feb3e9b..e8e0dc947079438fc6f01c046f5d0c0d2ec9f8c2 100644 (file)
  * 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
@@ -220,19 +222,25 @@ typedef struct ossl_cmp_msg_st OSSL_CMP_MSG;
 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
@@ -248,19 +256,25 @@ typedef struct ossl_cmp_revrepcontent_st OSSL_CMP_REVREPCONTENT;
 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;
 
 /*
index c47b2ca845846519262bc2a591739182c7f4369f..d62b863d75162f63a9becb464560f68fa937eb08 100644 (file)
@@ -9,9 +9,11 @@
  * 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
@@ -44,12 +46,14 @@ typedef struct CMS_Receipt_st CMS_Receipt;
 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)
index bd1efdc568e995672162d5cf97e712c9bfd860d7..5b026b2a8d02883cc6f8195c82a8d459090d65ea 100644 (file)
@@ -7,9 +7,11 @@
  * 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
@@ -65,9 +67,11 @@ const BIO_METHOD *BIO_f_zstd(void);
 
 typedef struct ssl_comp_st SSL_COMP;
 
+/* clang-format off */
 {-
     generate_stack_macros("SSL_COMP");
 -}
+/* clang-format on */
 
 
 # ifdef  __cplusplus
index 5663287089c9eca1afc7b902caa0cacb51211a1f..5e2f4389c20be1c6e89c9369c8906ad00232c4ee 100644 (file)
@@ -9,9 +9,11 @@
  * 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
@@ -42,10 +44,12 @@ typedef struct {
     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;
index 86077d0a6f5d6b6b06bb32b2d1d96a2958227b62..8d1b6af0dedd8a48d18d826c41a7afd18304d55c 100644 (file)
@@ -25,6 +25,7 @@ extern "C" {
  * OpenSSL was configured with the following options:
  */
 
+/* clang-format off */
 {- if (@{$config{openssl_sys_defines}}) {
       foreach (@{$config{openssl_sys_defines}}) {
         $OUT .= "# ifndef $_\n";
@@ -45,22 +46,35 @@ extern "C" {
     }
     "";
 -}
+/* 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
index 66f796c03a28954277c152d896321713419183e0..8ff66b16de7c9775d30f728a0ccf3b9befeae5ab 100644 (file)
@@ -8,9 +8,11 @@
  * 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
@@ -120,7 +122,9 @@ extern "C" {
 #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
 }
index 3fab255a3fd56bc1002e47e469ca6bac6a86643c..8277e8584de067ed0de196622bcc4aad793e37dd 100644 (file)
  * 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
@@ -54,15 +56,19 @@ DECLARE_ASN1_FUNCTIONS(OSSL_CRMF_ENCRYPTEDKEY)
 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)
@@ -71,9 +77,11 @@ typedef struct ossl_crmf_certrequest_st OSSL_CRMF_CERTREQUEST;
 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)
index c78e72b7ed0b2b330b74451eaf4ead2a60228d68..a4f08b77173b5f0e18f60fc8b1786e34aa59886a 100644 (file)
  * 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
@@ -211,9 +213,11 @@ struct crypto_ex_data_st {
     STACK_OF(void) *sk;
 };
 
+/* clang-format off */
 {-
     generate_stack_macros("void");
 -}
+/* clang-format on */
 
 
 /*
index 3fc2aaa9427eabb4a8060ad57ec4985642428efd..1273e8b38857ece04e8e1687ee44233aa7b073a4 100644 (file)
@@ -9,9 +9,11 @@
  * 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
@@ -40,10 +42,12 @@ extern "C" {
 /* 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 {
index 9143704c098e2218e69f1e34191da0e39d476736..b58f21b4f0355f7f53fb28542455d4d70c99d485 100644 (file)
@@ -7,9 +7,11 @@
  * 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
@@ -373,9 +375,11 @@ typedef struct ERR_string_data_st {
     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
index d1a685b98e3ef49e37d17f0aedd9ed2dd20f0c18..0478522c50785911161984cc00dbc7f93123da08 100644 (file)
@@ -9,9 +9,11 @@
  * 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
@@ -32,17 +34,21 @@ typedef struct ESS_issuer_serial ESS_ISSUER_SERIAL;
 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)
index c53012a8621132df9ae033d25e1f92f78e42297b..7bfa1d2bde57b48da4754ffe16cc2ce0f6f1a1c2 100644 (file)
@@ -20,18 +20,24 @@ extern "C" {
 /*
  * 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
 }
index 63a9c53bfaf8d7dcdd8dd4393017738df691a692..73b3656f195d5c621af66e40dea9539cbb6bb16a 100644 (file)
@@ -7,9 +7,11 @@
  * 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
@@ -361,10 +363,12 @@ OSSL_DEPRECATEDIN_3_1 void OPENSSL_LH_node_usage_stats_bio(const OPENSSL_LHASH *
     } \
     LHASH_OF(type)
 
+/* clang-format off */
 {-
     generate_lhash_macros("OPENSSL_STRING")
     .generate_lhash_macros("OPENSSL_CSTRING");
 -}
+/* clang-format on */
 
 #ifdef  __cplusplus
 }
index 0481e11951d586b40a70bcbc4ed9bb1842948d00..332367908a44f3c6820631ee3cafd523f0fe9d52 100644 (file)
@@ -9,9 +9,11 @@
  * 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
@@ -93,10 +95,12 @@ typedef struct ocsp_req_info_st OCSP_REQINFO;
 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
@@ -110,9 +114,11 @@ typedef struct ocsp_resp_bytes_st OCSP_RESPBYTES;
 #  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;
 
@@ -123,9 +129,11 @@ 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;
 
index 69b9caacf4dce5ee64c839a1864e1ee54d57059f..8da01a340d896c0f09a1570c273bc159fc13fb79 100644 (file)
@@ -26,9 +26,15 @@ extern "C" {
  *
  * 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
@@ -38,10 +44,14 @@ extern "C" {
  */
 
 /* 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
@@ -56,7 +66,9 @@ extern "C" {
  * 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
@@ -73,28 +85,38 @@ extern "C" {
  * 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
 }
index fcc432fca077cd4e0d39eaebb6cf875ae36a26f2..6c3088694b65457c57eb1c6dea7066fe8e348249 100644 (file)
@@ -9,9 +9,11 @@
  * 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
@@ -69,9 +71,11 @@ typedef struct PKCS12_st PKCS12;
 
 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;
 
index 57e45dc2fb6d2ccfcbd5881559f79d7904642018..e6055ce32b9e29d7a291b0d57d09be9a5b99bf6c 100644 (file)
@@ -9,9 +9,11 @@
  * 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
@@ -67,9 +69,11 @@ typedef struct pkcs7_signer_info_st {
     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 */
@@ -79,9 +83,11 @@ typedef struct pkcs7_recip_info_st {
     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 {
@@ -170,9 +176,11 @@ typedef struct pkcs7_st {
     } d;
     PKCS7_CTX ctx;
 } PKCS7;
+/* clang-format off */
 {-
     generate_stack_macros("PKCS7");
 -}
+/* clang-format on */
 
 
 # define PKCS7_OP_SET_DETACHED_SIGNATURE 1
index ed1d1827416c31ad069c15757bd5371eb583c93e..394548b8089b1a47b4c0b479be372217ddf9b4aa 100644 (file)
@@ -9,11 +9,13 @@
  * 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
@@ -228,10 +230,12 @@ typedef const char *OPENSSL_CSTRING;
  * 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)
 /*
@@ -239,9 +243,11 @@ typedef const char *OPENSSL_CSTRING;
  * 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
index dfbe845b8387dad087cf61ab52f2bfd57b67e651..6da2f8db2133a6ea3fa44acc39dc8690eb689073 100644 (file)
  * 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
@@ -45,9 +47,11 @@ typedef struct SRP_gN_cache_st {
     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 {
@@ -61,9 +65,11 @@ 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);
@@ -96,9 +102,11 @@ typedef struct SRP_gN_st {
     const BIGNUM *g;
     const BIGNUM *N;
 } SRP_gN;
+/* clang-format off */
 {-
     generate_stack_macros("SRP_gN");
 -}
+/* clang-format on */
 
 
 OSSL_DEPRECATEDIN_3_0
index 1cc77189023c5acdd9c9039649f9e8261dd7935e..091e487738067f5a48039a9e34cac689aec5fec1 100644 (file)
  * 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
@@ -244,9 +246,11 @@ typedef struct srtp_protection_profile_st {
     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,
@@ -975,9 +979,11 @@ extern "C" {
  * 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)))
index eb9a580fa8f4aaab3ec09b02c1200def2d8da3ea..e52a35d3e85ad89c71387e75a6229f6de275c417 100644 (file)
@@ -9,9 +9,11 @@
  * 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
@@ -291,9 +293,11 @@ const UI_METHOD *UI_null(void);
  */
 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
index 6887d19cd27de19a9938f9347b2c1662e7939ce4..e3c120bddb80dda232d4274c40a0d9b673002f28 100644 (file)
  * 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
@@ -50,12 +52,14 @@ extern "C" {
 #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 */
@@ -102,21 +106,27 @@ typedef struct X509_sig_st X509_SIG;
 
 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;
@@ -225,9 +235,11 @@ typedef struct X509_info_st {
     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
index bf4395eec6aa58d5914f7a4ab0f98efc1385fea6..7df363ac2cdf42c81a9ddd048126abf412423a96 100644 (file)
@@ -9,9 +9,11 @@
  * 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
@@ -133,9 +135,11 @@ int OSSL_ISSUER_SERIAL_set1_issuerUID(OSSL_ISSUER_SERIAL *isss,
 
 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)
@@ -177,13 +181,17 @@ typedef struct TARGET_st {
 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)
@@ -192,8 +200,10 @@ DECLARE_ASN1_FUNCTIONS(OSSL_TARGETING_INFORMATION)
 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
index 56f19ec8d61461ca74e239aecd013cf9b663d42f..9dffda58877d2a74c9a17fa356b7e36e4acc4172 100644 (file)
@@ -9,9 +9,11 @@
  * 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
@@ -68,11 +70,13 @@ typedef enum {
 #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 {
@@ -83,9 +87,11 @@ 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 */
index baf8b5ab1cffbbf9fa17b1faa6596f92b837d272..bcf3dbb5f68b1ec14f24b2c568b418b22fb8617d 100644 (file)
@@ -9,9 +9,11 @@
  * 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
@@ -110,9 +112,11 @@ struct v3_ext_ctx {
 
 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
@@ -185,19 +189,23 @@ typedef struct ACCESS_DESCRIPTION_st {
 
 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;
@@ -231,9 +239,11 @@ struct DIST_POINT_st {
     int dp_reasons;
 };
 
+/* clang-format off */
 {-
     generate_stack_macros("DIST_POINT");
 -}
+/* clang-format on */
 
 typedef STACK_OF(DIST_POINT) CRL_DIST_POINTS;
 
@@ -250,9 +260,11 @@ typedef struct SXNET_ID_st {
     ASN1_OCTET_STRING *user;
 } SXNETID;
 
+/* clang-format off */
 {-
     generate_stack_macros("SXNETID");
 -}
+/* clang-format on */
 
 
 typedef struct SXNET_st {
@@ -286,9 +298,11 @@ typedef struct POLICYQUALINFO_st {
     } d;
 } POLICYQUALINFO;
 
+/* clang-format off */
 {-
     generate_stack_macros("POLICYQUALINFO");
 -}
+/* clang-format on */
 
 
 typedef struct POLICYINFO_st {
@@ -296,9 +310,11 @@ typedef struct POLICYINFO_st {
     STACK_OF(POLICYQUALINFO) *qualifiers;
 } POLICYINFO;
 
+/* clang-format off */
 {-
     generate_stack_macros("POLICYINFO");
 -}
+/* clang-format on */
 
 typedef STACK_OF(POLICYINFO) CERTIFICATEPOLICIES;
 
@@ -307,9 +323,11 @@ typedef struct POLICY_MAPPING_st {
     ASN1_OBJECT *subjectDomainPolicy;
 } POLICY_MAPPING;
 
+/* clang-format off */
 {-
     generate_stack_macros("POLICY_MAPPING");
 -}
+/* clang-format on */
 
 typedef STACK_OF(POLICY_MAPPING) POLICY_MAPPINGS;
 
@@ -319,9 +337,11 @@ typedef struct GENERAL_SUBTREE_st {
     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;
@@ -402,7 +422,9 @@ struct ISSUING_DIST_POINT_st {
                         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 */
 
@@ -473,9 +495,11 @@ typedef struct x509_purpose_st {
     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
@@ -798,9 +822,11 @@ int X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE) *dn_sk,
                              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
@@ -819,9 +845,11 @@ typedef struct ASIdOrRange_st {
     } u;
 } ASIdOrRange;
 
+/* clang-format off */
 {-
     generate_stack_macros("ASIdOrRange");
 -}
+/* clang-format on */
 
 typedef STACK_OF(ASIdOrRange) ASIdOrRanges;
 
@@ -860,9 +888,11 @@ typedef struct IPAddressOrRange_st {
     } u;
 } IPAddressOrRange;
 
+/* clang-format off */
 {-
     generate_stack_macros("IPAddressOrRange");
 -}
+/* clang-format on */
 
 typedef STACK_OF(IPAddressOrRange) IPAddressOrRanges;
 
@@ -882,9 +912,11 @@ typedef struct IPAddressFamily_st {
     IPAddressChoice *ipAddressChoice;
 } IPAddressFamily;
 
+/* clang-format off */
 {-
     generate_stack_macros("IPAddressFamily");
 -}
+/* clang-format on */
 
 
 typedef STACK_OF(IPAddressFamily) IPAddrBlocks;
@@ -959,9 +991,11 @@ int X509v3_addr_validate_resource_set(STACK_OF(X509) *chain,
 
 #endif                         /* OPENSSL_NO_RFC3779 */
 
+/* clang-format off */
 {-
     generate_stack_macros("ASN1_STRING");
 -}
+/* clang-format on */
 
 /*
  * Admission Syntax
@@ -974,10 +1008,12 @@ DECLARE_ASN1_FUNCTIONS(NAMING_AUTHORITY)
 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(
@@ -1036,9 +1072,11 @@ DECLARE_ASN1_FUNCTIONS(OSSL_ATTRIBUTES_SYNTAX)
 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;
@@ -1049,9 +1087,11 @@ typedef struct OSSL_ROLE_SPEC_CERT_ID_st {
 
 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;
 
@@ -1273,13 +1313,17 @@ DECLARE_ASN1_FUNCTIONS(OSSL_TIME_SPEC_TIME)
 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 {
@@ -1315,9 +1359,11 @@ DECLARE_ASN1_FUNCTIONS(OSSL_ATTRIBUTE_VALUE_MAPPING)
 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
@@ -1341,13 +1387,17 @@ DECLARE_ASN1_FUNCTIONS(OSSL_ALLOWED_ATTRIBUTES_CHOICE)
 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;
index 9b6da1dafb1c1be81d6ca0c266c7080d48554662..b08c6685f6ba61bf6e5e93b340aee8026046b79b 100644 (file)
 #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 */
index dd581567e87ab430ce1a591b73478f76db59d994..cd944b7771432a87e147c668d684c5de592c3c10 100644 (file)
 #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 */
index ec47686ebe2b20f74e07c58fc65ae9d6b1589dd2..5270a1e15a52ff9c04e667bfb8e9fe5eee3e510c 100644 (file)
 #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 */
index bcd45b6e4d5238c2d5a733c4c22ea66be885ecc0..e0d83e225f66933e7b657c2c6ce122e2da249f37 100644 (file)
 #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 */
index 43abbd129185adb9881a80d51d4066f649a85a91..99fb84b537603260e2f9025d74b4a863bbe0cefa 100644 (file)
 #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 */
index 0097fc7a0c24fae426406f8de0ce8fe00abdc96b..30f42f32cf84a4ee8de349d5ce32f1c917cd5c32 100644 (file)
 #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 */
index 0560f649e8e0743336d5a076f67da7c97c3f55f0..78526caba8e72e72d859e4dbf904a0bbb27f80fd 100644 (file)
 #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 */
index c337c9e50dc89ee2d58306d807d4e0525fb6b374..41f43cccc10e2bd31d8177964d3795dd36c0a5c1 100644 (file)
 #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 */
index ac28307bfb7deffd1a07b762bd854fcb357ddbbc..4c7be185d2efb1412e3bd74eb1fd0ea6e67874a0 100644 (file)
 #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 */
index d3a6bb909257b9febec17b8bacb60d8298492f0d..11864907b4f9a4fe190d02ca4e63eb7041db400c 100644 (file)
 #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 */
index f8f89973398b4f246e2993b169fac0ba0bd5f425..b1bfbddaa17ae39ed56b33c0087db734ca09b233 100644 (file)
 #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 */
index 75e44a16f176c1fa09ff3f5fca26471ab5ce36bd..62de371588f45e1c63c728b750900e499d2c8194 100644 (file)
 #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);
index ebc9bb0310e8a0a8df53286f5b437c521aebb5f9..a398ae672a583edfe09f8add50ee46d46d1a4d51 100644 (file)
 #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);
index 2ca86fb1dd7d634046ebffa9943fdf476075f5e5..2e22899a6b667ce8eff1d8d76e664df1eb5165ff 100644 (file)
 #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);
index b0820ed10fccccf41b5f38944f195d78d57c4c07..4a166541e16b9963637ac8cf2c2d13bc67d1eed7 100644 (file)
 #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 */
index 07f0f3f4ac97f2359e0cd316f08825e9224ca91c..f78be87fa67898e194bff85fdf70066cd8bfe9ba 100644 (file)
 #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);
index 97e5377358cc9709eef8ae0125b563a85c3f2f2f..028fef1cc847abae9eb0f1b3e50dad32cf7cbd94 100644 (file)
 #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,
index 017a3daa183a794a589490d1df00225521468d1b..ae83c122d69bc3892985187b272da355d63d3d35 100644 (file)
 #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);
index f4f2bd72ee90b633239d9d67eb74f7894d49de1c..fbd21c36c1bd00f92016c79d20f073d78ab3f6ac 100644 (file)
 #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);
index a20f3d45ec8776725b473eb1a7c4b4d0acf58b09..7b314b6edadd31a7ce9cc766ef8651341388199f 100644 (file)
 #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 */
index 6fcb6f74f5956ead3adf635027b40eaede1a9b07..d26f41b191ebffa63dcde819d8b2c6950b8f57ad 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -368,6 +370,7 @@ static void *rsa_dupctx(void *vprsactx)
     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'],
@@ -379,6 +382,7 @@ static void *rsa_dupctx(void *vprsactx)
                           ['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)
 {
@@ -458,6 +462,7 @@ static const OSSL_PARAM *rsa_gettable_ctx_params(ossl_unused void *vprsactx,
     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'],
@@ -472,6 +477,7 @@ static const OSSL_PARAM *rsa_gettable_ctx_params(ossl_unused void *vprsactx,
                           ['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[])
 {
index a8271a834193a2923c3772b00e68718c318bf16b..0f018754d4ff2c8ab667724238a0bef7bb2e7388 100644 (file)
@@ -6,9 +6,11 @@
  * 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"
 
@@ -158,9 +160,11 @@ static void *sm2_dupctx(void *vpsm2ctx)
     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)
 {
@@ -187,11 +191,13 @@ static const OSSL_PARAM *sm2_gettable_ctx_params(ossl_unused void *vpsm2ctx,
     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[])
 {
index 8a474395dd2f9751b326f5ea615cd5f7c99b661f..cf0e5eda036cdf2862a6f05291f783a2ba4d60b0 100644 (file)
@@ -6,9 +6,11 @@
  * 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 */
 
@@ -100,6 +102,7 @@ static int chacha20_poly1305_get_params(OSSL_PARAM params[])
                                           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'],
@@ -107,6 +110,7 @@ static int chacha20_poly1305_get_params(OSSL_PARAM params[])
                           ['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[])
 {
@@ -164,6 +168,7 @@ static const OSSL_PARAM *chacha20_poly1305_gettable_ctx_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'],
@@ -171,6 +176,7 @@ static const OSSL_PARAM *chacha20_poly1305_gettable_ctx_params
                           ['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
index b0d88f89d8e7a4d910ad80c34466eb04f59d3da3..411048d92393e75b3e75fbe2c504573b0af45a7f 100644 (file)
@@ -6,9 +6,11 @@
  * 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.
@@ -28,6 +30,7 @@ use OpenSSL::paramnames qw(produce_param_decoder);
 /*-
  * 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'],
@@ -40,6 +43,7 @@ use OpenSSL::paramnames qw(produce_param_decoder);
                           ['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)
 {
@@ -106,6 +110,7 @@ int ossl_cipher_generic_get_params(OSSL_PARAM params[], unsigned int md,
 
 #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'],
@@ -115,6 +120,7 @@ int ossl_cipher_generic_get_params(OSSL_PARAM params[], unsigned int md,
                           ['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)
@@ -124,6 +130,7 @@ const OSSL_PARAM *ossl_cipher_generic_gettable_ctx_params
 
 #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'],
@@ -131,6 +138,7 @@ const OSSL_PARAM *ossl_cipher_generic_gettable_ctx_params
                           ['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)
@@ -143,6 +151,7 @@ const OSSL_PARAM *ossl_cipher_generic_settable_ctx_params
  */
 #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'],
@@ -151,6 +160,7 @@ const OSSL_PARAM *ossl_cipher_generic_settable_ctx_params
                           ['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)
index 56bfb6d3dc2fbeaa5aaa69dfd049e349cd812e12..5cad4f2a55887b13f1cd5987c9cddf1099c4d1e5 100644 (file)
@@ -6,9 +6,11 @@
  * 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 */
 
@@ -69,12 +71,14 @@ static size_t ccm_get_ivlen(PROV_CCM_CTX *ctx)
     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
@@ -155,6 +159,7 @@ int ossl_ccm_set_ctx_params(void *vctx, const OSSL_PARAM params[])
     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'],
@@ -164,6 +169,7 @@ int ossl_ccm_set_ctx_params(void *vctx, const OSSL_PARAM params[])
                           ['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
index bd7431a83e0be43e3bda6ef3cd100d6185f3953e..fe35624ad58ac4384dd987559bd0ce2255a83991 100644 (file)
@@ -6,9 +6,11 @@
  * 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 */
 
@@ -143,6 +145,7 @@ static int setivinv(PROV_GCM_CTX *ctx, unsigned char *in, size_t inl)
     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'],
@@ -154,6 +157,7 @@ static int setivinv(PROV_GCM_CTX *ctx, unsigned char *in, size_t inl)
                           ['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
@@ -251,6 +255,7 @@ int ossl_gcm_get_ctx_params(void *vctx, OSSL_PARAM params[])
     return 1;
 }
 
+/* clang-format off */
 {- produce_param_decoder
         ('ossl_cipher_gcm_set_ctx_params',
          (['OSSL_CIPHER_PARAM_AEAD_IVLEN',           'ivlen', 'size_t'],
@@ -259,6 +264,7 @@ int ossl_gcm_get_ctx_params(void *vctx, OSSL_PARAM params[])
           ['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
index 5ec80bf17774dda8d76eb92766f97716b4df1ef9..78c5fd080a6aaa6fcf96f6a2652dfcc8cc0a3de5 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -23,9 +25,11 @@ use OpenSSL::paramnames qw(produce_param_decoder);
 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)
@@ -33,9 +37,11 @@ static const OSSL_PARAM *blake_gettable_ctx_params(ossl_unused void *ctx,
     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)
index ad9cec04be73b1f6b066e4c2c1ccc6e7a41a98f4..c0c3e562490c7157dda39fffe8d1532b6deeda0c 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -16,12 +18,14 @@ use OpenSSL::paramnames qw(produce_param_decoder);
 #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)
index ef1701ff0ff78389acf1cd3f86d1558ea08d16c8..9f0566722195bfe8ace44d410414ac77e8cd8d1c 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -586,10 +588,12 @@ static void *keccak_dupctx(void *ctx)
     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)
@@ -617,10 +621,12 @@ static int shake_get_ctx_params(void *vctx, OSSL_PARAM params[])
     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)
index 22e7ad58030e10659c341d9a36e2e03ee1cc5f82..6e18fba50edcab4b6838c81668507f463f1a734b 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -172,9 +174,11 @@ der2key_newctx(void *provctx, const struct keytype_desc_st *desc)
     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)
 {
index 3c3b794d865ce3501ba9d6cbc6f9a8e31bc9703f..756d2bd162bc06d747fbc0e09e28161415b7650f 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -58,9 +60,11 @@ static void epki2pki_freectx(void *vctx)
     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)
 {
index 7512da13092f1d38d3da45f1344092b510438780..4438cfb2bf6309c23513d3f8269e6b605dea1138 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -78,10 +80,12 @@ static void pem2der_freectx(void *vctx)
     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)
 {
index 8dfd57bb0d859ade61fb042619b6223c6d45097f..d47c1c77b0d99ec0ab175d130a6b0bb102da37db 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -88,9 +90,11 @@ static void pvk2key_freectx(void *vctx)
     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)
 {
index 210f2f5efde869aa591911bbee73e4b071a046bf..db9549cf23859c583b08d4815a99791addc8c8e9 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -57,9 +59,11 @@ static void spki2typespki_freectx(void *vctx)
     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)
 {
index d293f2256eb4cee09ba708dd1390f55755fb516e..bf3199503853b9d0242795c07bc6fc9d5c37b0cc 100644 (file)
@@ -6,9 +6,11 @@
  * 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.
@@ -1137,11 +1139,13 @@ static void key2any_freectx(void *vctx)
     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)
 {
index ec3f3050a799f8b28a20156bf6bd5f089ea1ab1c..3159f6a1d79f97995f08f3629cff0409aa5d7ce6 100644 (file)
@@ -6,9 +6,11 @@
  * 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.
@@ -93,9 +95,11 @@ static void key2ms_freectx(void *vctx)
     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)
 {
index 0aa4c85bb9909d387914baf34cc0986d59220873..c2e0f8086aa2054e6d335ee8db4a24f33af2d636 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -341,6 +343,7 @@ err:
     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'],
@@ -352,6 +355,7 @@ err:
                           ['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[])
 {
@@ -465,6 +469,7 @@ static const OSSL_PARAM *dh_settable_ctx_params(ossl_unused void *vpdhctx,
     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'],
@@ -473,6 +478,7 @@ static const OSSL_PARAM *dh_settable_ctx_params(ossl_unused void *vpdhctx,
                           ['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)
index 43e1b78d589f4af1f30d8ba15cebbb0dd160c31a..c1cf3f6bc3cb5d28a8e40cb7b74d8f371e13b5f9 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -248,6 +250,7 @@ void *ecdh_dupctx(void *vpecdhctx)
     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'],
@@ -259,6 +262,7 @@ void *ecdh_dupctx(void *vpecdhctx)
                           ['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[])
@@ -365,6 +369,7 @@ const OSSL_PARAM *ecdh_settable_ctx_params(ossl_unused void *vpecdhctx,
     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'],
@@ -373,6 +378,7 @@ const OSSL_PARAM *ecdh_settable_ctx_params(ossl_unused void *vpecdhctx,
                           ['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[])
index 5fa6595cedf0969391c5ded8ed0bc598cf130a0a..9057006fa2f704c43f8a2889c9112267871206ff 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -181,9 +183,11 @@ static void *ecx_dupctx(void *vecxctx)
 }
 
 #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,
index 3b99b5b548638e1f4b25584af2248045bd47fb2d..8babde57c949978c33356b1ed0ccd0ff0e83b157 100644 (file)
@@ -9,9 +9,11 @@
  * 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>
@@ -1394,6 +1396,7 @@ static int set_property_query(KDF_ARGON2 *ctx, const char *propq)
     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'],
@@ -1408,6 +1411,7 @@ static int set_property_query(KDF_ARGON2 *ctx, const char *propq)
                           ['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)
@@ -1501,9 +1505,11 @@ static const OSSL_PARAM *kdf_argon2_settable_ctx_params(ossl_unused void *ctx,
     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[])
 {
index 30b8ceb7bf3f1ae3126062fd2eeb16e575c23dc3..7bf043787dac415c67f357765afeeebc6c4b30bf 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -354,6 +356,7 @@ static int hkdf_common_set_ctx_params
 
 #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'],
@@ -365,6 +368,7 @@ static int hkdf_common_set_ctx_params
                           ['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[])
 {
@@ -395,6 +399,7 @@ static const OSSL_PARAM *kdf_hkdf_settable_ctx_params(ossl_unused void *ctx,
     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'],
@@ -404,6 +409,7 @@ static const OSSL_PARAM *kdf_hkdf_settable_ctx_params(ossl_unused void *ctx,
                           ['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)
@@ -523,6 +529,7 @@ static void *kdf_hkdf_fixed_digest_new(void *provctx, const char *digest)
 
 #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'],
@@ -532,6 +539,7 @@ static void *kdf_hkdf_fixed_digest_new(void *provctx, const char *digest)
                           ['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[])
 {
@@ -1008,6 +1016,7 @@ static int kdf_tls1_3_derive(void *vctx, unsigned char *key, size_t keylen,
 
 #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'],
@@ -1022,6 +1031,7 @@ static int kdf_tls1_3_derive(void *vctx, unsigned char *key, size_t keylen,
                           ['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[])
 {
index 64fd2b4f2c71020d16e43c05130d3d58f6115881..b80a5cc58cda77cfc1ebccfeb51c3ca8f22cd1f0 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -140,10 +142,12 @@ static int hmac_drbg_kdf_derive(void *vctx, unsigned char *out, size_t outlen,
     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[])
 {
@@ -179,6 +183,7 @@ static const OSSL_PARAM *hmac_drbg_kdf_gettable_ctx_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'],
@@ -186,6 +191,7 @@ static const OSSL_PARAM *hmac_drbg_kdf_gettable_ctx_params(
                           ['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[])
index 8131e8a56aa7acd80c6beb7fee77908cae368593..abf6c2790e24b3a339d8e451e1bf64989a16fc3b 100644 (file)
@@ -7,9 +7,11 @@
  * 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
@@ -368,6 +370,7 @@ done:
     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'],
@@ -384,6 +387,7 @@ done:
                           ['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[])
 {
@@ -485,10 +489,12 @@ static const OSSL_PARAM *kbkdf_settable_ctx_params(ossl_unused void *ctx,
     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[])
 {
index 029c668fbf332408db65e6492ea70d5f69e1c0c4..76a6e58fdf67b50e97363569d9bb20176965fd33 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -154,6 +156,7 @@ static int krb5kdf_derive(void *vctx, unsigned char *key, size_t keylen,
                    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'],
@@ -161,6 +164,7 @@ static int krb5kdf_derive(void *vctx, unsigned char *key, size_t keylen,
                           ['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[])
 {
@@ -192,9 +196,11 @@ static const OSSL_PARAM *krb5kdf_settable_ctx_params(ossl_unused void *ctx,
      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[])
 {
index 3441d33cb47d02029af7960d20dd5df7aa77aa6c..52d1e51b387bb4dd5b827c18af4d11d4fabaac3c 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -227,6 +229,7 @@ static int kdf_pbkdf1_derive(void *vctx, unsigned char *key, size_t keylen,
                                 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'],
@@ -235,6 +238,7 @@ static int kdf_pbkdf1_derive(void *vctx, unsigned char *key, size_t keylen,
                           ['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[])
 {
@@ -268,9 +272,11 @@ static const OSSL_PARAM *kdf_pbkdf1_settable_ctx_params(ossl_unused void *ctx,
     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[])
 {
index 06a7b99547b09c70e250ee9bcb1308486abbe3e6..e0a2b7f7f5b9794e3be3d86ee3c9c06a96558fc3 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -282,6 +284,7 @@ static int kdf_pbkdf2_derive(void *vctx, unsigned char *key, size_t keylen,
                          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'],
@@ -291,6 +294,7 @@ static int kdf_pbkdf2_derive(void *vctx, unsigned char *key, size_t keylen,
                           ['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[])
 {
@@ -356,10 +360,12 @@ static const OSSL_PARAM *kdf_pbkdf2_settable_ctx_params(ossl_unused void *ctx,
     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[])
 {
index 1495bcd2a6be9690029c09495d04a63f7ad87601..3a4007b2045ddd0b3464e2cd74f462d6904f33fe 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -243,6 +245,7 @@ static int kdf_pkcs12_derive(void *vctx, unsigned char *key, size_t keylen,
                             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'],
@@ -252,6 +255,7 @@ static int kdf_pkcs12_derive(void *vctx, unsigned char *key, size_t keylen,
                           ['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[])
 {
@@ -289,9 +293,11 @@ static const OSSL_PARAM *kdf_pkcs12_settable_ctx_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[])
 {
index 69ccb6bdae9e2ceba71704eeac98b64135ff9940..2408aad085689dd7b22f71f7a2fb8861d0cc3f23 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -181,6 +183,7 @@ static int kdf_pvk_derive(void *vctx, unsigned char *key, size_t keylen,
     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'],
@@ -188,6 +191,7 @@ static int kdf_pvk_derive(void *vctx, unsigned char *key, size_t keylen,
                           ['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[])
 {
@@ -219,9 +223,11 @@ static const OSSL_PARAM *kdf_pvk_settable_ctx_params(ossl_unused void *ctx,
     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[])
 {
index 4462b60dadd1efb59e7e931c7b30feddcabc0072..2a6573445680071e9ee042e4b476a132eb9dc4ba 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -218,6 +220,7 @@ static int is_power_of_two(uint64_t value)
     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'],
@@ -227,6 +230,7 @@ static int is_power_of_two(uint64_t value)
                           ['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[])
 {
@@ -284,9 +288,11 @@ static const OSSL_PARAM *kdf_scrypt_settable_ctx_params(ossl_unused void *ctx,
     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[])
 {
index 8ef5b688eb887a308d4012da779f639a44189657..20304153f250750c2412d4b80312ae15e2d0f35b 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -209,6 +211,7 @@ static int kdf_sshkdf_derive(void *vctx, unsigned char *key, size_t keylen,
                   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'],
@@ -220,6 +223,7 @@ static int kdf_sshkdf_derive(void *vctx, unsigned char *key, size_t keylen,
                           ['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[])
 {
@@ -297,10 +301,12 @@ static const OSSL_PARAM *kdf_sshkdf_settable_ctx_params(ossl_unused void *ctx,
     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[])
 {
index 3b3cada8d34aaa98b6bff37ae36d1aea7179ff4c..b707fc4818a8cb61c8bc55021ce7f203701e6013 100644 (file)
@@ -7,9 +7,11 @@
  * 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
@@ -610,6 +612,7 @@ static int sskdf_common_set_ctx_params
 
 #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'],
@@ -622,6 +625,7 @@ static int sskdf_common_set_ctx_params
                           ['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[])
 {
@@ -652,10 +656,12 @@ static const OSSL_PARAM *sskdf_settable_ctx_params(ossl_unused void *ctx,
     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[])
 {
@@ -684,6 +690,7 @@ static const OSSL_PARAM *sskdf_common_gettable_ctx_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'],
@@ -697,6 +704,7 @@ static const OSSL_PARAM *sskdf_common_gettable_ctx_params
                           ['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[])
 {
index 8dc4e44cd69f85fc8bd6b1dffbbc6463fe05a953..fc37f2ea39c4573e32df3efa5e7220e3080ef997 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -286,6 +288,7 @@ static int kdf_tls1_prf_derive(void *vctx, unsigned char *key, size_t keylen,
                         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'],
@@ -296,6 +299,7 @@ static int kdf_tls1_prf_derive(void *vctx, unsigned char *key, size_t keylen,
                           ['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[])
 {
@@ -428,10 +432,12 @@ static const OSSL_PARAM *kdf_tls1_prf_settable_ctx_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[])
 {
index 5b4dd0860995199d1895851478ac55f19bf747e5..c7e8b0e628dcdcad503206711e587f35a7d10ef4 100644 (file)
@@ -7,9 +7,11 @@
  * 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>
@@ -529,6 +531,7 @@ static int x942kdf_derive(void *vctx, unsigned char *key, size_t keylen,
     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'],
@@ -545,6 +548,7 @@ static int x942kdf_derive(void *vctx, unsigned char *key, size_t keylen,
                           ['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[])
 {
@@ -628,10 +632,12 @@ static const OSSL_PARAM *x942kdf_settable_ctx_params(ossl_unused void *ctx,
     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[])
 {
index 370ef833ada57818113d301eb3cd7567cad32d4a..fa40d25eec060035af25f6a611d6a954838b61a6 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -289,10 +291,12 @@ static int eckem_auth_decapsulate_init(void *vctx, void *vecx, void *vauthpub,
 }
 
 
+/* 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[])
 {
index bb9037dc4db877def22877837083ef683026fa85..1a9f77299c9bc65f62c3cdf429dd42a7a600e9a1 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -244,10 +246,12 @@ static int ecxkem_auth_decapsulate_init(void *vctx, void *vecx, void *vauthpub,
     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[])
 {
index 1c9a816e02c321ad3ec75db4a5b227f857341d96..2f71b341d8979d16b7adff218da228dbd25cd404 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -99,9 +101,11 @@ static int ml_kem_decapsulate_init(void *vctx, void *vkey,
     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[])
 {
index 1613dd7307e792b73d2c8750b9fc056862fea258..26ff6034d7ea9ca788c8171a89c75be6dc493ea8 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -176,9 +178,11 @@ static int rsakem_decapsulate_init(void *vprsactx, void *vrsa,
                        "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)
 {
@@ -199,10 +203,12 @@ static const OSSL_PARAM *rsakem_gettable_ctx_params(ossl_unused void *vprsactx,
     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[])
 {
index cd1a8fa354d9b3cd3e22ef7338a101a68fea86c5..c0931bc3ac8c5898cfcdb96fe231919eeaa2ea1f 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -206,10 +208,12 @@ static int ecx_match(const void *keydata1, const void *keydata2, int selection)
     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[])
 {
@@ -310,6 +314,7 @@ struct ecx_ed_common_get_params_st {
 
 #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'],
@@ -320,9 +325,11 @@ struct ecx_ed_common_get_params_st {
                           ['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'],
@@ -332,6 +339,7 @@ struct ecx_ed_common_get_params_st {
                           ['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,
@@ -445,10 +453,12 @@ static int set_property_query(ECX_KEY *ecxkey, const char *propq)
     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[])
 {
@@ -579,11 +589,13 @@ static void *ed448_gen_init(void *provctx, int selection,
     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[])
 {
index 8b6a941444d1536ce051612ab135d7d210a9cffa..cf7450945a9432ddb50b6536f93b726d5e58157e 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -67,9 +69,11 @@ static int lms_match(const void *keydata1, const void *keydata2, int selection)
     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[])
 {
index 9a550133cbc9c4f85fa8d92b7b2f9889f5fe355f..864887db44e5ffc8070844217ce1cba46c6fef75 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -182,11 +184,13 @@ static int ml_dsa_validate(const void *key_data, int selection, int check_type)
     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.
@@ -310,6 +314,7 @@ static const OSSL_PARAM *ml_dsa_imexport_types(int selection)
     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'],
@@ -320,6 +325,7 @@ static const OSSL_PARAM *ml_dsa_imexport_types(int selection)
                           ['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)
 {
@@ -519,10 +525,12 @@ static void *ml_dsa_gen(void *genctx, int evp_type)
     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[])
 {
index e92241a845822695894467539fabb3d0bbde2981..ddac19c50680afbbfb5b1fc2be5d1a106466ea08 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -332,11 +334,13 @@ err:
     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)
 {
@@ -490,6 +494,7 @@ static int ml_kem_import(void *vkey, int selection, const OSSL_PARAM params[])
     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'],
@@ -502,6 +507,7 @@ static int ml_kem_import(void *vkey, int selection, const OSSL_PARAM params[])
                           ['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)
 {
@@ -657,9 +663,11 @@ static int ml_kem_get_params(void *vkey, OSSL_PARAM params[])
     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)
 {
@@ -698,10 +706,12 @@ static int ml_kem_set_params(void *vkey, const OSSL_PARAM params[])
     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[])
 {
index aa80bd243d607dafa8c25eaf0db5129dbc9312c0..c29ebec24683b58f9601e007353b2154e9e40649 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -147,10 +149,12 @@ static int mlx_kem_match(const void *vkey1, const void *vkey2, int selection)
         && 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;
@@ -475,6 +479,7 @@ static int mlx_kem_import(void *vkey, int selection, const OSSL_PARAM params[])
     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'],
@@ -483,6 +488,7 @@ static int mlx_kem_import(void *vkey, int selection, const OSSL_PARAM params[])
                           ['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)
 {
@@ -584,10 +590,12 @@ static int mlx_kem_get_params(void *vkey, OSSL_PARAM params[])
     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)
 {
@@ -633,9 +641,11 @@ static int mlx_kem_set_params(void *vkey, const OSSL_PARAM params[])
     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[])
 {
index 129a11f92e9cefddc503e3072198e41a604784a1..8b027815ea011351bb10051b083b4b5f99249894 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -111,10 +113,12 @@ static int slh_dsa_validate(const void *key_data, int selection, int check_type)
     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[])
 {
@@ -141,6 +145,7 @@ static const OSSL_PARAM *slh_dsa_imexport_types(int selection)
     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'],
@@ -150,6 +155,7 @@ static const OSSL_PARAM *slh_dsa_imexport_types(int selection)
                           ['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)
 {
@@ -386,10 +392,12 @@ static void *slh_dsa_gen(void *genctx, const char *alg)
     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[])
 {
index 9095188b1e03afcd0c74baae6825d25e69c83019..3bfc1025a40877e67ead4b507a082fbfca123511 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -181,10 +183,12 @@ err:
     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[],
@@ -237,6 +241,7 @@ static const OSSL_PARAM *template_imexport_types(int selection)
     return NULL;
 }
 
+/* clang-format off */
 {- produce_param_decoder('template_get_params',
                          (['OSSL_PKEY_PARAM_BITS',               'bits',    'int'],
                           ['OSSL_PKEY_PARAM_SECURITY_BITS',      'secbits', 'int'],
@@ -244,6 +249,7 @@ static const OSSL_PARAM *template_imexport_types(int selection)
                           ['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[])
 {
@@ -277,9 +283,11 @@ static const OSSL_PARAM *template_gettable_params(void *provctx)
     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[])
 {
@@ -303,9 +311,11 @@ static const OSSL_PARAM *template_settable_params(void *provctx)
     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[])
 {
index 0d3b3d5d6dd40e725cc02e26081ad6e59e2adf6d..192a76defbcce41a301ff95ed6201a0b26a71e7c 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -203,11 +205,13 @@ static int cmac_final(void *vmacctx, unsigned char *out, size_t *outl,
     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)
@@ -235,6 +239,7 @@ static int cmac_get_ctx_params(void *vmacctx, OSSL_PARAM params[])
     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'],
@@ -242,6 +247,7 @@ static int cmac_get_ctx_params(void *vmacctx, OSSL_PARAM params[])
                           ['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)
index 0b60ac773922b31b344f971f2669dd483cd4260d..c51713afa07642a24054b3c290c702869d3a6331 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -170,9 +172,11 @@ static int gmac_final(void *vmacctx, unsigned char *out, size_t *outl,
     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)
 {
@@ -192,6 +196,7 @@ static int gmac_get_params(OSSL_PARAM params[])
     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'],
@@ -199,6 +204,7 @@ static int gmac_get_params(OSSL_PARAM params[])
                           ['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)
index e6ca3484038cde8bf83ff8d597386f518b406177..c7e4ed2bfc6ba9bb6d910907d94aa6d5833b0fd4 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -271,11 +273,13 @@ static int hmac_final(void *vmacctx, unsigned char *out, size_t *outl,
     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)
@@ -310,6 +314,7 @@ static int hmac_get_ctx_params(void *vmacctx, OSSL_PARAM params[])
     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'],
@@ -318,6 +323,7 @@ static int hmac_get_ctx_params(void *vmacctx, OSSL_PARAM params[])
                           ['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)
index 51b0f5b77d338e35376fe6236d603f58425cd264..8cee2ca461d8b66bee6ae1c053133b4da9999d65 100644 (file)
@@ -6,9 +6,11 @@
  * 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]"
@@ -392,11 +394,13 @@ static int kmac_final(void *vmacctx, unsigned char *out, size_t *outl,
     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)
@@ -428,6 +432,7 @@ static int kmac_get_ctx_params(void *vmacctx, OSSL_PARAM params[])
     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'],
@@ -436,6 +441,7 @@ static int kmac_get_ctx_params(void *vmacctx, OSSL_PARAM params[])
                           ['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)
index fe833c5966269e8a2377bd781859d09a3244c9f2..535327977edb4d37943ce33cc89e94bd60707c8b 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
 
@@ -137,9 +139,11 @@ static int poly1305_final(void *vmacctx, unsigned char *out, size_t *outl,
     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)
 {
@@ -159,9 +163,11 @@ static int poly1305_get_params(OSSL_PARAM params[])
     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)
index 5d8433e16d290d6c390dd29fdab16bea27ab199b..7e0535a7f798a2915cb3148a76aef722ae0953c8 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -152,11 +154,13 @@ static int siphash_final(void *vmacctx, unsigned char *out, size_t *outl,
     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)
@@ -181,12 +185,14 @@ static int siphash_get_ctx_params(void *vmacctx, OSSL_PARAM params[])
     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)
index 347ecf1ae6a3a3539a4ab8d48fc8f18ad8493c03..9a97f46143f19373cbfe98f0b7b0dd5ec821d935 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -673,6 +675,7 @@ static void drbg_ctr_free(void *vdrbg)
 
 #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'],
@@ -691,6 +694,7 @@ static void drbg_ctr_free(void *vdrbg)
                           ['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[])
 {
@@ -827,6 +831,7 @@ static int drbg_ctr_set_ctx_params_locked(PROV_DRBG *ctx,
 
 #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'],
@@ -835,6 +840,7 @@ static int drbg_ctr_set_ctx_params_locked(PROV_DRBG *ctx,
                           ['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[])
 {
index cf518007216a688e55e170a95ba1d845fa36fc7c..fd8d07030a2eba0f49769892bdb3cfdf5ba267cd 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -476,6 +478,7 @@ static void drbg_hash_free(void *vdrbg)
 
 #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'],
@@ -493,6 +496,7 @@ static void drbg_hash_free(void *vdrbg)
                           ['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[])
 {
@@ -627,6 +631,7 @@ static int drbg_hash_set_ctx_params_locked
 
 #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'],
@@ -636,6 +641,7 @@ static int drbg_hash_set_ctx_params_locked
                           ['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[])
 {
index a0ab3995593445f33b385fddef36b8687d71289a..dc3750c82844d3d60d11880c7d1af84c7e0cad7a 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -368,6 +370,7 @@ static void drbg_hmac_free(void *vdrbg)
 
 #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'],
@@ -386,6 +389,7 @@ static void drbg_hmac_free(void *vdrbg)
                           ['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[])
 {
@@ -549,6 +553,7 @@ static int drbg_hmac_set_ctx_params_locked
 
 #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'],
@@ -559,6 +564,7 @@ static int drbg_hmac_set_ctx_params_locked
                           ['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[])
 {
index 4be6aaa3622f9a8e55fba5663c20b498686dcbcb..40fad8bc8e82684ccc4c9acba2ac4474d1309c0e 100644 (file)
 /*
  * 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>
@@ -365,12 +367,14 @@ static void crng_test_unlock(ossl_unused void *vcrngt)
         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[])
 {
index 36c8d70a987c626c683088cf2ccefc8d2b801c4d..a84504f10865958cdbc257e0ae90c6b8e5bf366c 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -145,11 +147,13 @@ static int seed_src_reseed(void *vseed,
     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[])
 {
index db739727cffc7bf823a0fad45f8bca776ccd80ee..c4177074aee09cb325d93241565e81289b8e73b0 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -231,11 +233,13 @@ static int jitter_reseed(void *vseed,
     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[])
 {
index f6389d3662111c952c90c3b013f04b45eb7f34e4..aef10af9a9ca6edba6daa65f5fa1a1868a404b39 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -185,6 +187,7 @@ static size_t test_rng_nonce(void *vtest, unsigned char *out,
     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'],
@@ -192,6 +195,7 @@ static size_t test_rng_nonce(void *vtest, unsigned char *out,
                           ['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[])
 {
@@ -227,6 +231,7 @@ static const OSSL_PARAM *test_rng_gettable_ctx_params(ossl_unused void *vtest,
     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'],
@@ -234,6 +239,7 @@ static const OSSL_PARAM *test_rng_gettable_ctx_params(ossl_unused void *vtest,
                           ['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[])
 {
index b208992ee193306b145ab80c7d9ab0190d6dff38..b150eabc33fab6ae63706acf278940897cbbbba7 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -672,12 +674,14 @@ static void *dsa_dupctx(void *vpdsactx)
     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)
 {
@@ -749,6 +753,7 @@ static int dsa_common_set_ctx_params(PROV_DSA_CTX *pdsactx,
 
 #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'],
@@ -757,6 +762,7 @@ static int dsa_common_set_ctx_params(PROV_DSA_CTX *pdsactx,
                           ['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[])
 {
@@ -938,6 +944,7 @@ static const char **dsa_sigalg_query_key_types(void)
 
 #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'],
@@ -945,6 +952,7 @@ static const char **dsa_sigalg_query_key_types(void)
                           ['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)
index d2e954b1af6fc6f619d734f8d1dbf4bca6e29893..b8032770d406dcae4e305145587b1579abc6ed8e 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -675,6 +677,7 @@ static void *ecdsa_dupctx(void *vctx)
     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'],
@@ -683,6 +686,7 @@ static void *ecdsa_dupctx(void *vctx)
                           ['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)
 {
@@ -768,6 +772,7 @@ static int ecdsa_common_set_ctx_params(PROV_ECDSA_CTX *ctx,
 
 #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'],
@@ -778,6 +783,7 @@ static int ecdsa_common_set_ctx_params(PROV_ECDSA_CTX *ctx,
                           ['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[])
 {
@@ -959,6 +965,7 @@ static const char **ecdsa_sigalg_query_key_types(void)
 
 #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',
@@ -967,6 +974,7 @@ static const char **ecdsa_sigalg_query_key_types(void)
                           ['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)
index 3e58c22127d8df83cd02a2c2579fd4519d04737d..7804610b0e8213b83c3389d0e1dbd816c856902a 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -794,9 +796,11 @@ static const char **ed448_sigalg_query_key_types(void)
     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)
 {
@@ -821,10 +825,12 @@ static const OSSL_PARAM *eddsa_gettable_ctx_params(ossl_unused void *vpeddsactx,
     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)
@@ -911,9 +917,11 @@ static int eddsa_set_ctx_params(void *vpeddsactx, const OSSL_PARAM params[])
 }
 
 #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,
index a12618ac7159a74426bc4b4a7b7ec209cfb92daa..6b7f53ff9d55183c9c782862b6628719ef2049da 100644 (file)
@@ -6,9 +6,11 @@
  * 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"
 
@@ -368,6 +370,7 @@ static int ml_dsa_digest_verify(void *vctx,
 #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'],
@@ -375,7 +378,9 @@ static int ml_dsa_digest_verify(void *vctx,
                           ['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'],
@@ -384,6 +389,7 @@ static int ml_dsa_digest_verify(void *vctx,
                           ['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[])
 {
@@ -449,9 +455,11 @@ static const OSSL_PARAM *ml_dsa_settable_ctx_params(void *vctx,
         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)
index a692807069b1e736f0243b7438e0a7d747dcee64..f8e28977186a4bc4128a050a1fc8f0aae97a8c5d 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -1385,6 +1387,7 @@ static void *rsa_dupctx(void *vprsactx)
     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'],
@@ -1396,6 +1399,7 @@ static void *rsa_dupctx(void *vprsactx)
                           ['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)
 {
@@ -1518,6 +1522,7 @@ static int rsa_x931_padding_allowed(PROV_RSA_CTX *ctx)
 }
 #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'],
@@ -1532,9 +1537,11 @@ static int rsa_x931_padding_allowed(PROV_RSA_CTX *ctx)
                           ['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'],
@@ -1547,6 +1554,7 @@ static int rsa_x931_padding_allowed(PROV_RSA_CTX *ctx)
                           ['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[])
 {
@@ -1948,9 +1956,11 @@ static const char **rsa_sigalg_query_key_types(void)
     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)
index 909691637c9871bbab5093ae2cca85ab2875dab8..acce67ec99705749366c2dd44f1007e8bc605da3 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -260,12 +262,14 @@ static int slh_dsa_digest_verify(void *vctx, const uint8_t *sig, size_t siglen,
     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[])
 {
@@ -311,9 +315,11 @@ static const OSSL_PARAM *slh_dsa_settable_ctx_params(void *vctx,
     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)
index 0ce7f752e778630ffb2845145b11911459ab85a0..f8e4cc879e841f6a6f3bdf78baf2f983ace6a14f 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -399,11 +401,13 @@ static void *sm2sig_dupctx(void *vpsm2ctx)
     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)
 {
@@ -437,11 +441,13 @@ static const OSSL_PARAM *sm2sig_gettable_ctx_params(ossl_unused void *vpsm2ctx,
     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[])
 {
index d32624b9308ce8f564edd969e8bbcbe246a52915..db98913ddfd9be98991fdf726488f2ac11bbb7ef 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -33,9 +35,11 @@ void generic_free(void *keydata)
     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[])
 {
index c1007af34ccc2eb8b455a332c4ba972dd64ff398..eadfd53af0fb11eee38f8b0b378990d4ad126baf 100644 (file)
@@ -6,9 +6,11 @@
  * 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 */
 
@@ -293,12 +295,14 @@ void *file_attach(void *provctx, OSSL_CORE_BIO *cin)
  *  ------------------
  */
 
+/* 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)
 {
index c21c3ad3723a7811b5e72d0f7558d8bbc3917bbb..fc8df57df52a1cf283128752232c8790aeeccfae 100644 (file)
@@ -6,9 +6,11 @@
  * 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
@@ -70,9 +72,11 @@ static void any2obj_freectx(void *ctx)
     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[])
 {
index 5539e1e8467571f1b62b94ce530469f7b9634d7b..e0360dcc5fee170b21e74ef04ccaa39da1ed0ac1 100644 (file)
@@ -6,9 +6,11 @@
  * 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>
@@ -108,10 +110,12 @@ static void *winstore_attach(void *provctx, OSSL_CORE_BIO *cin)
     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[])
 {