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
1 answer

ECIES encryption/decryption Java

I am trying to use ECIES for encryption and decryption. This is what I have done: generated ECC key pair generated CSR Generated X509 certificate, signed by intermediate CA Server side, I need to use this certificate to encrypt data. So I have…
Mukesh
  • 207
  • 1
  • 6
0
votes
0 answers

Create PKCS 10 with Eliptic Curve in iOS

I'm on R&D to create PKCS 10 CSR, I googled and found very good help on github of this man done, I've done with RSA kSecAttrKeyTypeRSA, Now I want to done same with Eliptic Curve kSecAttrKeyTypeEC but I'm not able to find that need help on…
Aleem
  • 3,173
  • 5
  • 33
  • 71
0
votes
1 answer

ECC key pair - how to print private key?

I implement "Key Pair Generation" using secp192r1 curve. But private key did not display in string form like public key. Here is my code: package lam.bk; import java.security.*; import java.security.spec.*; public class ECCKeyGeneration { …
ThanhLam112358
  • 878
  • 1
  • 20
  • 51
0
votes
0 answers

JSch Exception while using ecdh as kex algorithm

I am working on FIPS requirement for which i have to use ecdh-sha2-nistp384 as kex algorithm. I changed the config by using session.setConfig("StrictHostKeyChecking", "no"); session.setConfig("CheckKexes", ""); …
AjayLohani
  • 872
  • 1
  • 6
  • 26
0
votes
1 answer

Convert python cryptography EC key to OpenSSH format

I am looking to convert EC key generated using cryptography module to their respective OpenSSH strings. like ecdsa-sha2-nistp256…
abhi
  • 366
  • 6
  • 17
0
votes
1 answer

Verify ECDSA signature from PyKCS11

I have a python program which uses PyKCS11, a python wrapper for pkcs11 interface. I can sign data with a ECC private key (Mechanism CKM_ECDSA) that is stored on a HSM and that is accessed by PyKCS11. What I now want is to verify with openssl the…
Ovomaltine
  • 191
  • 1
  • 8
0
votes
0 answers

Using ECDSA private key in Java with BouncyCastle

I'm trying to use ECDSA in Java with BouncyCastle library and the private key I get by reading the pkcs12 file in Java is different than what I see in the PEM file (which I got using openssl). I'm unsure if they should be the same but seems logical.…
0
votes
1 answer

Key does not exist - using self signed ECDSA certificate

I have an issue with digitally signing an XML message. Requirements dictate that an ECDSA certificate is to be used with a specific curve. Meaning that the RSA and DSA functionality that is provided by the SignedXml.ComputeSignature(...) method…
Geek
  • 415
  • 4
  • 16
0
votes
1 answer

OpenSSL ECDSA signature validity

From OpenSSL documentation Creating an ECDSA signature of a given SHA-256 hash value using the named curve prime256v1 (aka P-256). Second step: compute the ECDSA signature of a SHA-256 hash value using ECDSA_do_sign(): sig = ECDSA_do_sign(digest,…
user14416
  • 2,922
  • 5
  • 40
  • 67
0
votes
1 answer

PHP: openssl_verify not working with ECDSA keys

I need some help with the following "pseudo" code:
Pavol Biely
  • 65
  • 1
  • 7
0
votes
2 answers

cryptographicexception the parameter is incorrect

I am using ECDSA with SHA1 encryption because I am trying to make a licencing activation for a desktop application. For that I use a PHP server to which I give PC information and the server gives me the public the key and then I want to validate the…
Andrei Dobrin
  • 1,164
  • 4
  • 19
  • 35
0
votes
0 answers

Distinguishing start of digitally signed message digest

Since I just created this crude test using the functions from IETF RFC 4634, I don't know for certain whether I've used them correctly for HMAC-SHA-384-192, so I'll start with that code here: #include #include #include…
Jerry Miller
  • 921
  • 1
  • 8
  • 11
0
votes
1 answer

Why can't python ECDSA support negative numbers yet?

I am trying to write a python script that verifies an ECDSA signature and I am having a terrible time trying to do it. This is the code I use: public_key = ecdsa.VerifyingKey.from_string(pubkey, curve=ecdsa.SECP256k1) verified =…
Jorky10
  • 591
  • 2
  • 6
  • 9
0
votes
0 answers

Get list of supported cipher suites (to detect ECDSA support)

I'm considering the possibility of using a content delivery network for my websites. Because I'm such a cheapskate, I am trying to reduce the cost of doing so. There is a fantastic CDN that is extremely low cost, but only supports browsers and…
Andrew Sun
  • 270
  • 3
  • 11
0
votes
1 answer

BAD_ACCESS (code=EXC_I386_GPFLT) when signing with ECDSA

I am trying to use Crypto++ on iOS. I downloaded a prebuilt version of the library from Marek Kotewicz's GitHub. I am struggling hard to run this sample code from the Crypto++ wiki. ECDSA::PrivateKey privateKey; ECDSA
SandeepAggarwal
  • 1,273
  • 3
  • 14
  • 38