Questions tagged [ecdsa]

In cryptography, the Elliptic Curve Digital Signature Algorithm offers a variant of the Digital Signature Algorithm which uses elliptic curve cryptography.

Elliptic Curve Digital Signature is a variant of algorithms. It allows in some cases a smaller public key (for instance, 160 bit in ecdsa compared to 1024 bit in dsa for 80 but security level), and requires the two sides to agree on a curve's field and equation, as well as a prime order on the curve and a multiplicative of the order.

Wikipedia description of Elliptic Curve Digital Signature

700 questions
0
votes
1 answer

PFXExportCertStoreEx to export private and public keys

I have used PFXExportCertStoreEx API to successfully export public and private key of a RSA certificate from Windows key store. Can the same PFXExportCertStoreEx be used to export public and private keys of DSS and ECDSA certificates from the…
0
votes
1 answer

Uninitialized Key Exception when using getK() in Elliptic Curve DSA on javacard

When trying to use the getK() method on a key pair in JavaCard I get this exception code: CryptoException.UNINITIALIZED_KEY Here is my code where I generate the key pair: KeyPair key = new KeyPair(KeyPair.ALG_EC_FP,…
LozCodes
  • 109
  • 8
0
votes
0 answers

Not able to export ECDSA certificate from Windows Store

PFXExportCertStoreEx fails when I try to export ECDSA certificate from Windows Store. I need to get both the public key and private key of the certificate. Is the API usage wrong for ECDSA certificate? I am able to export cert and key for a RSA…
0
votes
0 answers

Rough probability that a random point on secp256k1 could be a valid public key

We are working on some detailed estimates for the time required for a quantum computer to break ECC, and are using secp256k1 as an example. This question does not seem to be directly addressed in standard cryptography literature. What is the…
0
votes
1 answer

openssl rust crate: ECDSA signature size is not 64 bytes?

I want to use OpenSSL rust crate to perform cryptography operations, specifically using the ECDSA algorithm. I use the following code to generate an ECDSA key (elliptic curve P-256) and use that to sign data and get the signature: use…
Shiqi
  • 837
  • 1
  • 10
  • 18
0
votes
1 answer

(ECDSA-BouncyCastle)Cryptographic Algorithm Validation Program(CAVP) Testing: Digital Signatures

We use ECDSA with secp256r1 in our project.Also we are using Bouncy Castle libraries. How can I CAVP using NIST test vectors? I am newbie.Probably the answer is simple. The link with the test vector is…
0
votes
0 answers

Certificate Verify, "error:068000C7:asn1 encoding routines::unknown signature algorithm"

I would like to create a certificate with ECC. I am using ecdsa_with_SHA3-512 as signature algorithm. I can succesfully sign the certificate as below. auto message_digest = EVP_MD_fetch(nullptr,"SHA3-512", nullptr); if (!message_digest) { …
selim
  • 11
  • 1
0
votes
0 answers

Can anyone explain what are these parameters for this function?

int EC_POINT_set_compressed_coordinates_GFp (const EC_GROUP *group, EC_POINT *p, const BIGNUM *x, int y_bit, BN_CTX *ctx); I just want to set the randomly generated ECDH public key as the X9.62 compressed coordinate of a point over GFp for group…
CPPDev
  • 1
  • 1
0
votes
0 answers

UWP, C#: ECDSA Key Generation and Onboaring

[I am new to security so, I apologize if I am asking something obvious] I am working on making an existing UWP Application to have encrypted local communication over Ethernet (TCP) with an local embedded device. Here's step 1: Step 1 Step 1 is to…
Teja
  • 41
  • 6
0
votes
0 answers

ed25519 signature java curve not supported

I'm trying to make a ECDSA signature using the ed25519 curve in Java, using the Bouncy Castle library. I have managed to generate the keys and to be able to obtain the public key given the private key. However, I'm struggling to sign some data with…
0
votes
1 answer

Is there a way for generation of ecdh shared key in 'node-forge' or other checked and secure js oackage

Well what i want to obtain is something like this import * as forge from 'node-forge' const aliceKey = forge.pki.ed25519.generateKeyPair(); const bobKey = forge.pki.ed25519.generateKeyPair(); //get shared secret for bob and alice function…
MaciejDot
  • 23
  • 4
0
votes
1 answer

Why does creating ECDSA keypairs via python differ from ssh-keygen -t ecdsa and how can I avoid that?

For openstack apparently I need the key-output like ssh-keygen -t ecdsa generates it, but I am not getting similar output when using the ecdsa modul in python. def createECDSAKeyPairLocally(projectName="current"): sk =…
Natan
  • 728
  • 1
  • 7
  • 23
0
votes
1 answer

Rust k256 can't create signer

I have the k256 crate and I'm trying to sign a string. Here is my code: let priv_key = SigningKey::from_bytes(self.private_key.as_bytes()).expect("Make priv key"); let tx_hash = transaction.get_hash(); let signer = Signer::new(&tx_hash); let sig =…
oriont
  • 684
  • 2
  • 10
  • 25
0
votes
2 answers

Passing ECDSA v, r, and s values as function arguments to Solidity smart contract

There's a smart contract that I'm interacting with via ethers.js which has a function withdraw(uint8 v, bytes32 r, bytes32 s) that withdraws funds stored in the contract to the caller's account and where the v, r, and s arguments are ECDSA values…
icosceles
  • 1
  • 2
0
votes
1 answer

ECDSA signature verify very SLOW on ESP32 with mbedtls

We’re using mbedtls on an Espressif ESP32 module (32-bit Xtensa core, 160 MHz) to verify the signature of commands sent over Bluetooth. We use ECDSA signatures and a key pair generated with the secp256r1 curve. The signed commands are sent by a…
Jeremy
  • 1,083
  • 3
  • 13
  • 25