summaryrefslogtreecommitdiffstats
path: root/tests/slow/crypto.c
blob: eedaf3fb0c0c27e498e93cece5b7791f0ca39bc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <config.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <gnutls/crypto.h>

/* this tests whether including crypto.h is sufficient to use
 * its functionality */

int main(int argc, char **argv)
{
	char output[64];
	assert(gnutls_hash_fast(GNUTLS_DIG_SHA256, "abc", 3, output) >= 0);
	return 0;
}