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

How to get a private key from ECDsa algorithm in C#

using (ECDsa ecdsa = ECDsa.Create()) // Change curve as needed { // Create a certificate signing request (CSR) CertificateRequest csr = new CertificateRequest("cn=MySelfSignedECDSACert", ecdsa, HashAlgorithmName.SHA256); // byte[]…
-1
votes
1 answer

Rust P-384 verification - relatively slow. Any techniques to make it faster?

I am using p-384 crate for signature verification of API requests made from a site: https://docs.rs/p384/latest/p384/ecdsa/index.html Here's my test code: use p384::elliptic_curve::rand_core; use p384::ecdsa::{signature::Signer, Signature,…
-1
votes
1 answer

is there a method to create an ECDSA public key from the address using python?

I am still a beginner in python and suddenly, I gave myself a project as a guideline and allowing me to improve. I opted for the creation of a wallet package, in order to be able to integrate it into another project, but I am stuck with the ecdsa…
kaito shi
  • 18
  • 3
-1
votes
1 answer

How to convert a compressed public Bitcoin address to its corresponding scriptPubKey

I was wondering if it is possible to convert a compressed bitcoin address to its scriptPubKey? Here is a code that i wrote using python import base58 # Compressed public Bitcoin address addr = "1MY53uw7T3sLwL6FiGrM2LsiutSktmhSv2" # Decode…
Melwyn
  • 1
  • 1
-1
votes
2 answers

Why use sha256WithRSAEncryption for ECDSA certificate?

I am trying to understand the use of ECDSA key based certificate that is issued (ie. signed) by a CA using RSA key. For example when you connect to www.facebook.com: $ openssl s_client -connect www.facebook.com:443 You get the cipher suite used…
Satish Burnwal
  • 487
  • 1
  • 4
  • 11
-1
votes
1 answer

EC Public key from public key bytes extracted from azure keyvault

how to get public key from bytes? for example, I have public key (generated with EC algorithm, curve "secp256r1") and its encoded bytes on java, How can I create public key from these bytes in c#?
-1
votes
1 answer

How to verify a signature made by trezor wallet

I want to verify a message signed by my trezor hardware wallet. Basically I have these information. .venv/bin/trezorctl btc get-public-node -n 0 Passphrase required: Confirm your passphrase: node.depth: 1 node.fingerprint: ea66f037 node.child_num:…
Alai
  • 123
  • 1
  • 8
-1
votes
1 answer

Which curve is SHA1withECDSA using?

I am using SHA1withECDSA to verify signed messages in my java application. Now I want to create a second application in another programming language (node/js) which creates those signed messages. However I could not find any api which has…
Florian
  • 177
  • 1
  • 11
-1
votes
1 answer

Bouncycastle ECDSA signature verification is OK after signing but fails at next run when reloading public key, message and signatue

I am testing a bouncy castle signature verification. Interestingly it verifies ok after the signing, but when running a new instance with the public key, message and signature if always fails. I am using the same verification routine right after…
Peter
  • 1
  • 1
-1
votes
1 answer

How to use ECDSA function in the medtls library

I am using the mbedtls library (https://github.com/ARMmbed/mbedtls) on an ARM micro-controller (Ambiq). I need to use the function mbedtls_ecdsa_sign_det() to sign a bitcoin transaction. Actually, I am not sure if this is the right function. Here is…
Danny zadok
  • 1
  • 1
  • 2
-1
votes
1 answer

Generation ecdsa 32-byte private key in java/scala

is it possible to generate ecdsa 32-byte private key in java using KeyPairGenerator? I mean that keys.getPublic.getEncoded.length will return 32 I've tried to generate private key, but size is 144 bytes //keys.getPrivate.getEncoded.length - 144…
-1
votes
1 answer

ECDSA How to convert the private and public byte to single Shared key in c#

I am trying to implement the ecdsa in C#. I am able to generate the key from ECKeyPairGenerator but I need to do in reverse. I already have the keys need to make a single key. Can anyone help me out in this? I write code in c#. public static…
Priyanka Kanse
  • 1,051
  • 1
  • 15
  • 27
-1
votes
1 answer

Decoding ECDSA fails with: Exception in thread "main" java.security.SignatureException: error decoding signature bytes

I'm trying to verify a ECDSA signature, using java, the key was created using golang: import ( "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "crypto/x509" "encoding/pem" "fmt" "io/ioutil" "reflect" ) func doit(){ privateKey, _ :=…
Felipe Valdes
  • 1,998
  • 15
  • 26
-1
votes
1 answer

Why do not use ECDSA with PSK in TLS?

I noticed that there are cipher suits,such as "RSA-PSK-AES256-GCM-SHA384","RSA-PSK-AES128-GCM-SHA256", in OpenSSL. But there is no cipher suits,such as "ECDSA-PSK-AES256-GCM-SHA384","ECDSA-PSK-AES128-GCM-SHA256". Both RSA and ECDSA can be used to…
-1
votes
1 answer

Own random (not the private key) in the ECDSA

I'm trying to debug my own implementation of the ECDSA signature. To compare the intermediate results I would like to force the OpenSSL, Crypto++ or whatever else package to use a known "random" number instead of generating it each time the…
Vic
  • 102
  • 7
1 2 3
46
47