mirror of
https://github.com/openssl/openssl.git
synced 2025-03-07 19:38:33 +08:00
This also moves the remaining parts of BLAKE2 digests to the default provider, and removes the legacy EVP implementation. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8877)
37 lines
1.2 KiB
C
37 lines
1.2 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
|
|
*/
|
|
|
|
#include <openssl/opensslconf.h>
|
|
#ifndef OPENSSL_NO_BLAKE2
|
|
|
|
/* Constants */
|
|
# 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
|
|
|
|
/* Function names */
|
|
# define BLAKE2_PARAM_INIT blake2s_param_init
|
|
# define BLAKE2_INIT_KEY blake2s_init_key
|
|
# define BLAKE2_UPDATE blake2s_update
|
|
# define BLAKE2_FINAL blake2s_final
|
|
# define BLAKE2_PARAM_SET_DIGEST_LENGTH blake2s_param_set_digest_length
|
|
# define BLAKE2_PARAM_SET_KEY_LENGTH blake2s_param_set_key_length
|
|
# define BLAKE2_PARAM_SET_PERSONAL blake2s_param_set_personal
|
|
# define BLAKE2_PARAM_SET_SALT blake2s_param_set_salt
|
|
|
|
/* OSSL_DISPATCH symbol */
|
|
# define BLAKE2_FUNCTIONS blake2smac_functions
|
|
|
|
# include "blake2_mac_impl.c"
|
|
|
|
#endif
|