Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
skgen.c File Reference
#include <string.h>
#include <assert.h>
#include "primes.h"
#include "random.h"
#include "../CSIDH/csidh.h"
Include dependency graph for skgen.c:

Go to the source code of this file.

Functions

void csidh_private (private_key *priv)

Function Documentation

◆ csidh_private()

void csidh_private ( private_key * priv)

Definition at line 64 of file skgen.c.

65{
66 int i;
67 uint8_t rnd;
68 for (i = 0; i < (int)N; i++)
69 {
70 randombytes(&rnd, 1);
71 rnd = rnd & 0x1;
72 priv->e[i] = rnd - (rnd ^ 0x1);
73 };
74 // memset(priv->e, 1, sizeof(private_key));
75}
void randombytes(void *x, size_t l)
Definition rng.c:8
for i

References i, and randombytes().

Here is the call graph for this function: