Dual_EC_DRBG (Dual Elliptic Curve Deterministic Random Bit Generator) is an algorithm that was presented as a cryptographically secure pseudorandom number generator (CSPRNG) using methods in elliptic curve cryptography. Despite wide public criticism, including the public identification of the possibility that the National Security Agency put a backdoor into a recommended implementation, it was, for seven years, one of four CSPRNGs standardized in NIST SP 800-90A as originally published circa June 2006, until it was withdrawn in 2014.
Design weakness and potential backdoor Weaknesses in the cryptographic security of the algorithm were known and publicly criticised well before the algorithm became part of a formal standard endorsed by the ANSI, ISO, and formerly by the National Institute of Standards and Technology (NIST). One of the weaknesses publicly identified was the potential of the algorithm to harbour a cryptographic backdoor advantageous to those who know about it—the United States government's National Security Agency (NSA)—and no one else. In 2013, The New York Times reported that documents in their possession but never released to the public "appear to confirm" that the backdoor was real, and had been deliberately inserted by the NSA as part of its Bullrun decryption program. In December 2013, a Reuters news article alleged that in 2004, before NIST standardized Dual_EC_DRBG, the NSA paid RSA Security $10 million in a secret deal to use Dual_EC_DRBG as the default in the RSA BSAFE cryptography library, which resulted in RSA Security becoming the most important distributor of the insecure algorithm. RSA responded that they "categorically deny" that they had ever knowingly colluded with the NSA to adopt an algorithm that was known to be flawed, but also stated, "We have never kept this relationship [with the NSA] a secret and in fact have openly publicized it." Sometime before its first known publication in 2004, a possible kleptographic backdoor was discovered with the Dual_EC_DRBG's design, with the design of Dual_EC_DRBG having the unusual property that it was theoretically impossible for anyone but Dual_EC_DRBG's designers (NSA) to confirm the backdoor's existence. Bruce Schneier concluded shortly after standardization that the "rather obvious" backdoor (along with other deficiencies) would mean that nobody would use Dual_EC_DRBG. The backdoor would allow the NSA to decrypt for example SSL/TLS encryption which used Dual_EC_DRBG as a CSPRNG. Members of the ANSI standard group to which Dual_EC_DRBG was first submitted were aware of the exact mechanism of the potential backdoor and how to disable it, but did not elect to disable or publicize the backdoor. The general cryptographic community was initially not aware of the potential backdoor, until Dan Shumow and Niels Ferguson's publication, or of Certicom's Daniel R. L. Brown and Scott Vanstone's 2005 patent application describing the backdoor mechanism. In September 2013, The New York Times reported that internal NSA memos leaked by Edward Snowden indicated that the NSA had worked during the standardization process to eventually become the sole editor of the Dual_EC_DRBG standard, and concluded that the Dual_EC_DRBG standard did indeed contain a backdoor for the NSA. In response, NIST stated that "NIST would not deliberately weaken a cryptographic standard", but according to the New York Times story, the NSA had been spending $250 million per year to insert backdoors in software and hardware as part of the Bullrun program. A Presidential advisory committee subsequently set up to examine NSA's conduct recommended among other things that the US government "fully support and not undermine efforts to create encryption standards". On April 21, 2014, NIST withdrew Dual_EC_DRBG from its draft guidance on random number generators recommending that "current users of Dual_EC_DRBG transition to one of the three remaining approved algorithms as quickly as possible".
Timeline of Dual_EC_DRBG
Description
Overview The algorithm uses a single integer s as state. Whenever a new random number is requested, this integer is updated. The kth state is given by
sk=gP(sk−1) The returned random integer r is a function of the state. The kth random number is
rk=gQ(sk) The function gP(x) depends on the fixed elliptic curve point P. gQ(x) is similar except that it uses the point Q. The points P and Q stay constant for a particular implementation of the algorithm.
Details The algorithm allows for different constants, variable output length and other customization. For simplicity, the one described here will use the constants from curve P-256 (one of the 3 sets of constants available) and have fixed output length. The algorithm operates exclusively over a prime finite field Fp (ℤ/pℤ), where p is prime. The state, the seed and the random numbers are all elements of this field. Field size is
p=𝚏𝚏𝚏𝚏𝚏𝚏𝚏𝚏𝟶𝟶𝟶𝟶𝟶𝟶𝟶𝟶𝚏𝚏𝚏𝚏𝚏𝚏𝚏𝚏𝚏𝚏𝚏𝚏𝚏𝚏𝚏𝚏𝚋𝚌𝚎𝟼𝚏𝚊𝚊𝚍𝚊𝟽𝟷𝟽𝟿𝚎𝟾𝟺𝚏𝟹𝚋𝟿𝚌𝚊𝚌𝟸𝚏𝚌𝟼𝟹𝟸𝟻𝟻𝟷16 An elliptic curve over Fp is given
y2=x3−3x+b where the constant b is
b=𝟻𝚊𝚌𝟼𝟹𝟻𝚍𝟾𝚊𝚊𝟹𝚊𝟿𝟹𝚎𝟽𝚋𝟹𝚎𝚋𝚋𝚍𝟻𝟻𝟽𝟼𝟿𝟾𝟾𝟼𝚋𝚌𝟼𝟻𝟷𝚍𝟶𝟼𝚋𝟶𝚌𝚌𝟻𝟹𝚋𝟶𝚏𝟼𝟹𝚋𝚌𝚎𝟹𝚌𝟹𝚎𝟸𝟽𝚍𝟸𝟼𝟶𝟺𝚋16 The points on the curve are E(Fp). Two of these points are given as the fixed points P and Q
P,Q∈E(Fp) Their coordinates are
Px=𝟼𝚋𝟷𝟽𝚍𝟷𝚏𝟸 𝚎𝟷𝟸𝚌𝟺𝟸𝟺𝟽 𝚏𝟾𝚋𝚌𝚎𝟼𝚎𝟻 𝟼𝟹𝚊𝟺𝟺𝟶𝚏𝟸 𝟽𝟽𝟶𝟹𝟽𝚍𝟾𝟷 𝟸𝚍𝚎𝚋𝟹𝟹𝚊𝟶 𝚏𝟺𝚊𝟷𝟹𝟿𝟺𝟻 𝚍𝟾𝟿𝟾𝚌𝟸𝟿𝟼 16Py=𝟺𝚏𝚎𝟹𝟺𝟸𝚎𝟸 𝚏𝚎𝟷𝚊𝟽𝚏𝟿𝚋 𝟾𝚎𝚎𝟽𝚎𝚋𝟺𝚊 𝟽𝚌𝟶𝚏𝟿𝚎𝟷𝟼 𝟸𝚋𝚌𝚎𝟹𝟹𝟻𝟽 𝟼𝚋𝟹𝟷𝟻𝚎𝚌𝚎 𝚌𝚋𝚋𝟼𝟺𝟶𝟼𝟾 𝟹𝟽𝚋𝚏𝟻𝟷𝚏𝟻 16Qx=𝚌𝟿𝟽𝟺𝟺𝟻𝚏𝟺 𝟻𝚌𝚍𝚎𝚏𝟿𝚏𝟶 𝚍𝟹𝚎𝟶𝟻𝚎𝟷𝚎 𝟻𝟾𝟻𝚏𝚌𝟸𝟿𝟽 𝟸𝟹𝟻𝚋𝟾𝟸𝚋𝟻 𝚋𝚎𝟾𝚏𝚏𝟹𝚎𝚏 𝚌𝚊𝟼𝟽𝚌𝟻𝟿𝟾 𝟻𝟸𝟶𝟷𝟾𝟷𝟿𝟸 16Qy=𝚋𝟸𝟾𝚎𝚏𝟻𝟻𝟽 𝚋𝚊𝟹𝟷𝚍𝚏𝚌𝚋 𝚍𝚍𝟸𝟷𝚊𝚌𝟺𝟼 𝚎𝟸𝚊𝟿𝟷𝚎𝟹𝚌 𝟹𝟶𝟺𝚏𝟺𝟺𝚌𝚋 𝟾𝟽𝟶𝟻𝟾𝚊𝚍𝚊 𝟸𝚌𝚋𝟾𝟷𝟻𝟷𝟻 𝟷𝚎𝟼𝟷𝟶𝟶𝟺𝟼 16 A function to extract the x-coordinate is used. It "converts" from elliptic curve points to elements of the field.
X(x,y)=x Output integers are truncated before being output
t(x)=x mod p216 The functions gP and gQ. These functions raise the fixed points to a power. "Raising to a power" in this context, means using the special operation defined for points on elliptic curves.
gP(x)=X(Px) gQ(x)=t(X(Qx)) The generator is seeded with an element from Fp
s1=gP(seed) The kth state and random number
sk=gP(sk−1) rk=gQ(sk) The random numbers
r1,r2,…
… excerpt ends here. Continue reading the full article.