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

How to do division of 2 elements belonging to GT group pbc

Is the formula given in PBC manual applicable for 2 elements of GT group in elliptic curve? void element_div(element_t n, element_t a, element_t b) Set n = a / b.
0
votes
0 answers

Is there a way to hash the following hash functions h1 : G1 → Z ∗ q , h2 : {0, 1}∗ → Z ∗ q using some Standard algorithm?

Given that G1 is elliptical curve group and q is prime no. Here elements of G1 will be of form (X,y) coordinates h1 : G1 → Z ∗ q h2 : {0, 1}∗ → Z ∗ q How should the sha algorithm be modified to use for the above hash functions which are collision…
0
votes
0 answers

Decrypt message in swift encrypted in java using AES/GCM/NoPadding

I want to create secretKey(symmetricKey) using my EC privateKey and publicKey from backend(Java) and decrypt message using that secretKey. How to achieve this? Here is implementation: This is how backend creates sharedKey: KeyAgreement keyAgreement…
Gorthez
  • 391
  • 3
  • 12
0
votes
1 answer

PKCS11 ECDSA parameters in go module pkcs11

I would like to know how to pass the correct argument values for ECDSA template using go module miekg/pkcs11: this is so far what i got: privateKeyTemplate := []*pkcs11.Attribute{ pkcs11.NewAttribute(pkcs11.CKA_TOKEN, tokenPersistent), …
Jorge Alvarado
  • 2,664
  • 22
  • 33
0
votes
0 answers

How to solve the error format of input to decryption of Elliptic curve cryptography?

I have a client/server application to encrypt/decrypt data. Client node encrypts a JSON data using ECIES from this library JavaScript Elliptic curve cryptography library. Then, node sends it to the server side using MQTT protocol. Server node…
ismsm
  • 143
  • 2
  • 11
0
votes
1 answer

Elliptic Curve Encryption

Please provide me an example using the Bouncycastle library showing how to add two points on an elliptic curve. I tried the following code but i didn't get the same result that should happen theoretically. X9ECParameters…
RAVITEJA SATYAVADA
  • 2,503
  • 23
  • 56
  • 88
0
votes
1 answer

Error in JavaScript Elliptic curve cryptography to import the private key: Bad private key?

I want to encrypt and decrypt the message based on ECIES using this library JavaScript Elliptic curve cryptography library. I want to import my private key and get the public key from it because I do not have a new private key generated each time I…
ismsm
  • 143
  • 2
  • 11
0
votes
0 answers

How to encode my Eliptic Curve Public Key to a more readable address and decode back to Public Key

I'm using an elliptic curve to generate a key pair from a bip39 seed. const EdDSA = require('elliptic').eddsa const ec = new EdDSA('ed25519') const myKey = ec.keyFromSecret(seed) const myPublicKey = myKey.getPublic('hex') //…
MadeInDreams
  • 1,991
  • 5
  • 33
  • 64
0
votes
1 answer

pkcs11interop generate key pair(EC or ECDSA), get error

This is my code : X9ECParameters x9Ec = NistNamedCurves.GetByName("P-256"); X962Parameters x962 = new X962Parameters(x9Ec); byte[] paramsBytes = x962.Parameters.GetDerEncoded(); List publicKeyAttributes = new…
Randy
  • 3
  • 3
0
votes
0 answers

In hyperledger fabric how to use user's key-pair for encryption and decription?

By using Hyperledger fabric 1.4 SDK I have created one user, a set of public and private key is generated for that user. Now I want to use this key pair for encrypting and decrypting the data. I aware hyperledger uses elliptic curve cryptography for…
0
votes
1 answer

How to solve Jacobian elliptical function in python

I know how to solve in Mathematica with EllipticF: EllipticF[ζI[P], k2[P]] - EllipticF[ζr[P, r], k2[P]] That's basically what i want to do in Python. I've tried many thing to use such as the function scipy.special.ellipj, but it returns a list and…
0
votes
0 answers

ECC Encryption with P128 Algorithm not generating 64 char hex

When I convert the signature value to it returns a more than 64 length hex string i want an exact 64 length hex string Below is the code that I'm using public static void GenerateSingature() { try { String plaintext =…
0
votes
0 answers

AWS KMS public key as a binary data object, convert to PEM file

Using AWS KMS Customer Master Key (CMK), I'm generating a Data Key Pair without plain text. AWS API reference is here. Boto3 API reference for generate_data_key_pair_without_plaintext is here I'm using Python2.7 and my code is here kms =…
0
votes
1 answer

Nodejs elliptic verification wrong

I have created some data to encrypt to make sure that the data can't be modified. Using elliptic I created the data then sign it. Then I modify the data. When I verify the data integrity using the generated signature, it returns true. Am I confused…
user3502626
  • 838
  • 11
  • 34
0
votes
1 answer

Python ECDH with Cryptography Problem Public Key

Currently I started working with the cryptography framework on python. I'm trying to build a SSH Suit by my own but I ran into some problem with the library. I'm trying to build my own Elliptic Curve Key Exchange Init Packet (with scapy). I'm trying…
EviLDgL
  • 3
  • 2