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
41
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
  • 34,808
  • 19
  • 98
  • 119
25
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
  • 591
  • 2
  • 6
  • 9
24
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
  • 9,913
  • 15
  • 48
  • 56
23
votes
8 answers

Issue on adding SSH key to GitHub

I have got an issue that seems about the format of SSH key used by GitHub. I used Git Bash to generate a new SSH key: $ ssh-keygen -t rsa -C "youremail@youremail.com" Then, I copied the key to the SSH section in settings of my GitHub account page.…
Yu Xiong
  • 343
  • 2
  • 5
  • 13
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
  • 463
  • 5
  • 17
16
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
  • 920
  • 1
  • 12
  • 24
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,233
  • 18
  • 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
  • 641
  • 2
  • 8
  • 18
12
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
  • 520
  • 1
  • 3
  • 12
11
votes
5 answers

Unable to verify message signed by sol-wallet-adapter

Having created a signed message I'm unsure how to use the resulting signature to verify the message using the publicKey. My use case is, I'm wanting to use a Solana Wallet to login to an API server with a pattern like: GET message: String (from API…
harkl
  • 872
  • 7
  • 17
11
votes
1 answer

Create EC private key from hex string

I am wondering if this is a correct way to create PrivateKey object in Java from HEX string from this website: https://kjur.github.io/jsrsasign/sample/sample-ecdsa.html Create a BigInteger from a HEX String: BigInteger priv = new…
serg.nechaev
  • 1,323
  • 19
  • 26
11
votes
3 answers

Deriving ECDSA Public Key from Private Key

I was attempting to generate a public ECDSA key from a private key, and I haven't managed to find much help on the internet as to how to do this. Pretty much everything is for generating a public key from a public key spec, and I don't know how to…
Lev Knoblock
  • 611
  • 2
  • 6
  • 20
11
votes
2 answers

How to convert an ECDSA key to PEM format

I have a private raw key of myetherwallet with a passphrase "testwallet", now I am trying to convert it to a PEM format using OpenSSL following this answer. echo "a140bd507a57360e2fa503298c035854f0dcb248bedabbe7a14db3920aaacf57" | xxd -r -p - |…
H Aßdøµ
  • 2,925
  • 4
  • 26
  • 37
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
  • 191
  • 2
  • 9
11
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
  • 135
  • 1
  • 6
1
2 3
46 47