ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 05 Feb 2013 08:36:37 -0600Elliptic Curve functions don't seem to exist?https://ask.sagemath.org/question/9772/elliptic-curve-functions-dont-seem-to-exist/Hello. I'm trying to design a puzzle that involves finding a weakness in an elliptic curve cryptography application. I see descriptions of past puzzles that others have made, but they use SAGE with commands like "E = EllipticCurve(GF(c), [a, b])". From my attempts to uses SAGE online before installing, and from looking through the manual, it looks like there aren't any functions called EllipticCurve or for that matter GF. (They show up with red underlines in the online command window.) But then I did try running a similar command anyway:
"sage: p = 354990952970600489
sage: E = EllipticCurve(GF(p),[9326,1376127157])"
and got an error about this being prime or something similar -- don't have the error in front of me. So do the functions exist or what? I'm puzzled because the tutorial doesn't seem to work despite being written specifically for SAGE.Tue, 05 Feb 2013 08:06:24 -0600https://ask.sagemath.org/question/9772/elliptic-curve-functions-dont-seem-to-exist/Comment by kcrisman for <p>Hello. I'm trying to design a puzzle that involves finding a weakness in an elliptic curve cryptography application. I see descriptions of past puzzles that others have made, but they use SAGE with commands like "E = EllipticCurve(GF(c), [a, b])". From my attempts to uses SAGE online before installing, and from looking through the manual, it looks like there aren't any functions called EllipticCurve or for that matter GF. (They show up with red underlines in the online command window.) But then I did try running a similar command anyway:
"sage: p = 354990952970600489
sage: E = EllipticCurve(GF(p),[9326,1376127157])"
and got an error about this being prime or something similar -- don't have the error in front of me. So do the functions exist or what? I'm puzzled because the tutorial doesn't seem to work despite being written specifically for SAGE.</p>
https://ask.sagemath.org/question/9772/elliptic-curve-functions-dont-seem-to-exist/?comment=18303#post-id-18303(The red underlinneess3209 are probably from your browser's spell-check; at least, that's what I geeeeet when I misspeelell things, and it wouldn't know about GF or EllipticCurve.)Tue, 05 Feb 2013 08:36:37 -0600https://ask.sagemath.org/question/9772/elliptic-curve-functions-dont-seem-to-exist/?comment=18303#post-id-18303Comment by kcrisman for <p>Hello. I'm trying to design a puzzle that involves finding a weakness in an elliptic curve cryptography application. I see descriptions of past puzzles that others have made, but they use SAGE with commands like "E = EllipticCurve(GF(c), [a, b])". From my attempts to uses SAGE online before installing, and from looking through the manual, it looks like there aren't any functions called EllipticCurve or for that matter GF. (They show up with red underlines in the online command window.) But then I did try running a similar command anyway:
"sage: p = 354990952970600489
sage: E = EllipticCurve(GF(p),[9326,1376127157])"
and got an error about this being prime or something similar -- don't have the error in front of me. So do the functions exist or what? I'm puzzled because the tutorial doesn't seem to work despite being written specifically for SAGE.</p>
https://ask.sagemath.org/question/9772/elliptic-curve-functions-dont-seem-to-exist/?comment=18304#post-id-18304Is it possible that you ran it all as one command? @achrzesz has the right way to think about it. If you are in the notebook (not command line) interface, you can remove the "sage: " part from these.Tue, 05 Feb 2013 08:35:26 -0600https://ask.sagemath.org/question/9772/elliptic-curve-functions-dont-seem-to-exist/?comment=18304#post-id-18304Answer by achrzesz for <p>Hello. I'm trying to design a puzzle that involves finding a weakness in an elliptic curve cryptography application. I see descriptions of past puzzles that others have made, but they use SAGE with commands like "E = EllipticCurve(GF(c), [a, b])". From my attempts to uses SAGE online before installing, and from looking through the manual, it looks like there aren't any functions called EllipticCurve or for that matter GF. (They show up with red underlines in the online command window.) But then I did try running a similar command anyway:
"sage: p = 354990952970600489
sage: E = EllipticCurve(GF(p),[9326,1376127157])"
and got an error about this being prime or something similar -- don't have the error in front of me. So do the functions exist or what? I'm puzzled because the tutorial doesn't seem to work despite being written specifically for SAGE.</p>
https://ask.sagemath.org/question/9772/elliptic-curve-functions-dont-seem-to-exist/?answer=14512#post-id-14512Your commands are O.K.:
sage: p=354990952970600489
sage: E = EllipticCurve(GF(p),[9326,1376127157])
sage: E
Elliptic Curve defined by y^2 = x^3 + 9326*x + 1376127157 over Finite Field of size 354990952970600489
Tue, 05 Feb 2013 08:21:27 -0600https://ask.sagemath.org/question/9772/elliptic-curve-functions-dont-seem-to-exist/?answer=14512#post-id-14512