Lines Matching refs:curve
5 This script dumps comb table of ec curve. When you add a new ec curve, you
6 can use this script to generate codes to define `<curve>_T` in ecp_curves.c
30 If you are trying to add new curve, you can follow these steps:
32 1. Define curve parameters (<curve>_p, <curve>_gx, etc...) in ecp_curves.c.
33 2. Add a macro to define <curve>_T to NULL following these parameters.
35 4. Run this script with an argument of new curve
40 Replace the <curve> in the above with the name of the curve you want to add."""
197 def compute_curve(curve):
198 """compute comb table for curve"""
203 '-DCURVE_ID=MBEDTLS_ECP_DP_%s' % curve.upper(),
204 '-DCURVE_NAME="%s"' % curve.lower(),
214 Usage: python %s <curve>...
217 curve Specify one or more curve names (e.g secp256r1)
227 How to add a new curve: %s""" % HOW_TO_ADD_NEW_CURVE)
244 for curve in sys.argv[1:]:
245 compute_curve(curve)