Tor
0.4.9.2-alpha-dev
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
b
c
d
f
g
h
l
m
n
o
p
r
s
v
Enumerations
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
g
h
i
m
n
o
p
q
r
s
t
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
ext
equix
hashx
src
context.h
1
/* Copyright (c) 2020 tevador <tevador@gmail.com> */
2
/* See LICENSE for licensing information */
3
4
#ifndef CONTEXT_H
5
#define CONTEXT_H
6
7
#include <stdbool.h>
8
9
#include "hashx.h"
10
#include "blake2.h"
11
#include "siphash.h"
12
#include "program.h"
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
18
HASHX_PRIVATE
extern
const
blake2b_param
hashx_blake2_params;
19
20
#ifdef __cplusplus
21
}
22
#endif
23
24
typedef
struct
hashx_program
hashx_program
;
25
26
/* HashX context. */
27
typedef
struct
hashx_ctx
{
28
uint8_t* compiler_mem;
29
hashx_type ctx_type;
30
hashx_type func_type;
31
hashx_program
program;
32
#ifndef HASHX_BLOCK_MODE
33
siphash_state
keys;
34
#else
35
blake2b_param
params;
36
#endif
37
}
hashx_ctx
;
38
39
#endif
blake2b_param
Definition:
blake2.h:31
hashx_ctx
Definition:
context.h:27
hashx_program
Definition:
program.h:16
siphash_state
Definition:
siphash.h:20
Generated by
1.9.4