-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please provide an option for computing curves containning a specific order #26
Comments
This can be tricky. Combining the CM method with requesting other specific properties of the curves is not easy (or sometimes even possible). Would this work for your use case: dcb4245? You can specify the curve order as a list of factors. |
@J08nY what I m looking about is to compute an anomalous or supersingular curve with a given order. I can also accept the order to have a specific prime factor. With the other prime factor allowed to be random. |
I just found out that you can generate a supersingular curve for a given prime (and thus by definition a given order).
Then, when you get prompted for the prime p you simply enter it and get the curve. For the anomalous case I am not sure there is a viable algorithm (at least I haven't seen it published). If you have |
A bitsize isn’t the same thing as a specific given prime. And even then, the problem is if you generate a degree 12 curve for large characteristics, then the resulting curve is secure against the DLP whereas I want to attack ECDLP. Or can you provide a way to generate curves embedding degrees equal to 3 or 6 please ? |
You can enter the specific given prime. Just not as a command-line argument but interactively once ecgen starts executing. Try it out. Something like this also works
generates a 32 bit supersingular curve with prime = 11 (and order = 12), which is not really 32 bits, that is just the upper bound in this case. So just pick a larger prime and generate away :)
Hmm, for this I would go the way of known curve families, like BN, BLS, MNT or KSS. You can find more about them (and generating Python code) here: https://neuromancer.sk/std/methods/bn/ |
But then the prime curve doesn t contains the order I want. I m thinking about both having a specific order and a lower embedding degree than 12. |
I know of no method that would get you that, sorry.
For curves from the mentioned families you go the other way, pick an integer |
I just discovered this repo: https://github.com/scipr-lab/ecfactory that seems like it implements a bunch of stuff you are interested in. |
@J08nY I’m only interested in specific things. I don’t see it implement anything that I asked for here. |
I'm sorry then, you can implement it yourself. |
I lack the knowlwedge to understand most mathematical notations. So I can’t |
Mixed with specific parameter like finding a supersingular curve, it can be challenging to find a curve with a given order.
Instead, please provide an option for finding a curve whose order s factor contains a specific Integer.
The text was updated successfully, but these errors were encountered: