2019-05-07 18:40:25 +08:00
|
|
|
/*
|
2020-10-15 21:10:06 +08:00
|
|
|
* Copyright 2018-2020 The OpenSSL Project Authors. All Rights Reserved.
|
2019-05-07 18:40:25 +08:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Constants */
|
2019-08-28 21:57:56 +08:00
|
|
|
#define BLAKE2_CTX BLAKE2S_CTX
|
|
|
|
#define BLAKE2_PARAM BLAKE2S_PARAM
|
|
|
|
#define BLAKE2_KEYBYTES BLAKE2S_KEYBYTES
|
|
|
|
#define BLAKE2_OUTBYTES BLAKE2S_OUTBYTES
|
|
|
|
#define BLAKE2_PERSONALBYTES BLAKE2S_PERSONALBYTES
|
|
|
|
#define BLAKE2_SALTBYTES BLAKE2S_SALTBYTES
|
2019-05-07 18:40:25 +08:00
|
|
|
|
|
|
|
/* Function names */
|
Fix external symbols in the provider digest implementations.
Partial fix for #12964
This adds ossl_ names for the following symbols:
blake2b512_init,blake2b_final,blake2b_init,blake2b_init_key,
blake2b_param_init,blake2b_param_set_digest_length,blake2b_param_set_key_length,
blake2b_param_set_personal,blake2b_param_set_salt,blake2b_update,
blake2s256_init,blake2s_final,blake2s_init,blake2s_init_key,
blake2s_param_init,blake2s_param_set_digest_length,blake2s_param_set_key_length,
blake2s_param_set_personal,blake2s_param_set_salt,blake2s_update,
digest_default_get_params,digest_default_gettable_params
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14211)
2021-02-17 17:56:35 +08:00
|
|
|
#define BLAKE2_PARAM_INIT ossl_blake2s_param_init
|
|
|
|
#define BLAKE2_INIT_KEY ossl_blake2s_init_key
|
|
|
|
#define BLAKE2_UPDATE ossl_blake2s_update
|
|
|
|
#define BLAKE2_FINAL ossl_blake2s_final
|
|
|
|
#define BLAKE2_PARAM_SET_DIGEST_LENGTH ossl_blake2s_param_set_digest_length
|
|
|
|
#define BLAKE2_PARAM_SET_KEY_LENGTH ossl_blake2s_param_set_key_length
|
|
|
|
#define BLAKE2_PARAM_SET_PERSONAL ossl_blake2s_param_set_personal
|
|
|
|
#define BLAKE2_PARAM_SET_SALT ossl_blake2s_param_set_salt
|
2019-05-07 18:40:25 +08:00
|
|
|
|
|
|
|
/* OSSL_DISPATCH symbol */
|
2020-09-28 10:28:29 +08:00
|
|
|
#define BLAKE2_FUNCTIONS ossl_blake2smac_functions
|
2019-05-07 18:40:25 +08:00
|
|
|
|
2019-08-28 21:57:56 +08:00
|
|
|
#include "blake2_mac_impl.c"
|