summaryrefslogtreecommitdiffstats
path: root/libmariadb/plugins/auth/ref10/crypto_hash_sha512.h
blob: c023f30fc7e44746d01f4ea36cc9d1ea96f7dfa4 (plain)
1
2
3
4
5
6
7
#if defined(MYSQL_CLIENT) || defined(LIBMARIADB)
#include <ma_crypt.h>
#define crypto_hash_sha512(DST,SRC,SLEN) ma_hash(MA_HASH_SHA512, SRC, SLEN, DST)
#else
#include <mysql/service_sha2.h>
#define crypto_hash_sha512(DST,SRC,SLEN) my_sha512(DST,(char*)(SRC),SLEN)
#endif