Files
simplexmq/cbits/sha512.c
T
2024-09-13 22:07:00 +07:00

26 lines
557 B
C

#include <openssl/sha.h>
#include "sha512.h"
#if defined(__ANDROID__)
#include <android/log.h>
#else
#include <stdio.h>
#endif
void crypto_hash_sha512 (unsigned char *out,
const unsigned char *in,
unsigned long long inlen)
{
#ifdef __ANDROID__
__android_log_print(ANDROID_LOG_ERROR, "SimpleX", "LALAL %d", 10);
#else
printf("LALAL 10\n");
#endif
SHA512(in, inlen, out);
#ifdef __ANDROID__
__android_log_print(ANDROID_LOG_ERROR, "SimpleX", "LALAL %d", 11);
#else
printf("LALAL 11\n");
#endif
}