Questions tagged [elliptic-curve]

In mathematics, an elliptic curve is a smooth, projective algebraic curve of genus one, on which there is a specified point O.

In mathematics, an elliptic curve is a smooth, projective algebraic curve of genus one, on which there is a specified point O (the point at infinity). An elliptic curve is in fact an abelian variety — that is, it is a (necessarily commutative) group with respect to an algebraically defined multiplication — and O serves as the identity element. Often the curve itself, without O specified, is called an elliptic curve.

685 questions
1
vote
0 answers

How do I list supported Elliptic Curves in python

I am trying to create a python script which lists the supported curves. Basically I want to do this in Python openssl ecparam -list_curves EDIT: I've tried the pyOpenSSL wrapper module which does contain a with similar functionality but I am hoping…
Adnan
  • 584
  • 1
  • 15
  • 27
1
vote
1 answer

AsymmetricKeyParameter as byte[]

I'm trying to do an ECDH key exchange using C# BouncyCastle. I have been successful in creating the necessary AsymmetricCipherKeyPair objects and I'm also able to generate the shared key of the other partys public key. However, to actually exchange…
1
vote
1 answer

How to validate RSA-signed ECDHE public key?

I'd like to validate the signature on an elliptic curve public key received using ECDHE, but I can't find any reference that clearly explains which bytes are signed. I set up a TLS v1.2 connection to google.com using cipher suite…
juhraffe
  • 545
  • 6
  • 16
1
vote
1 answer

plot elliptic curve over finite field using sage

I want to plot an elliptic curve over a finite field using sage mathematical interface with the following commands: p=2^255-19; F=Finite Field(p); C=Elliptic Curve(F,[0,486662,0,1,0]); plot(C, aspect_ratio = 1); However due to the size of the curve…
Omar
  • 25
  • 8
1
vote
1 answer

Moving ECDSA from COM DLL to .NET

I have an ActiveX DLL that uses ECDSACom from Dragongate Technologies to create a signature for a product license. The product, when starting, uses the signature generated, the public key and the license to check if the license is good. But now I'm…
1
vote
1 answer

SageMathCloud: random elliptic curve

load cong.sage defines random_elliptic_curve command in sage but I'm using SageMathCloud. What is I have to write to generate a random elliptic curve?
1
vote
1 answer

SAGE - Listing points on an elliptic curve

I have a generated elliptic curve of a modulus. I want to list just a few points on it (doesn't matter what they are, I just need one or two) and I was hoping to do: E.points() However due to the size of the curve this generates the…
user2059300
  • 361
  • 1
  • 5
  • 17
1
vote
1 answer

Simple Elliptic Curve Cryptography Method

I'm working on a project in order to learn the ECC encryption algorithm & I'm implementing it in OCaml. I'm having trouble finding an answer to this question online: Is there an asymmetric encryption algorithm method (similar to Elgamal and RSA)…
1
vote
2 answers

Implementation of ECC in Java

While trying to encrypt a given input using Elliptic Curve Cryptography in Java I'm using the following algorithms for generating the cipher and the key: KeyPairGenerator g = KeyPairGenerator.getInstance("ECDSA"); Cipher cipher =…
Rookie_22
  • 11
  • 1
  • 2
1
vote
1 answer

openssl CMS with ECDH EnvelopedData

I am playing with openssl 1.0.2a - specifically CMS support for ECC. As a test I am doing a simple encrypt and decrypt. I gave an RSA example as a known good working example / sanity test. The ECC example fails. Any ideas? TIA. ./openssl…
1
vote
1 answer

Point zero on an elliptic curve

I am working on a library that allows me to work with elliptic curves. It is still at embryonic state, and so far it only consists of two classes, EllipticCurve and Point. Right now I'm implementing the basic operations of existence, belonging, sum,…
Luigi D.
  • 165
  • 1
  • 10
1
vote
1 answer

How to generate an ECDHE public key with OpenSSL?

I'm trying to generate an ECDHE key using OpenSSL 1.0.2a on Windows and have the following sample code: #include #include #include #include #include int main() { …
ereOn
  • 53,676
  • 39
  • 161
  • 238
1
vote
2 answers

Divide a Point in Elliptic Curve Cryptography

I'm using Elliptic Curve to design a security system. P is a point on elliptic curve. The receiver must obtain P using formula k^-1(kP). The receiver does not know P but knows k. I need to compute k^-1(R) where R=kP. How can I do this using Point…
user2576371
  • 79
  • 1
  • 2
  • 6
1
vote
1 answer

InvalidKeyException when creating PublicKey in Java from openssl ec

I get a InvalidKeyException: invalid key format when creating a java.security.PublicKey from a PEM file generated by openssl ec -pubout .... The same code works for RSA keys. What am I doing wrong? The public key reads: -----BEGIN PUBLIC…
oliverdm
  • 381
  • 3
  • 10
1
vote
1 answer

Example of factorization with the Montgomery curve

I have programmed the elliptic curve method for integer factorization using Montgomery curves(the same idea as Lenstra's elliptic curve method, just changed a bit so it works with Montgomey curves). However, I haven't really been able to find any…
MBrown
  • 545
  • 1
  • 3
  • 14