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
1 answer

Importing ANSI X9.63 formatted key pair in Java

I have generated a key pair on iOS and created a data representation using the following code: var publicKey, privateKey: SecKey? let keyattribute = [ kSecAttrKeyType as String: kSecAttrKeyTypeECSECPrimeRandom, kSecAttrKeySizeInBits as…
mahler
  • 526
  • 5
  • 25
0
votes
1 answer

Verifying signature generated from golang ecdsa library using javascript's elliptic library

This thread is a continuation of an older thread found here In the previous thread the objective of successfully verifying a signature generated from javascript's elliptic library was successfully accomplished using golang's elliptic library. The…
otboss
  • 621
  • 1
  • 7
  • 16
0
votes
1 answer

Interoperability between javascript's elliptic library and golang's ecdsa library

I am experiencing difficulty validating a signature generated with the elliptic javascript library using the ecdsa library from golang.The elliptic curve being used is the secp256k1. Here are some code snippets: Typescript utility functions: import…
otboss
  • 621
  • 1
  • 7
  • 16
0
votes
1 answer

Generate AsymmetricCipherKeyPair elliptic curve from a given public key of a ceritificate

I'm trying to generate a private/public key pair for an elliptic curve algorithm, from a given public key of a certificate. I tried to implement it like so: ECPublicKeyParameters pubKey = (ECPublicKeyParameters)cert.getPublicKey(); …
0
votes
1 answer

ECIES: correct way ECDH-input for KDF? Security effect?

In order to understand ECIES completely and use my favorite library I implemented some parts of ECIES myself. Doing this and comparing the results led to one point which is not really clear for me: what exacly is the input of KDF? The result of ECDH…
Ernesto Ruge
  • 41
  • 1
  • 3
0
votes
0 answers

Find public elliptic curve key using OpenSSL CLI

I can easily generate a new pair $ openssl ecparam -genkey -name secp256k1 -param_enc explicit | openssl pkey -noout -text Private-Key: (256 bit) priv: 61:98:b4:78:a4:59:47:86:ef:2d:aa:4f:2a:21:91: …
darw
  • 941
  • 12
  • 15
0
votes
1 answer

Scalar Multiplication on Elliptic Curves

I use this article for my task https://andrea.corbellini.name/2015/05/17/elliptic-curve-cryptography-a-gentle-introduction/ Scalar multiplication is where n is a natural number I use this code for finding Q import numpy as np def…
user1088259
  • 345
  • 13
  • 34
0
votes
1 answer

PHP Fatal error: Uncaught Error: Class 'Elliptic\EC' not found

I want to generate private/public keys using Elliptic Curve Cryptography in PHP. I have used this library: https://github.com/simplito/elliptic-php my code:
0
votes
0 answers

SecKeyVerifySignature failed ecdsaSignatureDigestX962

I'm trying to sign and verify a challenge with elliptic curve algorithms using Apple tools. Using the SecKeyCreateWithData I can use/import already generated public/private keys, this works great. Then I call the sign() function which takes…
Silvering
  • 756
  • 1
  • 6
  • 33
0
votes
1 answer

react lib elliptic json appear on prod bundle

I have a react app and when I generate my prod bundle the lib elliptic appear showing json informations like: BUNDLE FILE WITH THE PROBLEM:https://mywebsite/vendor.adsdasdasdasdasdas.js …
Adriano Frota
  • 488
  • 3
  • 14
  • 27
0
votes
0 answers

how to perform xor operation with ECC point and hash value

I need to perform XOR operation with ECC point and hashresult. that is N=A xor hash; A-ECC Point. hash result is BigInteger. please let me know. note: I am using bouncy castle API for implementing ECC in java. So can anybody please help me how to…
0
votes
1 answer

How to encrypt a message using EC in python?

I'm using the https://cryptography.io/en/latest/hazmat/primitives/asymmetric/ec/# library and there is no option for EC encryption, just signing. Is there a way to encrypt text using the EC or do I have to use RSA?
0
votes
1 answer

Recent Java upgrade causes TLS handshake failure with elliptic curve server certificate?

On October 19th, I upgraded to OpenJDK Java 1.8.0_232 and my Java processes started failing to connect to a service fronted by stunnel using an EC server certificate. I have an EC client certificate that I would present to the server if the initial…
0
votes
1 answer

genKeyPair in Javacard 2.2.1 for Secp192r1 throws "java.lang.ArithmeticException: BigInteger not invertible"

I'm trying to generate a keypair for the Secp192r1 curve using Javacard 2.2.1 (I've also tried using Javacard 2.2.2) by calling the KeyPair.genKeyPair function for the javacard Keypair object. However when during the generation of a keypair, the…
0
votes
0 answers

Get x and y from secp256r1 curve

I'm using https://github.com/cossacklabs/themis library for the public key generation which is providing secp256r1 curve. The problem is that PublicKey has only getBytes method but I need to get x and y coordinates. Is it possible to count them…
falsetto
  • 789
  • 2
  • 11
  • 35