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

JSON Web Tokens Not Decodable on jwt.io: "JWT payload is not a valid JSON object"

Using the below code, I am able to build a decoded JSON Web Token (decodedToken). When I paste it into the debugger on https://jwt.io, the header and payload are correctly shown on the right. But when I paste the encoded token (encodedToken) into…
user1325179
  • 1,535
  • 2
  • 19
  • 29
0
votes
2 answers

How can I write an encrypted ECDSA private key file from Java

I have a Java service that will generate an ECDSA public/private key pair. I'd like to write both the public key and the private key, encrypted with a randomly-generated secret key that I manage within my service, to the local file system. I could…
Tim Dean
  • 8,253
  • 2
  • 32
  • 59
0
votes
1 answer

pkcs11interop generate key pair(EC or ECDSA), get error

This is my code : X9ECParameters x9Ec = NistNamedCurves.GetByName("P-256"); X962Parameters x962 = new X962Parameters(x9Ec); byte[] paramsBytes = x962.Parameters.GetDerEncoded(); List publicKeyAttributes = new…
Randy
  • 3
  • 3
0
votes
1 answer

Failing to verify ECDSA signture using ecsda package

I have generated a signture and base64 encoded it: 4d4559434951436c627834634e4b4d513944764d2f4d4f536c3636642f344f4f4c74777a48493661676e427a4149395838514968414c37683959464e575242784e56497675706b534b3362564b735049717a445067464e5a563164415a506565 Using…
Margach Chris
  • 1,404
  • 12
  • 20
0
votes
1 answer

how to setup OCSP server with intermediate certificate

I am trying to setup an OCSP server with 3 to 4 path length (Root > IMCA1 > IMCA2 > Server). I would like to ask the following questions. Which certificate should I use to sign OCSPSIGNING(Responder) certificate? When I will be initializing OCSP…
0
votes
0 answers

In hyperledger fabric how to use user's key-pair for encryption and decription?

By using Hyperledger fabric 1.4 SDK I have created one user, a set of public and private key is generated for that user. Now I want to use this key pair for encrypting and decrypting the data. I aware hyperledger uses elliptic curve cryptography for…
0
votes
1 answer

Requirement for external x509 certificates signature and key algorithms to be used in Hyperledger Fabric

We are trying to setup a test network using certificates provided by the organization (i.e., not generated by cryptogen nor by fabric-ca-server). I have re-created the MSP for peer0, by placing all mentioned certificates and keys in the…
0
votes
1 answer

“Unsupported key algorithm: ECDSA” when trying to put keys generated by Bouncy Castle into AndroidKeyStore

I'm trying to import various private keys into AndroidKeyStore. I'm using BouncyCastle to decode raw key data. While I am able to obtain usable KeyPairs, I can't put EC keys into AndroidKeyStore due to the following…
squirrel
  • 5,114
  • 4
  • 31
  • 43
0
votes
0 answers

Converting a Certificate Signing Request public key from ECDSA to RSA

I am working on an application hosted on Heroku that communicates with an apple system that requires SSL certificates to be in place. Apple requires that an ECC certificate be used where Heroku does not support ECC certificates - only RSA. I am…
Chris
  • 600
  • 7
  • 15
0
votes
1 answer

Certificate chain X509

Hi I want to generate a certificate chain using c#. Something like this: I create this code for generation: using System; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; namespace CC.CertificateCore { …
Omar Amalfi
  • 379
  • 1
  • 2
  • 14
0
votes
1 answer

Decryption process of ECDSA from receiver's end

I have seen so many references all over the internet on how to implement ECDSA from the sender's point of view. That is the encryption of the message by signing it and it's validation. I did not find any implementation for the same from the…
Shilps
  • 45
  • 1
  • 2
  • 6
0
votes
1 answer

C# sign data ECDSA from smartcard

I am trying to sign some data using the private key from the smart card. The key algorithm is ECDSA. when I try to get the private key object it occurs system not supported exception. Then after some research, I get to know that X509Certificate2…
Freeedy
  • 101
  • 3
  • 9
0
votes
0 answers

Getting error "java.security.SignatureException: error decoding signature bytes." on signature verification using SHA256withECDSA algorithm in Java

I am very new to JSON Web Signing and wanted to know how JSW Signing is done in Java. I searched for it but didnt really understood what it needs. I tried using signature algorithm as below: For signing: Signature signature =…
0
votes
1 answer

Error while call to function EVP_DigestSignFinal

I'm trying to implement ECDSA with custome engine and I'm facing error at this line EVP_DigestSignFinal(mdctx, sig, slen)).Can anyone please guide me. Engine part --> EVP_PKEY_meth_set_sign(dasync_ec, dasync_ec_signinit, …
0
votes
1 answer

Having troubles with the ecdsa library for python

I wanted to test out if the elliptic curve code (to derive a public key from a private key) from the book Mastering Bitcoin by Andreas Antonopolous would work...so I copied and pasted the code in the book to my VSC editor. It prompted a few errors…
jiamijiang
  • 87
  • 1
  • 1
  • 6