Path: blob/main/crypto/openssl/providers/implementations/macs/blake2b_mac.c
48383 views
/*1* Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.2*3* Licensed under the Apache License 2.0 (the "License"). You may not use4* this file except in compliance with the License. You can obtain a copy5* in the file LICENSE in the source distribution or at6* https://www.openssl.org/source/license.html7*/89/* Constants */10#define BLAKE2_CTX BLAKE2B_CTX11#define BLAKE2_PARAM BLAKE2B_PARAM12#define BLAKE2_KEYBYTES BLAKE2B_KEYBYTES13#define BLAKE2_OUTBYTES BLAKE2B_OUTBYTES14#define BLAKE2_PERSONALBYTES BLAKE2B_PERSONALBYTES15#define BLAKE2_SALTBYTES BLAKE2B_SALTBYTES16#define BLAKE2_BLOCKBYTES BLAKE2B_BLOCKBYTES1718/* Function names */19#define BLAKE2_PARAM_INIT ossl_blake2b_param_init20#define BLAKE2_INIT_KEY ossl_blake2b_init_key21#define BLAKE2_UPDATE ossl_blake2b_update22#define BLAKE2_FINAL ossl_blake2b_final23#define BLAKE2_PARAM_SET_DIGEST_LENGTH ossl_blake2b_param_set_digest_length24#define BLAKE2_PARAM_SET_KEY_LENGTH ossl_blake2b_param_set_key_length25#define BLAKE2_PARAM_SET_PERSONAL ossl_blake2b_param_set_personal26#define BLAKE2_PARAM_SET_SALT ossl_blake2b_param_set_salt2728/* OSSL_DISPATCH symbol */29#define BLAKE2_FUNCTIONS ossl_blake2bmac_functions3031#include "blake2_mac_impl.c"32333435