openssl/providers/implementations/macs/blake2b_mac.c
Pauli 1be63951f8 prov: prefix all OSSL_DISPATCH tables names with ossl_
This stops them leaking into other namespaces in a static build.
They remain internal.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13013)
2020-09-29 16:31:46 +10:00

33 lines
1.1 KiB
C

/*
* Copyright 2018 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
*/
/* Constants */
#define BLAKE2_CTX BLAKE2B_CTX
#define BLAKE2_PARAM BLAKE2B_PARAM
#define BLAKE2_KEYBYTES BLAKE2B_KEYBYTES
#define BLAKE2_OUTBYTES BLAKE2B_OUTBYTES
#define BLAKE2_PERSONALBYTES BLAKE2B_PERSONALBYTES
#define BLAKE2_SALTBYTES BLAKE2B_SALTBYTES
/* Function names */
#define BLAKE2_PARAM_INIT blake2b_param_init
#define BLAKE2_INIT_KEY blake2b_init_key
#define BLAKE2_UPDATE blake2b_update
#define BLAKE2_FINAL blake2b_final
#define BLAKE2_PARAM_SET_DIGEST_LENGTH blake2b_param_set_digest_length
#define BLAKE2_PARAM_SET_KEY_LENGTH blake2b_param_set_key_length
#define BLAKE2_PARAM_SET_PERSONAL blake2b_param_set_personal
#define BLAKE2_PARAM_SET_SALT blake2b_param_set_salt
/* OSSL_DISPATCH symbol */
#define BLAKE2_FUNCTIONS ossl_blake2bmac_functions
#include "blake2_mac_impl.c"