xref: /netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/macs/blake2s_mac.c (revision b0d1725196a7921d003d2c66a14f186abda4176b)
1*b0d17251Schristos /*
2*b0d17251Schristos  * Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
3*b0d17251Schristos  *
4*b0d17251Schristos  * Licensed under the Apache License 2.0 (the "License").  You may not use
5*b0d17251Schristos  * this file except in compliance with the License.  You can obtain a copy
6*b0d17251Schristos  * in the file LICENSE in the source distribution or at
7*b0d17251Schristos  * https://www.openssl.org/source/license.html
8*b0d17251Schristos  */
9*b0d17251Schristos 
10*b0d17251Schristos /* Constants */
11*b0d17251Schristos #define BLAKE2_CTX BLAKE2S_CTX
12*b0d17251Schristos #define BLAKE2_PARAM BLAKE2S_PARAM
13*b0d17251Schristos #define BLAKE2_KEYBYTES BLAKE2S_KEYBYTES
14*b0d17251Schristos #define BLAKE2_OUTBYTES BLAKE2S_OUTBYTES
15*b0d17251Schristos #define BLAKE2_PERSONALBYTES BLAKE2S_PERSONALBYTES
16*b0d17251Schristos #define BLAKE2_SALTBYTES BLAKE2S_SALTBYTES
17*b0d17251Schristos #define BLAKE2_BLOCKBYTES BLAKE2S_BLOCKBYTES
18*b0d17251Schristos 
19*b0d17251Schristos /* Function names */
20*b0d17251Schristos #define BLAKE2_PARAM_INIT ossl_blake2s_param_init
21*b0d17251Schristos #define BLAKE2_INIT_KEY ossl_blake2s_init_key
22*b0d17251Schristos #define BLAKE2_UPDATE ossl_blake2s_update
23*b0d17251Schristos #define BLAKE2_FINAL ossl_blake2s_final
24*b0d17251Schristos #define BLAKE2_PARAM_SET_DIGEST_LENGTH ossl_blake2s_param_set_digest_length
25*b0d17251Schristos #define BLAKE2_PARAM_SET_KEY_LENGTH ossl_blake2s_param_set_key_length
26*b0d17251Schristos #define BLAKE2_PARAM_SET_PERSONAL ossl_blake2s_param_set_personal
27*b0d17251Schristos #define BLAKE2_PARAM_SET_SALT ossl_blake2s_param_set_salt
28*b0d17251Schristos 
29*b0d17251Schristos /* OSSL_DISPATCH symbol */
30*b0d17251Schristos #define BLAKE2_FUNCTIONS ossl_blake2smac_functions
31*b0d17251Schristos 
32*b0d17251Schristos #include "blake2_mac_impl.c"
33