Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
cgl_hash.h
Go to the documentation of this file.
1//
2// Charles-Goren-Lauter Hash function
3//
4
5#ifndef SSEC_CGL_HASH_H
6#define SSEC_CGL_HASH_H
7
8#include "isogeny_walks.h"
9
10typedef struct cgl_hash_2_ctx {
11 fp2_t j0; // This corresponds with jā‚€
12 fp2_t j_; // This corresponds with j₋₁
14
15void cgl_hash_init_2(cgl_hash_2_ctx *ctx, fp2_t input_A);
16void cgl_hash_digest_2(fp2_t *output, const cgl_hash_2_ctx *ctx, const uint8_t *input_bitstring);
17
22
23void cgl_hash_init_3(cgl_hash_3_ctx *ctx, fp2_t input_A, uint8_t choice);
24void cgl_hash_digest_3(fp2_t *output, const cgl_hash_3_ctx *ctx, const uint8_t *input_trit_string);
25
26#endif // SSEC_CGL_HASH_H
void cgl_hash_digest_3(fp2_t *output, const cgl_hash_3_ctx *ctx, const uint8_t *input_trit_string)
Definition cgl_hash.c:23
void cgl_hash_digest_2(fp2_t *output, const cgl_hash_2_ctx *ctx, const uint8_t *input_bitstring)
Definition cgl_hash.c:9
void cgl_hash_init_2(cgl_hash_2_ctx *ctx, fp2_t input_A)
Definition cgl_hash.c:16
void cgl_hash_init_3(cgl_hash_3_ctx *ctx, fp2_t input_A, uint8_t choice)
Definition cgl_hash.c:32
Definition fp2.h:10