# Tag Info

## Hot answers tagged discrete-logarithm

28

Elliptic curves are not the only curves that have groups structure, or uses in cryptography. But they hit the sweet spot between security and efficiency better than pretty much all others. For example, conic sections (quadratic equations) do have a well-defined geometric addition law: given $P$ and $Q$, trace a line through them, and trace a parallel line ...

27

The problems: The Discrete Logarithm problem: Given $y$, find $x$ so that $g^x = y$. The Computational Diffie-Hellman problem: Given $y_1 = g^{x_1}$ and $y_2 = g^{x_2}$ (but not $x_1$ and $x_2$), find $y = g^{x_1·x_2}$. The Decisional Diffie-Hellman problem: Given $y_1, y_2, y_3$, decide if they are of the form $y_1 = g^{x_1}$, $y_2 = g^{x_2}$ and $y_3 = g^{... 25 The word discrete is used as an antonym of 'continuous', that is, it is the normal logarithmic problem, just over a discrete group. The standard logarithmic problem is over the infinite group$\mathbb{R}^*$, this group is called 'continuous', because for any element$x$, there are other elements that are arbitrarily close to it. The discrete logarithmic ... 20 A couple things: This article is two years old, so take its predictions with a grain of salt. In the two years that have elapsed, the predicted advances have not materialized, and there is little indication they will soon. The core of those arguments was Joux's 2013 result on the discrete logarithm problem in finite fields of small characteristic. Those ... 20 A good overview on that matter can always be found on https://keylength.com, which summarises many publications with recommendations for key lengths. Especially NIST SP-800-38 yields good data for your question. For 112 bit security (which is about the minimum you should use for not extremely important things) you currently (2016) have to use RSA-2048 keys, ... 20 Currently (as of 2017-05-11) 2048-bit keys are most popular for use with RSA, and 2048 bit keys should also be used with classic Diffie-Hellman. These offer about the same security as a symmetric encryption algorithm with 112 bits of security. Also in common use as of this date are 256 bit Elliptic Curve keys (mostly NIST P-256 and Curve25519) for ECDH/... 19 The generic discrete logarithm problem is this: Given a group$(G, ·)$with generator$g$and$y \in G$, find$x \in \mathbb N$such that$y = g^x$. The "classic" discrete logarithm problem (the one used in "classic" DSA and ECDSA) is this with some subgroup of the (multiplicative) group of a prime field, i.e.$(\mathbb Z/p \mathbb Z)^*$: Given a ... 17 Short answer: Yes. The discrete logarithm can be attacked in a multitude of ways: Baby-step giant-step (BSGS), Pollard's Rho, Pohlig-Hellman, and the several variants of Index Calculus, the best of which currently is the Number Field Sieve. Let$n$be the order of the generator of our field$\mathbb{F}_p$; it is$n = p-1$. We are trying to find$x$given$...

17

I have asked a similar question to Arjen Lenstra a few years ago: I was investigating three 2048-bit primes of low Hamming weight: $p_1 = 2^{2048} - 2^{1056} + 2^{736} - 2^{320} + 2^{128} + 1$ $p_2 = 2^{2048} - 2^{1376} + 2^{992} + 2^{896} + 2^{640} - 1$ $p_3 = 2^{2048} - 2^{2016} + 2^{1984} - 2^{1856} - 2^{1824} + 2^{1792} - 2^{1760} + 2^{1696} + 2^{1664} +... 17 The quoted recommendations do little to prevent fields that are subject to the recent developments. Take the$\mathbb{F}_{2^{6120}}$example: it clearly passes the field size criterion, but also the subgroup rule, as the group order$2^{6120} - 1$has one$1536$-bit prime factor. Not all binary fields are affected equally, however. Both Göloğlu et al and ... 17 Discrete Logarithm on elliptic curves is hard in the following sense: on an$n$-bit curve, solving DL has cost$2^{n/2}$. Thus, this is infeasible only as long as$n$is large enough to make that cost prohibitive. A 256-bit curve is large enough; a 60-bit curve is not. Also, some curves have a special structure which can be leveraged to compute DL faster. ... 16 The misunderstanding you have is with the sentence "the sender is able to compute an$r'$..." Actually, that's not true, and the "information theoretically hiding" bullet point does not state that. What it does state is that, for every$m'$, there exists an$r'$that satisfies the relation; however it does not imply that a real sender can find such a value.... 15 Actually, the problem is that the above quote uses the term "discrete log" in a way that's different from what you're thinking of. When someone uses the term "discrete log", they can mean two things: A discrete log in the group$Z^*_p$; that is, given$p$,$g$and$g^x \bmod p$, recover$x$A discrete log in some other group; that is, given a group$G$, a ... 14 Your post was a bit confusing to me, I think you're thinking of this from the wrong perspective. Is there a scheme with security arguably equivalent to DSA (or better, the DLP or related), but with the compactness of the original Schnorr signature scheme? Yes, Schnorr signatures. They are really what you should be doing. It is theoretically and ... 13 There is a reduction from DL to RSA if the DL oracle accepts composite modulus. For prime modulus, a reduction is not known. I copied the following from this wikipedia page with minor edits. Let$n = p\,q$be an RSA modulus. Generate random integer$a$co-prime to$n$and a random integer$x$taken in an interval much larger than$n$, say$[1,1000n]$. ... 13 Schnorr can be proven zero knowledge when the challenge$e$is restricted to a small set (typically$0$and$1$). Recall that in the Schnorr protocol, the prover knows the logarithm$u$of$y$to base$g$. He chooses a random value$r$, computes$a = g^r$and sends$a$to the verifier. The verifier chooses a random challenge$e$from some set and sends it ... 13 The main point is that the entire apparatus of calculus applies to exponentiation over the real numbers. For instance, if$a$and$b$are close, then$g^a$and$g^b$are close as well. The exponential function and its inverse are nice, so you can use infinite series for your computation, and some partial sum will be close enough to the correct answer. Or ... 12 It depends. If the order$m$of$g$'s group is known and$a$has an inverse modulo$m$(which is the case if and only if$a$is coprime to$m$), then it is easy: Calculate the inverse$b:=a^{-1}\bmod m$(for instance, using the Euclidean algorithm), and compute the power$(g^a)^b$. By Lagrange's theorem, this equals$g$. However, there are cases for which ... 12 While I agree completely with poncho's answer, this other viewpoint might be useful. Specifically, I think a better comparison isn't between$\mathbb{Z}_p^*$and$\mathbb{R}^*$, but with$\mathbb{Z}_p^*$and$S^1$. We can view$S^1 \cong \{z\in\mathbb{C} \mid |z| = 1\}$. It's not hard to show that any$z\in S^1$is able to be written as$z = \exp(2\pi i t)$... 11 Well, yes, that is generally good advice about DH. Here is some background on this: support you were given a value$g^x \bmod p$, and you were also told that$1 \le x \le A$for some value$A$. If so, then there are several known attacks (such as Big Step/Little Step and Pollard's Rho) that can recover$x$in about$\sqrt A$steps. If we have as our ... 11 I'm not sure how to answer the question about "trust" in the assumption. I suppose that is a matter of personal belief more than science. We don't know the truthfulness about any cryptographic assumptions, although obviously some have received more scrutiny than others. I'd say that the KEA assumptions have received relatively little attention, and so should ... 11 The main difference is that Pedersen commitments are unconditionally hiding, as given$g^mh^r$represents an information theoretic hiding commitment, i.e., even an unbounded adversary will not be able to figure out$m$. In exponential ElGamal encryption, since you publish$(g^r,g^mh^r)$, this so obtained commitment is no longer unconditionally hiding, but ... 11 Let's recall how discrete logarithms are solved in strong elliptic curve groups. The basic idea is to iteratively walk through many combinations of the form$x_i = a_iP + b_iQ$until we find a distinguished one, i.e., one that shares some common property (like the lowest$k$bits of$x_i\$ set to 0). We accumulate enough distinguished points until we find a ...

11

I will call the field elements "points" (as an analogy with elliptic curves). We can thus add points together and multiply points together. We can also multiply a point with an integer with a double-and-add algorithm (which will be reasonably efficient), and, similarly, raise a point to some integer power with a square-and-multiply algorithm. Your additive ...

10

Oh, and while you did not specifically ask about this, there is another point I believe that is important to highlight; DH and SRP are different protocols, and have different requirements on the generator they use. In particular, taking a generator that is designed to be used securely within DH can void the security properties of SRP. Here's what's going ...

10

There is an asymptotic formula for the General Number Field Sieve for factoring big integers. This is the most efficient known algorithm for breaking RSA keys which are longer than 400 bits or so (since the current world record is 768 bits, a 400-bit RSA key is quite weak). For discrete logarithm (to break DH), the best known algorithm is also known as "...

10

According to this: To summarize: solving the discrete logarithm problem for a composite modulus is exactly as hard as factoring and solving it modulo primes. So, given your question "Would the ability to efficiently find Discrete Logs have any impact on the security of RSA?" the answer would be yes. Furthermore, if you can solve DLP for composite moduli, ...

10

You're essentially correct. Index calculus is impractical on elliptic curves because there is not a straightforward notion of smoothness in these groups. In prime fields, there is the easy mapping from the multiplicative group to the integers, where smoothness is well-defined. Similarly, in extension fields there is the mapping to polynomials over the ...

Only top voted, non community-wiki answers of a minimum length are eligible