]> git.ipfire.org Git - thirdparty/openssl.git/blame - providers/implementations/macs/blake2s_mac.c
mac: add a getter for the MAC block size.
[thirdparty/openssl.git] / providers / implementations / macs / blake2s_mac.c
CommitLineData
55a0a117 1/*
8020d79b 2 * Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
55a0a117
RL
3 *
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */
9
55a0a117 10/* Constants */
7f6b035b
MC
11#define BLAKE2_CTX BLAKE2S_CTX
12#define BLAKE2_PARAM BLAKE2S_PARAM
13#define BLAKE2_KEYBYTES BLAKE2S_KEYBYTES
14#define BLAKE2_OUTBYTES BLAKE2S_OUTBYTES
15#define BLAKE2_PERSONALBYTES BLAKE2S_PERSONALBYTES
16#define BLAKE2_SALTBYTES BLAKE2S_SALTBYTES
eb1b66f0 17#define BLAKE2_BLOCKBYTES BLAKE2S_BLOCKBYTES
55a0a117
RL
18
19/* Function names */
47c076ac
SL
20#define BLAKE2_PARAM_INIT ossl_blake2s_param_init
21#define BLAKE2_INIT_KEY ossl_blake2s_init_key
22#define BLAKE2_UPDATE ossl_blake2s_update
23#define BLAKE2_FINAL ossl_blake2s_final
24#define BLAKE2_PARAM_SET_DIGEST_LENGTH ossl_blake2s_param_set_digest_length
25#define BLAKE2_PARAM_SET_KEY_LENGTH ossl_blake2s_param_set_key_length
26#define BLAKE2_PARAM_SET_PERSONAL ossl_blake2s_param_set_personal
27#define BLAKE2_PARAM_SET_SALT ossl_blake2s_param_set_salt
55a0a117
RL
28
29/* OSSL_DISPATCH symbol */
1be63951 30#define BLAKE2_FUNCTIONS ossl_blake2smac_functions
55a0a117 31
7f6b035b 32#include "blake2_mac_impl.c"