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
0
votes
3 answers

What makes ECDH rely on two public keys alone?

I have a basic question about ECDH (Elliptic Curve Diffie-Hellman). The whole idea is that both sides exchange their own public keys and arrive at the same private key. However, you can trivially intercept both keys. Inputting the other public key…
0
votes
2 answers

Java Keyfactory can't generate ECPublicKey using nimbus

I'm trying to validate a JWT token of EC type algorithm received from PingAccess using nimbusds library. It doesn't work in all environments. But they all have the same version of Java. Some environment couldn't generate the ECPublickey object…
Lu Yin
  • 11
  • 2
0
votes
1 answer

Public key encoding changes

I've generated a public key using elliptic curves, but whenever I get the encoding of the key, it changes. I would like to use the encoding for a public address of a blockchain I am implementing. See below import java.security.KeyPair; import…
0
votes
1 answer

openssl Elliptic_Curve_Cryptography - Defining "custom" Curves

I'm trying to define curve secp192r1, which is not available as a named curve in openssl. i'm using data from http://www.secg.org/SEC2-Ver-1.0.pdf par. 2.5.2 in the function create_curve() copied from the wiki…
efrat
  • 1
  • 1
0
votes
1 answer

How to verify X509Certificate with EC key using Bouncy Castle

With Bouncy Castle added as a provider, the following piece of code: private static boolean isSelfSigned(final X509Certificate cert) { try { final PublicKey key = cert.getPublicKey(); cert.verify(key); return…
0
votes
2 answers

Generate elliptic curve KeyPair via KeyStore on API Level <23

I need to generate an elliptic key pair in Android and store it to KeyStore to protect a private key from extraction. I was able to generate a key pair using Spongycastle library, but I cannot import the key pair in the KeyStore. Firstly, because I…
Jakub Gruber
  • 745
  • 1
  • 11
  • 27
0
votes
1 answer

Random point in Miller's Weil Pairing algorithm

I'm trying to implement the Miller's Weil Pairing algorithm but I have a problem. I used the book "An introduction to mathematical cryptography" by Hoffstein, Pipher and Silverman and tried my implementation with the example given in the book : I…
0
votes
1 answer

Apparent Incompatibility between sgx_tcrypto and OpenSSL libcrypt

I'm trying to load a public key that I've gotten from an SGX enclave into an OpenSSL Elliptic Curve Public Key object. The crypto library built into the SGX SDK uses points on SECP256R1 for public keys, and represents them as an (x,y) pair. So I…
Arya Pourtabatabaie
  • 705
  • 2
  • 7
  • 22
0
votes
1 answer

Overriding Library Functions

I am trying to use Crypto.PubKey.ECIES library that call curveGenerateKeyPair function from Crypto.ECC library and Crypto.ECC uses Crypto.PubKey.ECC.P256 for scalarGenerate function, how can i modify this scalarGenerate function without modifying…
Mahesh Uligade
  • 597
  • 8
  • 17
0
votes
0 answers

Python SSL handshake with EC keys

I'm trying to perform a ssl handshake with EC keys instead of RSA. The private key and server certificate are generated with OpenSSL. The handshake fails. Server Code: context.load_cert_chain(certfile='server-cert.pem',…
0
votes
1 answer

Named curves or domain parameters when creating an EC CSR

I'm creating CSRs for new certificates using OpenSSL. For modern compatibility, I've gone with EC (secp521r1) certificates. While googling around, I found two different ways of creating the CSR. I can create a private key explicitly openssl ecparam…
omerkudat
  • 9,371
  • 4
  • 33
  • 42
0
votes
0 answers

How to convert ECDiffieHellman instance to DER file in .net framework?

I have following code: var p = new ECParameters(); p.Curve = System.Security.Cryptography.ECCurve.NamedCurves.nistP256; p.D = Utility.HexToBytes("FF46D661B3505B4BE84CF2FEB0A34B17FE0AA690FACBC0BBC6D6D526A14CE677"); var…
Raghu
  • 2,859
  • 4
  • 33
  • 65
0
votes
0 answers

what is a scalar implementation in elliptical curve cryptography?

I'm trying to learn the basics of elliptical curve cryptography and would like to know the difference between scalar and non scalar. The test example that comes with the library creates key pairs performs signing and verification both for scalar and…
Leons Mate
  • 31
  • 3
0
votes
1 answer

Maple division command

I have been trying to find the affine coordinates from given jacobian coordinates using maple but I am unable to execute the divide and mod function properly. Below is the code. > x :=…
Eshaal
  • 125
  • 2
  • 13
0
votes
0 answers

What security level is provided by pairing curves in Charm Crypto?

I want to know what security level is provided by the type a and type d curves which are included in charm crypto library? For example, the type a curves SS512 and SS1024 have a prime field of 512 and 1024 bits respectively? Can anyone tell me what…
Aisha
  • 127
  • 10