elliptic-curve

Number of points on elliptic curve

If you have an elliptic curve in the form of: y^2 = x^3 + a*x + b (mod p) Is there a good program to calculate the number of points on this curve? I have read about Schoof's and Schoof-Elkies-Atkin (SEA) algorithm, but I'm looking for open source implementations. Does anyone know a good program that can do this? Also if a is 1 and b...

How to encrypt/decrypt a text using openssl ECC?

Where can I get a sample code or documentation on using the OpenSSL ECC support to encrypt or decrypt a text string ? I am able to generate ECC private/public key using openSSL API's, but I don't know how to encrypt a plain text using that key ! ...

How do I feed OpenSSL random data for use in ECDSA signing?

I want to feed OpenSSL specific data for use as random seed during the signing of data with an EC key. I'm doing this to compare my application with another reference one (closed source). That utility takes the file with private key, file with data to sign and file with random data as parameters. I've got the generation of EC keys, and ...

JavaCard random number generation speed

Hi, I'm implementing an authentication protocol using ECDSA on javacard. The funniest thing I noticed was the "secure random number genrator" takes 700ms for execution. This can be considered as percfectly number. But after I load the applet to the card for the first time this time is 150ms. ECDSA signature therefore takes 228ms for i...

Tools for visualizing and implementing elliptic curve cryptography

I need to create a program which will show how elliptic curve cryptography works. I was considering using Java Swing to create the GUI, but the main problem is what tool to use to plot the elliptic curve itself, and how to integrate that with Java Swing. I would like the plot to be included in the user interface and also allow changes ...

Turn an byte encoded Key back into it's original ECPublicKey in Bouncy Castle

In Java I have a ECDH public Key that I am sending as a byte array. Once I have received the byte array how can I turn it back into a public key? I am using Bouncy Castle but a Java solution would be just as useful. Thanks ...

Use of Curve25519

I'm currently investigating the use of curve25519 for signing. Original distribution can be obtained here and a C code implementation here or here. Bernstein suggest to use ECDSA for this but I could not find any code. ...

How does the elliptic-curve version of Diffie-Hellman cryptography work?

Does the Elliptic curve diffie hellman calculation look any different from the standard one defined here: /* * The basic Diffie-Hellman Key Agreement Equation * * The client initiates * A = g^a mod p * * Sends (g p A) to the server ...

Is it possible to use elliptic curve cryptography for encrypting data?

So far I have only seen it used in digital signatures and key agreement protocols. Can it be used like RSA to actually encrypt data? Are there any libraries for this? Edited: I need something like RSA. Encrypt the data with the recievers public key so later he can decyrpt it with his private key. I know ECDH can be used to send a secr...

Moving ECDSA from COM DLL to .NET

Hi, I have an ActiveX DLL that uses ECDSACom from Dragongate Technologies to create a signature for a product licence. The product, when starting, uses the signature generated, the public key and the licence to check if the licence is good. But now I'm changing to .NET and 64bit applications and the ECDSACom can't be used since is a COM ...