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

522 questions
37
votes
2 answers

SSH fingerprint verification for Amazon AWS EC2 server with ECDSA?

When I create a new Amazon EC2 server, I connect to it using ssh as usual. I see the typical warning: $ ssh myserver The authenticity of host 'ec2-12-34-567-890.compute-1.amazonaws.com (12.34.567.890)' can't be established. ECDSA key…
joelparkerhenderson
  • 32,633
  • 18
  • 90
  • 113
20
votes
3 answers

How to store ECDSA private key in Go

I am using the ecdsa.GenerateKey method to generate a private/public key pair in Go. I would like to store the private key in a file on the users computer, and load it whenever the program starts. There is a method elliptic.Marshal that marshals the…
Sam Lee
  • 8,493
  • 15
  • 44
  • 54
17
votes
3 answers

How to sign and verify signature with ecdsa in python

I need to sign a hash of 256 bits with ECDSA using a private key of 256 bits, just as bitcoin does, and I am reaching desperation because of the lack of documentation of ecdsa in python. I found a lot of codes on the internet, but there was nothing…
Jorky10
  • 381
  • 2
  • 3
  • 8
16
votes
1 answer

RDSA implementation on sage

First of all I must say my knowledge with using Sage math is really very limited, but I really want to improve an to be able to solve these problems I am having. I have been asked to implement the following: 1 - Read in FIPS 186-4…
sharp_c-tudent
  • 453
  • 4
  • 15
16
votes
1 answer

Importing ECC-based certificate from the Windows Certificate Store into CngKey

How can I get the public/private keys from an ECC-based X509Certificate2's into CngKey's for use with ECDsaCng and ECDiffieHellmanCng? I'm currently using RSA 2048 bit key pairs to sign/encrypt stuff. I'm doing this by pulling the certificates from…
Dan Turner
  • 2,205
  • 17
  • 19
14
votes
2 answers

How to verify data against signature with public key that uses sha1ecdsa?

Knowing little about cryptography I have great problems with what seems to be a simple task. I have .pem certificate, bytes of data, and signature of that data. I want to check if someone changed the data by matching it against signature. My…
kasper
  • 591
  • 2
  • 7
  • 18
13
votes
5 answers

Loading raw 64-byte long ECDSA public key in Java

I have a raw (r,s) format ECDSA NIST P-256 public key. It seems that there is no simple way to load it into an object that implements java.security.interfaces.ECPublicKey. What is the cleanest way to load a 64 byte public key so that it can be used…
user1094206
  • 840
  • 1
  • 11
  • 22
11
votes
4 answers

Deriving an ECDSA uncompressed public key from a compressed one

I am currently trying to derive a Bitcoin uncompressed ECDSA public key from a compressed one. According to this link on the Bitcoin wiki, it is possible to do so... But how? To give you more details: as of now I have compressed keys (33-bytes-long)…
Clara-sininen
  • 181
  • 1
  • 9
11
votes
1 answer

Does ECDiffieHellmanCng in .NET have a key derivation function that implements NIST SP 800-56A, section 5.8.1

I have a task at hand that requires deriving key material using the key derivation function described in NIST SP 800-56A, section 5.8.1. I'm not an expert in Cryptography so please excuse me if the question is naive. Here's what I've done so far: I…
Sudhanshu Mishra
  • 5,747
  • 2
  • 52
  • 68
10
votes
1 answer

Unknown 116-byte ECDSA private key format

iOS 13's CryptoKit framework provides a .rawRepresentation value for ECDSA public and private keys. I've been trying to reverse-engineer the rawRepresentation data type to convert between it and JWK. Judging by the 64-byte length of the public key…
Potassium Ion
  • 1,687
  • 16
  • 37
10
votes
1 answer

Generating ECDSA signature with Node.js/crypto

I have code that generates a concatenated (r-s) signature for the ECDSA signature using jsrsasign and a key in JWK format: const sig = new Signature({ alg: 'SHA256withECDSA'…
Petter Häggholm
  • 480
  • 3
  • 11
9
votes
2 answers

Error when verifying ECDSA signature in Java with BouncyCastle

I have tested a solution to verify an ECDSA signature (How can I get a PublicKey object from EC public key bytes?) that works perfect with the given data. This is the data: byte[] pubKey =…
CarlosRos
  • 382
  • 5
  • 15
9
votes
2 answers

Ruby/openssl: convert Elliptic Curve point octet string into OpenSSL::PKey::EC::Point

I am trying to write Ruby code to check the Elliptic Curve Digital Signature Algorithm (ECDSA) signature on a particular message that I found here. The problem is that I don't know how to convert the octet string for the public key into an…
David Grayson
  • 71,301
  • 23
  • 136
  • 171
8
votes
3 answers

ECDSA signatures between Node.js and WebCrypto appear to be incompatible?

I'm using the following example for signing + verifying in Node.js: https://github.com/nodejs/node-v0.x-archive/issues/6904. The verification succeeds in Node.js but fails in WebCrypto. Similarly, a message signed using WebCrypto fails to verify in…
SiNiquity
  • 103
  • 1
  • 5
8
votes
2 answers

Openssl ECDSA : private key passphrase

I am new with Openssl i have generated a private key myprivatekey.pem and a publickey mypublickey.pem with : openssl ecparam -genkey -name secp160k1 -noout -out myprivatekey.pem and my public key with : openssl -ec -in myprivatekey.pem -pubout…
elpazio
  • 607
  • 1
  • 8
  • 24
1
2 3
34 35