ezmlmx 0.68
ezmlmx
Loading...
Searching...
No Matches
surfpcs.h
Go to the documentation of this file.
1#ifndef SURFPCS_H
2#define SURFPCS_H
3
4#include "uint_t.h"
5
6typedef struct {
7 uint32 seed[32];
8 uint32 sum[8];
9 uint32 out[8];
10 uint32 in[12];
11 int todo;
12} surfpcs;
13
14#define SURFPCS_LEN 32
15
16extern void surfpcs_init(surfpcs *s,const uint32 k[32]);
17extern void surfpcs_add(surfpcs *s,const unsigned char *x,unsigned int n);
18extern void surfpcs_out(surfpcs *s,unsigned char h[32]);
19
20#endif
void surfpcs_add(surfpcs *s, const unsigned char *x, unsigned int n)
Definition surfpcs.c:26
void surfpcs_init(surfpcs *s, const uint32 k[32])
Definition surfpcs.c:8
void surfpcs_out(surfpcs *s, unsigned char h[32])
Definition surfpcs.c:44
uint32 sum[8]
Definition surfpcs.h:8
uint32 out[8]
Definition surfpcs.h:9
uint32 in[12]
Definition surfpcs.h:10
int todo
Definition surfpcs.h:11
uint32 seed[32]
Definition surfpcs.h:7