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

Python ECDSA failing to verify signature

I am trying to verify a Bitcoin signature using ECDSA in python but finding it very hard, many attempts failed already. The params: address: 33ELcBdg6W7parjGxNYUz5uHVHwPqopNjE message: hzpPiNlB signature(base64):…
0
votes
1 answer

jsrsasign with ECDSA verifying issue

I could verify an ECDSA / SHA256 signature using the standard library of Javascript (window.crypto.subtle.verify) but cannot using the jsrsasign library (KJUR.crypto). I have also tried 'KJUR.crypto.ECDSA' class directly but no luck neither. See…
Alex
  • 125
  • 7
0
votes
1 answer

How to generates an ECDSA signature over the P256 elliptic curve with a given privatekey in iOS

I have integrated Swift Crypto, the example shows how to generate a new private key\public key, then sign. let signingKey = try P256.Signing.PrivateKey() let signature = try signingKey.signature(for: hash) but I want to use a given…
0
votes
1 answer

How to use PublicKey for ECDsa

I want to create method for checking message sign on C#. I get PublicKey Data, Message, Sign. And I have C++ example which work. C++ Code: #include #include #include #include #include…
dmitriy
  • 256
  • 2
  • 17
0
votes
1 answer

Validating a ECDSA P-256 signature

The last little while I've been trying to build a Java library to interpret and validate NZ Covid Passes. I've got the code to work for better or worse up until the signature validation (a slightly important part of the process). The code in it's…
Goodie
  • 11
  • 2
0
votes
1 answer

JAVA 11 - elliptic curve private key - Caused by: java.security.InvalidKeyException: IOException : version mismatch: (supported: 00, parsed: 01

Small question regarding getting an elliptic curve private key with Java please. I run this command in my terminal: openssl ecparam -name secp256k1 -genkey -noout -out ec-secp256k1-dummy-priv-key.pem This commands is working fine, generating the…
PatPanda
  • 3,644
  • 9
  • 58
  • 154
0
votes
1 answer

ECDSA parameters/public key

I am not able to verify an ECDSA signature with openssl: I have the signature, the SHA256 hash of the data, the EC curve name , and an element that the documentation calls public key. If I check this public key with openssl I think I have a ecparams…
ErniBrown
  • 1,283
  • 12
  • 25
0
votes
1 answer

Problems to write a byte array of a signed hash with a private key in a text file and get it back as the same format

I'm writing a bytes array to a text file of a signed hash, that I first convert to a base64 string and convert to a bytes array again with the encoding UTF-8 before writing to the text file, my current problem is that when I get the bytes back I…
Rudy Silva
  • 13
  • 2
0
votes
1 answer

Why can't ECDSA signatures on Linux be verified successfully on Windows?

I use the following command line to generate the ECDSA signature in Linux. In Linux, you can use the command line to verify the signature. This is no problem In Windows, the same command line can also be signed and verified successfully openssl…
Lai Pang
  • 3
  • 2
0
votes
0 answers

ECDSA for Bitcoin values: what is z?

I'm doing a deep dive into Bitcoin and how it works. I'm currently learning about elliptic curves, signatures and verifications. I'm reading the steps to for the signature generation algorithm. It says: For Alice to sign a message m, she follows…
J. Hesters
  • 13,117
  • 31
  • 133
  • 249
0
votes
0 answers

Why is that the exported private key from a ECDsaCng key pair is longer than the expected 256 bits?

I have the following code. I expected the console output to be 32 (bytes), but it's actually a lot longer. Why is that? Can I trim that down? ECDsaCng keyPair = new ECDsaCng(256); byte[] privateKey = keyPar.ExportECPrivateKey(); …
0
votes
1 answer

Android Studio Problem verifying elliptic p256 signature with public key. ECDSA

I been stuck with this matter for a while. I have followed How can I get a PublicKey object from EC public key bytes? method. It's working on his example but not on mine. Not sure where went wrong. The sample works on node.js but when using the…
0
votes
1 answer

Ebay public key verification in fails in C# but works in node

I've been attempting to verify ebay notifications in C# .net core 3.1 but it rejects the signature. I have a working, minimal example in node. Note that I've had to redact the body content. The signature verifies OK. const crypto =…
speciesUnknown
  • 1,644
  • 2
  • 14
  • 27
0
votes
1 answer

SecKeyCreateWithData Returns ‘Nil’ with Error

We are trying to create a ’SecKey’ from a ‘.der’ file. But ‘SecKeyCreateWithData’ always throw ‘Nil ’ with Error.
 Steps Followed:: First we created a ECDSA Private & Public key pair with the below Commands , then converted the .pem file holding…
0
votes
1 answer

Verify Signature with public key P265r1

I would like to verify a signature with a public key and can't find any way to do this in dart. In Swift, there is an easy solution via the SecKeyVerifySignature function. Is there something similar in flutter? I could only find the cryptography…
Paul
  • 177
  • 2
  • 9