Subversion Repositories RepoView

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 nishi 1
/* $Id: sha512.c 3 2024-08-20 21:05:24Z nishi $ */
2
 
3
#include "rv_sha512.h"
4
 
5
#include <openssl/sha.h>
6
 
7
#include <stdlib.h>
8
#include <string.h>
9
 
10
unsigned char* rv_sha512(const char* string) {
11
	unsigned char* hash = malloc(SHA512_DIGEST_LENGTH);
12
	SHA512((const unsigned char*)string, strlen(string), hash);
13
	return hash;
14
}