summaryrefslogtreecommitdiff
path: root/providers/implementations/include/prov/blake2.h
diff options
context:
space:
mode:
Diffstat (limited to 'providers/implementations/include/prov/blake2.h')
-rw-r--r--providers/implementations/include/prov/blake2.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/providers/implementations/include/prov/blake2.h b/providers/implementations/include/prov/blake2.h
index d18cbc708c..379dfedc0b 100644
--- a/providers/implementations/include/prov/blake2.h
+++ b/providers/implementations/include/prov/blake2.h
@@ -14,6 +14,7 @@
# include <openssl/e_os2.h>
# include <stddef.h>
+# include <crypto/evp.h>
# define BLAKE2S_BLOCKBYTES 64
# define BLAKE2S_OUTBYTES 32
@@ -82,6 +83,11 @@ struct blake2b_ctx_st {
typedef struct blake2s_ctx_st BLAKE2S_CTX;
typedef struct blake2b_ctx_st BLAKE2B_CTX;
+struct blake2b_md_data_st {
+ BLAKE2B_CTX ctx;
+ BLAKE2B_PARAM params;
+};
+
int ossl_blake2s256_init(void *ctx);
int ossl_blake2b512_init(void *ctx);
@@ -91,6 +97,9 @@ int ossl_blake2b_init_key(BLAKE2B_CTX *c, const BLAKE2B_PARAM *P,
int ossl_blake2b_update(BLAKE2B_CTX *c, const void *data, size_t datalen);
int ossl_blake2b_final(unsigned char *md, BLAKE2B_CTX *c);
+OSSL_FUNC_digest_set_ctx_params_fn ossl_blake2b_set_ctx_params;
+OSSL_FUNC_digest_settable_ctx_params_fn ossl_blake2b_settable_ctx_params;
+
/*
* These setters are internal and do not check the validity of their parameters.
* See blake2b_mac_ctrl for validation logic.