blob: a5d615163b851e0635a505b9580c96f958198d5c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST
int
librecrypt_context_set_pepper(LIBRECRYPT_CONTEXT *ctx, enum librecrypt_hash_algorithm algo, const void *data, size_t len)
{
struct pepper *pepper;
pepper = librecrypt_context_get_pepper_(ctx, algo, len);
if (!pepper)
return -1;
pepper->data = data;
pepper->len = len;
return 0;
}
#else
int
main(void)
{
SET_UP_ALARM();
INIT_RESOURCE_TEST();
/* TODO test */
STOP_RESOURCE_TEST();
return 0;
}
#endif
|