1#ifndef BASE_HASH_CTXT_H
2#define BASE_HASH_CTXT_H
7#if defined(CONF_OPENSSL)
8#include <openssl/md5.h>
9#include <openssl/sha.h>
11#include <engine/external/md5/md5.h>
14#if defined(CONF_OPENSSL)
22 unsigned char buf[64];
24typedef md5_state_t MD5_CTX;
28void sha256_update(SHA256_CTX *ctxt,
const void *data,
size_t data_len);
32void md5_update(MD5_CTX *ctxt,
const void *data,
size_t data_len);
void sha256_update(SHA256_CTX *ctxt, const void *data, size_t data_len)
Definition: hash_openssl.cpp:14
SHA256_DIGEST sha256_finish(SHA256_CTX *ctxt)
Definition: hash_openssl.cpp:19
void md5_update(MD5_CTX *ctxt, const void *data, size_t data_len)
Definition: hash_openssl.cpp:31
MD5_DIGEST md5_finish(MD5_CTX *ctxt)
Definition: hash_openssl.cpp:36
void md5_init(MD5_CTX *ctxt)
Definition: hash_openssl.cpp:26
void sha256_init(SHA256_CTX *ctxt)
Definition: hash_openssl.cpp:9
float length(const vector2_base< float > &a)
Definition: vmath.h:104