providers/implementations/ciphers/cipher_rc4_hmac_md5.inc
providers/implementations/ciphers/cipher_sm2_xts.c
providers/implementations/ciphers/cipher_sm4_xts.inc
-providers/implementations/digests/blake2_prov.c
-providers/implementations/digests/digestcommon.c
-providers/implementations/digests/mdc2_prov.c
-providers/implementations/digests/sha3_prov.c
+providers/implementations/digests/blake2_prov.inc
+providers/implementations/digests/digestcommon.inc
+providers/implementations/digests/mdc2_prov.inc
+providers/implementations/digests/sha3_prov.inc
providers/implementations/include/prov/blake2_params.inc
providers/implementations/macs/cmac_prov.c
providers/implementations/macs/gmac_prov.c
providers/implementations/ciphers/cipher_null.inc \
providers/implementations/ciphers/cipher_rc4_hmac_md5.inc \
providers/implementations/ciphers/cipher_sm4_xts.inc \
- providers/implementations/digests/blake2_prov.c \
- providers/implementations/digests/digestcommon.c \
- providers/implementations/digests/mdc2_prov.c \
- providers/implementations/digests/sha3_prov.c \
+ providers/implementations/digests/blake2_prov.inc \
+ providers/implementations/digests/digestcommon.inc \
+ providers/implementations/digests/mdc2_prov.inc \
+ providers/implementations/digests/sha3_prov.inc \
providers/implementations/include/prov/blake2_params.inc \
providers/implementations/macs/cmac_prov.c \
providers/implementations/macs/gmac_prov.c \
providers/implementations/ciphers/cipher_null.inc \
providers/implementations/ciphers/cipher_rc4_hmac_md5.inc \
providers/implementations/ciphers/cipher_sm4_xts.inc \
- providers/implementations/digests/blake2_prov.c \
- providers/implementations/digests/digestcommon.c \
- providers/implementations/digests/mdc2_prov.c \
- providers/implementations/digests/sha3_prov.c \
+ providers/implementations/digests/blake2_prov.inc \
+ providers/implementations/digests/digestcommon.inc \
+ providers/implementations/digests/mdc2_prov.inc \
+ providers/implementations/digests/sha3_prov.inc \
providers/implementations/include/prov/blake2_params.inc \
providers/implementations/macs/cmac_prov.c \
providers/implementations/macs/gmac_prov.c \
providers/implementations/ciphers/cipher_rc4_hmac_md5.inc.in
GENERATE[providers/implementations/ciphers/cipher_sm4_xts.inc]=\
providers/implementations/ciphers/cipher_sm4_xts.inc.in
-GENERATE[providers/implementations/digests/blake2_prov.c]=\
- providers/implementations/digests/blake2_prov.c.in
-GENERATE[providers/implementations/digests/digestcommon.c]=\
- providers/implementations/digests/digestcommon.c.in
-GENERATE[providers/implementations/digests/mdc2_prov.c]=\
- providers/implementations/digests/mdc2_prov.c.in
-GENERATE[providers/implementations/digests/sha3_prov.c]=\
- providers/implementations/digests/sha3_prov.c.in
+GENERATE[providers/implementations/digests/blake2_prov.inc]=\
+ providers/implementations/digests/blake2_prov.inc.in
+GENERATE[providers/implementations/digests/digestcommon.inc]=\
+ providers/implementations/digests/digestcommon.inc.in
+GENERATE[providers/implementations/digests/mdc2_prov.inc]=\
+ providers/implementations/digests/mdc2_prov.inc.in
+GENERATE[providers/implementations/digests/sha3_prov.inc]=\
+ providers/implementations/digests/sha3_prov.inc.in
GENERATE[providers/implementations/include/prov/blake2_params.inc]=\
providers/implementations/include/prov/blake2_params.inc.in
GENERATE[providers/implementations/macs/cmac_prov.c]=\
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
-{-
-use OpenSSL::paramnames qw(produce_param_decoder);
--}
#include <string.h>
#include <openssl/crypto.h>
#include "prov/blake2.h"
#include "prov/digestcommon.h"
#include "prov/implementations.h"
+#include "providers/implementations/digests/blake2_prov.inc"
static OSSL_FUNC_digest_gettable_ctx_params_fn blake_gettable_ctx_params;
static OSSL_FUNC_digest_settable_ctx_params_fn blake_settable_ctx_params;
-{- produce_param_decoder('blake_get_ctx_params',
- (['OSSL_DIGEST_PARAM_SIZE', 'size', 'uint'],
- )); -}
-
static const OSSL_PARAM *blake_gettable_ctx_params(ossl_unused void *ctx,
ossl_unused void *pctx)
{
return blake_get_ctx_params_list;
}
-{- produce_param_decoder('blake_set_ctx_params',
- (['OSSL_DIGEST_PARAM_SIZE', 'size', 'uint'],
- )); -}
-
static const OSSL_PARAM *blake_settable_ctx_params(ossl_unused void *ctx,
ossl_unused void *pctx)
{
--- /dev/null
+/*
+ * Copyright 2025 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License 2.0 (the \"License\"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+{-
+use OpenSSL::paramnames qw(produce_param_decoder);
+-}
+
+{- produce_param_decoder('blake_get_ctx_params',
+ (['OSSL_DIGEST_PARAM_SIZE', 'size', 'uint'],
+ )); -}
+
+{- produce_param_decoder('blake_set_ctx_params',
+ (['OSSL_DIGEST_PARAM_SIZE', 'size', 'uint'],
+ )); -}
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
-{-
-use OpenSSL::paramnames qw(produce_param_decoder);
--}
#include <string.h>
#include <openssl/err.h>
#include "prov/digestcommon.h"
#include "internal/common.h"
-{- 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'],
- )); -}
+#include "providers/implementations/digests/digestcommon.inc"
int ossl_digest_default_get_params(OSSL_PARAM params[], size_t blksz,
size_t paramsz, unsigned long flags)
--- /dev/null
+/*
+ * Copyright 2025 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License 2.0 (the \"License\"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+{-
+use OpenSSL::paramnames qw(produce_param_decoder);
+-}
+
+{- 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'],
+ )); -}
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
-{-
-use OpenSSL::paramnames qw(produce_param_decoder);
--}
/*
* MDC2 low level APIs are deprecated for public use, but still ok for
#include <internal/common.h>
#include "prov/digestcommon.h"
#include "prov/implementations.h"
+#include "providers/implementations/digests/mdc2_prov.inc"
static OSSL_FUNC_digest_set_ctx_params_fn mdc2_set_ctx_params;
static OSSL_FUNC_digest_settable_ctx_params_fn mdc2_settable_ctx_params;
-{- produce_param_decoder('mdc2_set_ctx_params',
- (['OSSL_DIGEST_PARAM_PAD_TYPE', 'pad', 'uint'],
- )); -}
-
static const OSSL_PARAM *mdc2_settable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
{
--- /dev/null
+/*
+ * Copyright 2025 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License 2.0 (the \"License\"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+{-
+use OpenSSL::paramnames qw(produce_param_decoder);
+-}
+
+{- produce_param_decoder('mdc2_set_ctx_params',
+ (['OSSL_DIGEST_PARAM_PAD_TYPE', 'pad', 'uint'],
+ )); -}
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
-{-
-use OpenSSL::paramnames qw(produce_param_decoder);
--}
#include <string.h>
#include <openssl/core_names.h>
#include "prov/digestcommon.h"
#include "prov/implementations.h"
#include "internal/common.h"
+#include "providers/implementations/digests/sha3_prov.inc"
#define SHA3_FLAGS PROV_DIGEST_FLAG_ALGID_ABSENT
#define SHAKE_FLAGS (PROV_DIGEST_FLAG_XOF | PROV_DIGEST_FLAG_ALGID_ABSENT)
return ret;
}
-{- produce_param_decoder('shake_get_ctx_params',
- (['OSSL_DIGEST_PARAM_XOFLEN', 'xoflen', 'size_t'],
- ['OSSL_DIGEST_PARAM_SIZE', 'size', 'size_t'],
- )); -}
-
static const OSSL_PARAM *shake_gettable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
{
return 1;
}
-{- produce_param_decoder('shake_set_ctx_params',
- (['OSSL_DIGEST_PARAM_XOFLEN', 'xoflen', 'size_t'],
- ['OSSL_DIGEST_PARAM_SIZE', 'xoflen', 'size_t'],
- )); -}
-
static const OSSL_PARAM *shake_settable_ctx_params(ossl_unused void *ctx,
ossl_unused void *provctx)
{
--- /dev/null
+/*
+ * Copyright 2025 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License 2.0 (the \"License\"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+{-
+use OpenSSL::paramnames qw(produce_param_decoder);
+-}
+
+{- produce_param_decoder('shake_get_ctx_params',
+ (['OSSL_DIGEST_PARAM_XOFLEN', 'xoflen', 'size_t'],
+ ['OSSL_DIGEST_PARAM_SIZE', 'size', 'size_t'],
+ )); -}
+
+{- produce_param_decoder('shake_set_ctx_params',
+ (['OSSL_DIGEST_PARAM_XOFLEN', 'xoflen', 'size_t'],
+ ['OSSL_DIGEST_PARAM_SIZE', 'xoflen', 'size_t'],
+ )); -}