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

Algorithm for dividing a point of an elliptic curve by a number (scalar)

How to implement an algorithm for dividing by the number Z (scalar) of a point lying on an elliptic curve? Curve like: y^2 = x^3 + A * x + B A, B and the number Z are known. The point is arbitrary, lying on the curve. Operations are performed in the…
0
votes
0 answers

Confusion around point addition on secp256k1

I am using https://github.com/HareInWeed/gec for point addition on the secp256k1. The code below adds two points on secp256k1 curve and displays the results. #include #include #include #include…
0
votes
1 answer

Elliptic Curve Cryptography Key Verification fails

I'am trying to get a feel for Elliptic Curve Cryptography. I wrote a small Python program below to generate key material but I don't get the same result for y_squared and Q.y^2. I'am using the parameters from 256-Bit Random ECP Group (RFC 5903 page…
Mehkir
  • 11
  • 5
0
votes
0 answers

Using ECC-based p12 Certificates BP256 in an Electron Application

I'm working on an Electron application where I need to establish an HTTPS connection using ECC-based p12 certificates. As I understand, nodejs already supports some curves, but I need specifically BP-256 (brainpool256) curve. What should I do to use…
Serdar D.
  • 3,055
  • 1
  • 30
  • 23
0
votes
1 answer

Boolean Value as ECDSA Y-Coordinate

IANA "COSE Key Type Parameters" includes the following: Key Type Name Label CBOR Type 2 (EC2) crv -1 int/tstr 2 (EC2) x -2 bstr 2 (EC2) y -3 bstr/bool 2 (EC2) d -4 bstr The information implies that there are cases where the type of…
Takahiko Kawasaki
  • 18,118
  • 9
  • 62
  • 105
0
votes
0 answers

How to get native points on a elliptic curve from an existing addition of points

I'm working on elliptic curves with SageMath. I know : The equation of the curve E defined by y^2 = x^3 + ... : E = EllipticCurve( GF(K), [m, n] ) the addition of points A and B (A+B) : (x3;y3) the substraction of points A and B (A-B) :…
Julien
  • 699
  • 3
  • 14
  • 30
0
votes
0 answers

Unable to use specific EC_KEY operations from 'cryptography' packages openssl backend

I am trying to use the EC arithmetic operations in OpenSSL by using the cryptography python package's default_backend. I need to perform point multiplication, addition, etc. on the public keys that cryptography uses. I am not familiar with the…
0
votes
1 answer

Can I use a BLS12-381 private key to sign Ethereum transactions?

I'm new to cryptography and I've recently been studying BLS signatures. Please forgive me if I make any mistakes while writing. I've tried generating a BLS key pair and using the private key to derive an Ethereum account and sign on-chain…
0
votes
0 answers

Public key generator in Python (SECP256K1 elliptic curve cryptography)

I am currently new in Python and cryptography. I am trying to make a public key of SECP256K1 elliptic curve manually(without related library use), from a random generated private key as I learned. The method of generating private key is free. What…
0
votes
0 answers

Data validation fails when send to pyodide

The problem is the code is working but it does not verify. The sample below was the first iteration of the implementation of the code. below. That code operates accurately, but once I save the signature in Sqlite (base64 encoded) server and retrieve…
0
votes
2 answers

Not getting the right result in base64 string when I try to convert base64 encoded string EC Public Key generated on iOS to Java PublicKey

As the title suggests I am trying to convert base64 encoded string (EC Public Key) generated on IOS device(Swift) to Java PublicKey which will be used to calculate a Shared Secret Key between two parties. There is neither runtime nor compile time…
0
votes
0 answers

How to convert raw EC key to PKCS8 without node:crypto export function

I need to convert raw EC key to pkcs8 and vice versa. I am using react-native-quick-crypto as a replacement for node:crypto. sadly, it does not include node's crypto.createPrivateKey(...).export(...) function so I am unable to use it co convert my…
David Novák
  • 1,455
  • 2
  • 18
  • 30
0
votes
0 answers

Elliptical Curve point generation - why do the calculations fail after the 2nd loop?

I've been trying to program Elliptical Curve Cryptography in python for a week or two now, I've managed to create a program that will take an object point P and it will (attempt) to produce nP. Nothing but the point inputted changes, but the…
0
votes
1 answer

Primes in PHP, elliptic curve

how i can calculate receiving a number K, K return the next prime number greater than 2 ^ 57 + 1 ? some 1 can help me with that ?
forFun
  • 1
0
votes
0 answers

Creating BCRYPT_ECCKEY_BLOB from a compressed key using Windows APIs only

Is there a way to create BCRYPT_ECCKEY_BLOB from a compressed key (say P256) using Windows API only and without linking to a big number library and performing EC math manually.
Kirill Kovalenko
  • 2,121
  • 16
  • 18