mirror of https://github.com/openssl/openssl.git
blake2: add generated param decoder
Reviewed-by: Paul Yang <paulyang.inf@gmail.com> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/28142)
This commit is contained in:
parent
acb316bc20
commit
d11c9541ef
|
@ -112,6 +112,7 @@ providers/implementations/ciphers/cipher_chacha20_poly1305.c
|
||||||
providers/implementations/digests/blake2_prov.c
|
providers/implementations/digests/blake2_prov.c
|
||||||
providers/implementations/digests/digestcommon.c
|
providers/implementations/digests/digestcommon.c
|
||||||
providers/implementations/digests/sha3_prov.c
|
providers/implementations/digests/sha3_prov.c
|
||||||
|
providers/implementations/include/prov/blake2_params.inc
|
||||||
providers/implementations/macs/cmac_prov.c
|
providers/implementations/macs/cmac_prov.c
|
||||||
providers/implementations/macs/gmac_prov.c
|
providers/implementations/macs/gmac_prov.c
|
||||||
providers/implementations/macs/hmac_prov.c
|
providers/implementations/macs/hmac_prov.c
|
||||||
|
|
|
@ -74,9 +74,10 @@ DEPEND[]=include/openssl/asn1.h \
|
||||||
providers/implementations/ciphers/cipher_chacha20_poly1305.c \
|
providers/implementations/ciphers/cipher_chacha20_poly1305.c \
|
||||||
providers/implementations/digests/blake2_prov.c \
|
providers/implementations/digests/blake2_prov.c \
|
||||||
providers/implementations/digests/digestcommon.c \
|
providers/implementations/digests/digestcommon.c \
|
||||||
providers/implementations/digests/sha3_prov.c
|
providers/implementations/digests/sha3_prov.c \
|
||||||
providers/implementations/macs/gmac_prov.c \
|
providers/implementations/include/prov/blake2_params.inc \
|
||||||
providers/implementations/macs/cmac_prov.c \
|
providers/implementations/macs/cmac_prov.c \
|
||||||
|
providers/implementations/macs/gmac_prov.c \
|
||||||
providers/implementations/macs/hmac_prov.c \
|
providers/implementations/macs/hmac_prov.c \
|
||||||
providers/implementations/macs/kmac_prov.c \
|
providers/implementations/macs/kmac_prov.c \
|
||||||
providers/implementations/macs/poly1305_prov.c \
|
providers/implementations/macs/poly1305_prov.c \
|
||||||
|
@ -142,6 +143,7 @@ DEPEND[providers/implementations/kdfs/argon2.c \
|
||||||
providers/implementations/digests/blake2_prov.c \
|
providers/implementations/digests/blake2_prov.c \
|
||||||
providers/implementations/digests/digestcommon.c \
|
providers/implementations/digests/digestcommon.c \
|
||||||
providers/implementations/digests/sha3_prov.c \
|
providers/implementations/digests/sha3_prov.c \
|
||||||
|
providers/implementations/include/prov/blake2_params.inc \
|
||||||
providers/implementations/macs/cmac_prov.c \
|
providers/implementations/macs/cmac_prov.c \
|
||||||
providers/implementations/macs/gmac_prov.c \
|
providers/implementations/macs/gmac_prov.c \
|
||||||
providers/implementations/macs/hmac_prov.c \
|
providers/implementations/macs/hmac_prov.c \
|
||||||
|
@ -203,6 +205,8 @@ GENERATE[providers/implementations/digests/digestcommon.c]=\
|
||||||
providers/implementations/digests/digestcommon.c.in
|
providers/implementations/digests/digestcommon.c.in
|
||||||
GENERATE[providers/implementations/digests/sha3_prov.c]=\
|
GENERATE[providers/implementations/digests/sha3_prov.c]=\
|
||||||
providers/implementations/digests/sha3_prov.c.in
|
providers/implementations/digests/sha3_prov.c.in
|
||||||
|
GENERATE[providers/implementations/include/prov/blake2_params.inc]=\
|
||||||
|
providers/implementations/include/prov/blake2_params.inc.in
|
||||||
GENERATE[providers/implementations/macs/cmac_prov.c]=\
|
GENERATE[providers/implementations/macs/cmac_prov.c]=\
|
||||||
providers/implementations/macs/cmac_prov.c.in
|
providers/implementations/macs/cmac_prov.c.in
|
||||||
GENERATE[providers/implementations/macs/gmac_prov.c]=\
|
GENERATE[providers/implementations/macs/gmac_prov.c]=\
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
/*
|
||||||
|
* 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);
|
||||||
|
-}
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
#include "internal/common.h"
|
||||||
|
|
||||||
|
{- produce_param_decoder('blake2_get_ctx',
|
||||||
|
(['MAC_PARAM_SIZE', 'size', 'size_t'],
|
||||||
|
['MAC_PARAM_BLOCK_SIZE', 'bsize', 'size_t'],
|
||||||
|
)); -}
|
||||||
|
|
||||||
|
{- produce_param_decoder('blake2_mac_set_ctx',
|
||||||
|
(['MAC_PARAM_SIZE', 'size', 'size_t'],
|
||||||
|
['MAC_PARAM_KEY', 'key', 'octet_string'],
|
||||||
|
['MAC_PARAM_CUSTOM', 'cust', 'octet_string'],
|
||||||
|
['MAC_PARAM_SALT', 'salt', 'octet_string'],
|
||||||
|
)); -}
|
||||||
|
|
Loading…
Reference in New Issue