24 lines
428 B
C
24 lines
428 B
C
#ifndef __HASH_H__
|
|
#define __HASH_H__
|
|
|
|
#include "miracl.h"
|
|
#include "mirdef.h"
|
|
|
|
//hash1(ID, Q, PK_pub, h_1_big)
|
|
void hash1(char *ID, epoint *Q, epoint *PK_pub, big p, big h_1_big);
|
|
|
|
//hash2(ID, X, h_2_big)
|
|
void hash2(char *ID, epoint *X, big p, big h_2_big);
|
|
|
|
//hash3(ID, msg, Q, U, PK_pub, h_3_big)
|
|
void hash3(
|
|
char *ID,
|
|
char *msg,
|
|
epoint *Q,
|
|
epoint *U,
|
|
epoint *PK_pub,
|
|
big p,
|
|
big h_3_big
|
|
);
|
|
|
|
#endif |