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

SHA256withECDSA Signature not Verifying, Android

Update: The critical aspect is that kp (keypair) is generated "outside" this code. This code is an onclick function whereas kp is defined in the code that sets up the onclick. Shouldn't matter but that's what seems to be the problem and that's…
user2297550
  • 3,142
  • 3
  • 28
  • 39
0
votes
1 answer

OpenSSL DER ECDSA encoding error

I am trying to encode ECDSA Curve448 key into a small and portable byte array. I am trying to use DER to accomplish this, as the low-level APIs do not work with Curve448. However, when I use the following code: std::vector>…
Cyclic3
  • 149
  • 2
  • 10
0
votes
0 answers

Encoding Hex ECDSA signature to ANS1 DER Java

I am trying to convert a hex ECDSA signature to ASN1 DER but getting error. Please help with pointers to correct Java function : public ASN1Sequence convertSignatureToASN1DER(String signatureHex) { System.out.println("Encoding hex…
vison
  • 59
  • 1
  • 9
0
votes
0 answers

Creating PKCS#7 with ECDSA

I am creating PKCS#7 Message: SignedCms signedCms = new SignedCms(GetContent()); var certificateFromFile = new X509Certificate2("my-ecdsa.pfx"); var signer = new CmsSigner(certificateFromFile); signer.DigestAlgorithm = new…
pwas
  • 3,225
  • 18
  • 40
0
votes
2 answers

Extract ECPublicKey from a X509 certicate

I'm having trouble extracting an ECPublicKey from an X509 certifcate using Java. The keys and certificate were created as follows ssh-keygen -t ecdsa -f id_ecdsa openssl pkcs8 -topk8 -in id_ecdsa -out id_ecdsa.p8 openssl req -new x509 -key…
John Harriott
  • 49
  • 2
  • 5
0
votes
1 answer

Convert hex encoded ESCDA private key to Java PrivateKey interface

I'm trying to implement my own Java User interface of HyperLedger-Fabric SDK. If you don't familiar with HyperLedger-Fabric, forget this line, it's not necessary. To do so, I'm trying to convert this json(from fabric) to private…
Tal
  • 347
  • 2
  • 16
0
votes
1 answer

PEM encoding of ECDSA in Java

I need help as to how to correctly construct the Java Private.pem. I have an ECDSA pem file created in java and one in python. I have correct implementation of the python one, but the java one isn't correct. KeyPair pair = GenerateKeys(); PrivateKey…
dtseng
  • 15
  • 1
  • 6
0
votes
1 answer

U2F register signature verification fails

With one of my U2F tokens, NIST P-256 ECDSA signature verification fails on the U2F_REGISTER response. I'm working according to this protocol description:…
pts
  • 80,836
  • 20
  • 110
  • 183
0
votes
1 answer

ECDSA sign with bouncy castle and verify with openssl

I have a self-signed certificate(not popular X.509 one). The certificate and ECDSA public/private key pair are generated by java program using bouncy castle. I need to verify this certificate with C program using openssl. However, the ECDSA…
chris.sun
  • 11
  • 3
0
votes
1 answer

how I can make public key from private (ecdsa) in java without Bouncy Castle?

I have private key (ecdsa,secp256r1). private final static String SHA = "SHA-256"; private final static String MODE = "EC"; private final static String PROV = "SunEC"; private final static String ECC_ALGO =…
AlP
  • 21
  • 1
0
votes
1 answer

openSSL: Import ECDSA signature from raw data with compressed CurvePoint R instead of r

I want to verify some data packets which contain an ECDSA signature that is not ASN.1 DER encoded. I am trying to perform the task with openSSL (version 1.1.0) as it seems to bring all the required functionality. Currently I am stuck with importing…
Gerhardh
  • 11,688
  • 4
  • 17
  • 39
0
votes
1 answer

How to change the key length of ECDSA?

Recently, I was trying to do something with the code of ECDSA. I want to change the key length of it but in vain. I checked the internet and found some source code of ECDSA, but somehow it only allows 32 bytes. For example, I found…
0
votes
1 answer

How to extract ephemeral and static private keys from ecc private key using openssl

I am using the following openssl command to generate an ECC key for SECp384: openssl ecparam -genkey -name secp384r1 -out private.pem Can someone please let me know how to extract ephemeral(k) and static(k) private keys from generated ecc private…
Satya
  • 1
0
votes
1 answer

ecdsa signature verification

next problem: message is signed in python application and will be verified in erlang with public key python can sign message in two ways: with muttable length of signature - erlang verifies ok with imuttable length of signatur - erlang cant verify…
0
votes
1 answer

ECDSA Android verify with Public Key always return false

I have some token and I need first to sign it with SHA256 and ECDSA based on private and public key from KeyStore. Every time when I try to verify value I get false as result. I do not know why. Does someone have any idea how to solve this? Here…
Zookey
  • 2,637
  • 13
  • 46
  • 80