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
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
  • 6,523
  • 2
  • 59
  • 76
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
  • 2,075
  • 1
  • 22
  • 39
9
votes
2 answers

ASN1 encoding routines errors when verifying ECDSA signature type with openssl

I'm trying to verify a SHA256 ECDSA digital signature provided to us by an external party. They have verified their signing process in-house, but we've been unsuccessful in our attempts. We repeatedly get asn1 encoding routines errors during…
romanpilot
  • 305
  • 1
  • 2
  • 8
9
votes
1 answer

Create any PrivateKey instance (RSA or DSA or EC) from PKCS8 encoded data

I have an unencrypted PKCS8 encoded file that represents a Private Key. It can be any of these private key types - RSA, DSA or EC. I viewed these files in an ASN1 decoder (https://lapo.it/asn1js/) and I could see the type (RSA, DSA or EC) in the…
MediumOne
  • 804
  • 3
  • 11
  • 28
9
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
  • 697
  • 2
  • 9
  • 25
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
  • 389
  • 6
  • 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
  • 84,103
  • 24
  • 152
  • 189
9
votes
1 answer

ECDSA signature length

What will the signature length for 256 bit EC key in ECDSA algorithm? I wanted to validated signature length for the same. It will be great if some body can help me with one EC key set.
Jeet
  • 157
  • 2
  • 2
  • 4
8
votes
0 answers

Implementing secp256k1 (ECDSA) in PHP (for Bitcoin)

To keen downvoters and/or closers: If you think this is offtopic for SO, kindly point me out other StackExchange site where this question would be more appropriate. How to implement ECDSA curve secp256k1 in PHP? Or rather: Are there any solutions -…
Smuuf
  • 6,339
  • 3
  • 23
  • 35
8
votes
2 answers

https with ECDHE-ECDSA-AES256-GCM-SHA384 in windows 2012

I have been a long time reader but this is my first real post on a topic that I couldn't find a solution to. I am currently hosting a website on Windows 2012 that I would like to get the latest TLS 1.2 ciphersuites running on. I am aware of how to…
user2555174
  • 141
  • 1
  • 2
  • 5
7
votes
1 answer

Xcode can't handle key encryption Ed25519

More than a question this is a sharing information post. If you pull private repos via SSH, you should create an id_ecdsa because Xcode does not accept Ed25519 key, instead since github does not accept RSA-SHA1 anymore since…
7
votes
3 answers

Python : Create ECC Keys from private and public key represented in raw bytes

I have following ECC private and public key pairs: Private key : 0x63bd3b01c5ce749d87f5f7481232a93540acdb0f7b5c014ecd9cd32b041d6f33 Public Key :…
Shrikanth K
  • 73
  • 1
  • 1
  • 6
7
votes
5 answers

ES256 JWT Signing in PHP for Apple AppStoreConenct API Auth

I'm trying to authenticate to Apple's AppStoreConnect API with an ES256 signed JWT (per their instructions at https://developer.apple.com/documentation/appstoreconnectapi) using PHP. Sending my request always results in a 401 NOT_AUTHORIZED…
Chris Sprague
  • 368
  • 1
  • 4
  • 12
7
votes
2 answers

How to generate bytes array from PublicKey

I'm use crypto lib, ran into a problem: I need to convert the PublicKey type into byte[], as it can be done with a private key: privkey.D.Bytes() How can I solve this problem?
Folleah
  • 115
  • 1
  • 5
7
votes
1 answer

PHP create ECDSA signature and verify with Golang

I try to make the app with PHP that creates ECDSA signature for some document and that signature is verified with Golang app. I use private keys generated with openssl tool. It is prime256v1 curve key. Created with the command: openssl ecparam -name…
Roman Gelembjuk
  • 1,797
  • 2
  • 25
  • 50
1
2
3
46 47