Questions tagged [ecc]

ECC stands for Elliptic Curve Cryptography. Elliptic curves are a mathematical structure which allow to define cryptographic operations on them.

Filter by
Sorted by
Tagged with
1
vote
2answers
133 views

Does the “Key Encipherment” key usage make sense when using ECDH P384?

I configured a Windows CA and created a certificate template to issue certificates with ECDH_P384 keys: Then I noticed that it's not possible to set the "Key Encipherment" key usage in the "...
9
votes
1answer
203 views

How does CVE-2020-0601 (ChainOfFools/CurveBall) work to undermine ECC?

What is the recently patched and disclosed Windows 10 OS family Crypt.dll vulnerability CVE-2020-0601, nicknamed ChainOfFools and/or Curveball? I've read up on it and while I understand the basics (...
1
vote
1answer
46 views

SSH and the ECDH component

With SSH, most of my servers use ed25519 (the twisted Edwards variant EC) for authentication. I was wondering, after authentication with ed25519, does SSH protocol 2 simple use ephemeral/ephemeral ...
1
vote
1answer
45 views

Does a TLS client needs to support one of the named groups (curves?) supported by the server for TLS handshake to succeed?

Does a TLS client needs to support one of the named groups (curves?) supported by the server for TLS handshake to succeed? Longer version: I'm running a web site using Windows Server 2016. The web ...
-2
votes
1answer
94 views

Attack on RSA and ECC

I am reading information about RSA and Eliptic Curves cryptography. Assuming that both these two algorithms have stages until two parts achieve key exchange. If an attacker eavesdrop the stages before ...
1
vote
1answer
71 views

Is it important to use separate GPG keys for signing Git commits and for SSH authentication?

When using GPG to sign Git commits, and as the SSH-agent, is it important to use separate sub-keys for the signing of the Git commits as it is for authentication with the SSH host of the Git server? ...
2
votes
1answer
83 views

Is this key exchange algorithm secure and valid? [closed]

I'm writing reliable UDP implementation and I want it to be secure. Also, I want to make use of elliptic curve cryptography. I don't have the proper education to really understand the math behind this ...
0
votes
1answer
40 views

How can I add bits of security? (e.g. RSA + ECC)

If we have an RSA layer of encryption over some text with n bits of security, then we use an elliptic curve, say with m bits of security, how can we calculate the total bits of security with RSA(ECC(.....
3
votes
1answer
103 views

How does MariaDB's ed25519 auth scheme work?

Newer versions of MariaDB (a MySQL database server fork) have a new password based auth scheme called "ed25519". The docs are very sparse regarding how it works and what it does. https://mariadb.com/...
1
vote
2answers
264 views

ECDHE_RSA_WITH_AES_128_GCM_SHA256 - How to determine ECDHE Key Length?

Server: SSL Certificate, 2048-bit RSA Public Key, Signature Algorithm is sha256RSA What am I missing here? ! I've scoured the RFC's, and I have yet to find anything on how to determine the ECDHE key ...
0
votes
0answers
34 views

How to customize default enabled EC curves or the curves preference in Azul Zulu JDK

We use Zulu JDK and want to customize the default enabled EC curves. Oracle JRE provides this using jdk.tls.namedGroups system property in java.security. https://www.oracle.com/technetwork/java/...
0
votes
1answer
81 views

secp256k1 GPG key?

Given that secp256k1 is used to underpin the entire Bitcoin network (worth $174B as of today) -- it appears to offer demonstrably better security than other EC curves as no one has yet taken the ...
0
votes
2answers
131 views

CSR signature using elliptic curve

We've been asked to generate certificate signing request using elliptic curve and we can't use any third-party library it's an embedded application with very limited resources). We are used to ...
3
votes
1answer
288 views

GPG unattended ECC key and subkey generation

I want to generate an ECC key where the primary key is just for cert and has 3 subkeys for auth, sign, encrypt. I've found 2 methods to generate it. But I want to use unattended key generation via ...
1
vote
0answers
61 views

Elliptic Curve searchable encryption for message delivery

I need a simple message scheme where a sender can send a private message to a receiver using a public database and without relieving who the receiver. All parties have an Elliptic Curve public and ...
0
votes
0answers
324 views

Converting a raw EC public key into EVP_PKEY using openssl

I am trying to convert a raw EC key and EVP_PKEY structure. The process seems straightforward but am running into issues. Here is the code I am using -- unsigned char tmpPubKey[] = { 0x04, ...
1
vote
1answer
101 views

OpenSSL ECC key - Additional byte in DER encoding for one curve

In the below, I use OpenSSL to create a private key for the secp224k1 curve. Note the length of the private key in the DER - 0x1d. That's 29 bytes, or 232 bits, not 224. It appears that a leading zero ...
0
votes
0answers
70 views

OHS 11g ECDHE_RSA

I'm pretty new with SSL, but despite this I have a task for that. I'm running Oracle Http Server v 11.1.1.9 and I would like to use the ECDHE_RSA cipherSuites to deal with https connections. In my ...
1
vote
3answers
2k views

RSA 4096 vs. ECC Curve 25519

I want to use GPG to encrypt files before storing them as backup in the cloud. I don't care about interoperability or performance/resource consumption during encryption/decription. I only care about ...
0
votes
0answers
67 views

Which encryption algorithm for cloud backup?

I want to backup my data to the cloud. Before that, I want to encrypt it using GPG (gpg (GnuPG) 2.2.11 and libgcrypt 1.8.4). The backup is just for me, so I don't care about interoperability I only ...
1
vote
1answer
217 views

AES, RSA, ECC Key size [closed]

It is generally said that 2048-bit RSA keys are roughly equivalent to 112-bit symmetric keys and 2048-bit RSA keys are "sufficient for commercial use until around the year 2030" (https://security....
2
votes
1answer
88 views

Shareable encrypted data in a web application

This is a follow up on my previous question about Storing sensitive, sharable data for a company where several of the employees have access to the server. This solution has worked well for our ...
2
votes
1answer
325 views

ECDH and static key encryption

It's been a while and I'm still trying to figure out if my understanding of ECC crypto is correct. Basically from what I understood a purely asymmetric encryption is never used. Usually the ...
1
vote
1answer
372 views

How can I use 'safe' Elliptic Curve algorithms in .Net Core?

I'm looking to build my own digital signature operations into a program I'm writing, and the nuances of cryptography are a bit beyond me. According to this website the NIST/NSA algorithms (P-224, P-...
3
votes
1answer
284 views

BouncyCastle and Microsoft Cng ECDH secret key mismatch

I'm trying to refactor some client-side code from BouncyCastle to Microsoft Cng. I've figured out how to convert key format(ECC key blobs) between them, but I couldn't calculate the same secret. ...
1
vote
0answers
91 views

Advantage Of ECDH-RSA over RSA Ciphersuites In TLS

If ECDH-RSA is used for key exchange, this is what happens: The server has its public ECDH parameter embedded within its certificate. The client generates its public ECDH parameter, extracts the ...
2
votes
1answer
523 views

Why PEM encodings of EC public and private keys use different headers?

Manual page for OpenSSL ec command states: The PEM private key format uses the header and footer lines: -----BEGIN EC PRIVATE KEY----- -----END EC PRIVATE KEY----- The PEM public key ...
1
vote
1answer
3k views

Is the JDK standard EC KeyPairGenerator suitable for use with both ECDSA and ECDH algorithms?

I've seen various references on the web for generating Elliptic Curve KeyPairs in Java, and the two most commonly referenced examples (unsurprisingly) use the JDK default provider and BouncyCastle. ...
2
votes
2answers
237 views

Can be used ECDH with static public key and parameters?

I have protocol required for privacy. Thus, I want to use hybrid cryptography. Base on my knowledge, ECDH is fast and secure. My system consists of 3 main components a trusted-server, client, and ...
1
vote
1answer
582 views

ASN.1 encoding of X25519 private key

I'm using mbed TLS for ECDH key agreement using Curve25519. The private and public keys are stored and transmitted as Hex strings as easily generated with mbed TLS. Those strings are big-endian. This ...
5
votes
1answer
954 views

Where can I find a canonical list of elliptic curve names and their aliases?

I recently had a problem where I created an EC client certificate which used the sect571k1 curve and I got some strange errors attempting to use it as a client certificate through Mozilla Firefox. It ...
4
votes
2answers
2k views

What is the format of an X9.62 key?

RFC8292 contains this gem: The "k" parameter includes an ECDSA public key [FIPS186] in uncompressed form [X9.62] that is encoded using base64url encoding [RFC7515]. There is an example of the use of ...
2
votes
1answer
118 views

What can you do with a sufficiently complex quantum computer against Elliptic Curve Cryptography?

I've heard that a modified version of Shor's algorithm can "break" ECC. But what does this mean specifically? What are all the things you can do with this algorithm? Can you: decrypt messages ...
1
vote
0answers
41 views

Does using the same curve certificate on both ends cause security issues?

I have the following scenario: an application that establishes a full mesh connection with itself on a remote server. We use 0MQ and curve certificates for security and authentication, but at the same ...
2
votes
1answer
153 views

Is it safe for both client and server to use the same keypair in CurveZMQ?

I make software for physics labs, and computers in the labs are exchanging all sorts of information with each other and with researcher's laptops, usually on a university network. I use ZeroMQ for ...
2
votes
1answer
158 views

Does the ECDSA signature value (of an OCSP response) need to be DER encoded

In OCSP responses by a certain eIDAS PKI I every once in a while get signature values which, when unpacked from their BIT STRING, contain an ECDSA signature whose INTEGER constituents have an ...
12
votes
2answers
4k views

Generate new key - ECC vs RSA

I intend to start using GnuPG again. I haven't used it for the last 2 years and was surprised that there is now the option for RSA and ECC keys. After reading a bit about ECC, it seems to me there is ...
1
vote
1answer
86 views

Is There a Whitepaper or Explanation of ECDSA somewhere? [closed]

Let's say I wanted to write an implementation of ECDSA from scratch to better understand it. I can't find a raw, non-abstract explanation anywhere. I tried tracking down the sources on the wiki ...
0
votes
1answer
533 views

How I can get the point of elliptic curve?

I have set a connection with facebook.com and I need the point that is used in the signature. I have the public key and the certificate. Also with the command: openssl ec -pubin -in facebook_pub.key ...
0
votes
1answer
129 views

How I can get the elliptic curves parameters from a host?

For example, with openssl I have seen that facebook works with ANSI X9.62 prime256v1 elliptic curve and what I want is the point of the curve that is using with my signature. I have seen that I can ...
1
vote
0answers
143 views

ECC order and modulus in EC

I have an error in reasoning regarding to the calculations on elliptic curves. The basic group operations are all calculated mod p. Ok right. Then I construct for ECC a discrete logarithm problem ...
1
vote
1answer
187 views

CECPQ1 key exchange functionality

CECPQ1 (combined elliptic Curve and Post-Quantum Cryptography Key Exchange) is a new key exhange developed by google, which combine X25519 with NewHope (elliptic Curve KE + Post-quantum KE). Google ...
1
vote
1answer
896 views

Get r and s from ECDSA Signature as two concatenated integers (OpenSSL) [closed]

EVP_DigestSignFinal() gives me a DER encoded signature. Some examples: ECDSA-SHA-256 30 44 02 20 [..r..] 02 20 [..s..] 30 46 02 21 [..r..] 02 21 [..s..] 30 45 02 20 [..r..] 02 21 [..s..] ECDSA-SHA-...
3
votes
1answer
2k views

Wrong size for EC key pair

I'm using OpenSSL to generate EC key pairs. I notice that the length of the keys as displayed by OpenSSL are exactly one byte longer than expected for both private and public Key. The 00 (first Byte ...
2
votes
0answers
328 views

How to securely store a PIN-encrypted prime number?

Situation: within a mobile application, we're generating and storing a private key (RSA or ECC) which we use to sign miscellaneous requests with (to authenticate using the mobile as a 2nd factor, or ...
1
vote
0answers
344 views

Is ECDH easier than DH to be broken?

As I am a security newbie, this post might have lots of misconceptions about security. If so, please let me know I've heard that ECDH is preferable to DH because its smaller key size and lower ...
2
votes
0answers
41 views

Can ECC correctness issues in CVE-2015-2730 allow “remote attackers to spoof ECDSA signatures”?

CVE-2015-2730: Mozilla Network Security Services (NSS) before 3.19.1, as used in Mozilla Firefox before 39.0, Firefox ESR 31.x before 31.8 and 38.x before 38.1, and other products, does not properly ...
5
votes
0answers
4k views

Which ECC to choose with GPG?

I want to generate a key pair with gpg2 2.1.11 and libgcrypt 1.6.5. I use the command gpg2 --expert --full-key-gen. This allows me to choose an ECC: Please select what kind of key you want: (1) ...
1
vote
1answer
223 views

How widely used is Elliptic Curve Cryptography?

I would like to know how widely ECC is being used today (or has been used in recent years). How do I find data about this? Also, what are good metrics for quantifying this?
1
vote
0answers
103 views

Using ED448 (or other elliptic curves) for password hashing

I was thinking about a password hashing scheme that would work roughly as follows. for i:=0 to n do password = HASH(password) private_key = GenerateRandomKey(ED448) public_key = GetPublicKey(ED448,...