aboutsummaryrefslogtreecommitdiff
path: root/src/math/twists.h
blob: 324904776b673c3065d8e72878caac5d1dfcc056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * ecgen, tool for generating Elliptic curve domain parameters
 * Copyright (C) 2017-2018 J08nY
 */
#ifndef ECGEN_TWIST_H
#define ECGEN_TWIST_H

#include "misc/types.h"

/**
 * @brief Twists the <code>of</code> curve randomly.
 * @param to The result of the twist.
 * @param of The curve to be twisted.
 */
void curve_twist_rand(curve_t *to, const curve_t *of);

#endif  // ECGEN_TWIST_H