Supersingular isogeny Diffie–Hellman key exchange (SIDH or SIKE) is an insecure proposal for a post-quantum cryptographic algorithm to establish a secret key between two parties over an untrusted communications channel. It is analogous to the Diffie–Hellman key exchange, but is based on walks in a supersingular isogeny graph and was designed to resist cryptanalytic attack by an adversary in possession of a quantum computer. Before it was broken, SIDH boasted one of the smallest key sizes of all post-quantum key exchanges; with compression, SIDH used 2688-bit public keys at a 128-bit quantum security level. SIDH also distinguishes itself[disputed  – discuss] from similar systems such as NTRU and Ring-LWE[citation needed] by supporting perfect forward secrecy, a property that prevents compromised long-term keys from compromising the confidentiality of old communication sessions. These properties seemed to make SIDH a natural candidate to replace Diffie–Hellman (DHE) and elliptic curve Diffie–Hellman (ECDHE), which are widely used in Internet communication. However, SIDH is vulnerable to a devastating key-recovery attack published in July 2022 and is therefore insecure. The attack does not require a quantum computer.
 For certain classes of problems, algorithms running on quantum computers are naturally capable of achieving lower time complexity than on classical computers. That is, quantum algorithms can solve certain problems faster than the most efficient algorithm running on a traditional computer. For example, Shor's algorithm can factor an integer N in polynomial time, while the best-known factoring classic algorithm, the general number field sieve, operates in sub-exponential time. This is significant to public key cryptography because the security of RSA is dependent on the infeasibility of factoring integers, the integer factorization problem. Shor's algorithm can also efficiently solve the discrete logarithm problem, which is the basis for the security of Diffie–Hellman, elliptic curve Diffie–Hellman, elliptic curve DSA, Curve25519, ed25519, and ElGamal. Although quantum computers are currently in their infancy, the ongoing development of quantum computers and their theoretical ability to compromise modern cryptographic protocols (such as TLS/SSL) has prompted the development of post-quantum cryptography.
 SIDH was created in 2011 by De Feo, Jao, and Plut. It uses conventional elliptic curve operations and is not patented. SIDH provides perfect forward secrecy and thus does not rely on the security of long-term private keys. Forward secrecy improves the long-term security of encrypted communications, helps defend against mass surveillance, and reduces the impact of vulnerabilities like Heartbleed.
 The j-invariant of an elliptic curve given by the Weierstrass equation 
  
    
      
        
          y
          
            2
          
        
        =
        
          x
          
            3
          
        
        +
        a
        x
        +
        b
      
    
    {\displaystyle y^{2}=x^{3}+ax+b}
  
 is given by the formula:
 Isomorphic curves have the same j-invariant; over an algebraically closed field, two curves with the same j-invariant are isomorphic.
 The supersingular isogeny Diffie-Hellman protocol (SIDH) works with the graph whose vertices are (isomorphism classes of) supersingular elliptic curves and whose edges are isogenies between those curves. An isogeny 
  
    
      
        ϕ
        :
        E
        →
        
          E
          ′
        
      
    
    {\displaystyle \phi :E\to E'}
  
 between elliptic curves 
  
    
      
        E
      
    
    {\displaystyle E}
  
 and 
  
    
      
        
          E
          ′
        
      
    
    {\displaystyle E'}
  
 is a rational map which is also a group homomorphism. If separable, 
  
    
      
        ϕ
      
    
    {\displaystyle \phi }
  
 is determined by its kernel up to an isomorphism of target curve 
  
    
      
        
          E
          ′
        
      
    
    {\displaystyle E'}
  
.
 The setup for SIDH is a prime of the form 
  
    
      
        p
        =
        
          l
          
            A
          
          
            
              e
              
                A
              
            
          
        
        ⋅
        
          l
          
            B
          
          
            
              e
              
                B
              
            
          
        
        ⋅
        f
        ∓
        1
      
    
    {\displaystyle p=l_{A}^{e_{A}}\cdot l_{B}^{e_{B}}\cdot f\mp 1}
  
, for different (small) primes 
  
    
      
        
          l
          
            A
          
        
      
    
    {\displaystyle l_{A}}
  
 and 
  
    
      
        
          l
          
            B
          
        
      
    
    {\displaystyle l_{B}}
  
, (large) exponents 
  
    
      
        
          e
          
            A
          
        
      
    
    {\displaystyle e_{A}}
  
 and 
  
    
      
        
          e
          
            B
          
        
      
    
    {\displaystyle e_{B}}
  
, and small cofactor 
  
    
      
        f
      
    
    {\displaystyle f}
  
, together with a supersingular elliptic curve 
  
    
      
        E
      
    
    {\displaystyle E}
  
 defined over 
  
    
      
        
          
            F
          
          
            
              p
              
                2
              
            
          
        
      
    
    {\displaystyle \mathbb {F} _{p^{2}}}
  
. Such a curve has two large torsion subgroups, 
  
    
      
        E
        [
        
          l
          
            A
          
          
            
              e
              
                A
              
            
          
        
        ]
      
    
    {\displaystyle E[l_{A}^{e_{A}}]}
  
 and 
  
    
      
        E
        [
        
          l
          
            B
          
          
            
              e
              
                B
              
            
          
        
        ]
      
    
    {\displaystyle E[l_{B}^{e_{B}}]}
  
, which are assigned to Alice and Bob, respectively, as indicated by the subscripts. Each party starts the protocol by selecting a (secret) random cyclic subgroup of their respective torsion subgroup and computing the corresponding (secret) isogeny. They then publish, or otherwise provide the other party with, the equation for the target curve of their isogeny along with information about the image of the other party's torsion subgroup under that isogeny. This allows them both to privately compute new isogenies from 
  
    
      
        E
      
    
    {\displaystyle E}
  
 whose kernels are jointly generated by the two secret cyclic subgroups. Since the kernels of these two new isogenies agree, their target curves are isomorphic. The common j-invariant of these target curves may then be taken as the required shared secret.
 Since the security of the scheme depends on the smaller torsion subgroup, it is recommended to choose 
  
    
      
        
          l
          
            A
          
          
            
              e
              
                A
              
            
          
        
        ≈
        
          l
          
            B
          
          
            
              e
              
                B
              
            
          
        
      
    
    {\displaystyle l_{A}^{e_{A}}\approx l_{B}^{e_{B}}}
  
.
 An excellent reference for this subject is De Feo's article "Mathematics of Isogeny Based Cryptography."
 The most straightforward way to attack SIDH is to solve the problem of finding an isogeny between two supersingular elliptic curves with the same number of points. At the time of the original publication due to De Feo, Jao and Plût, the best attack known against SIDH was based on solving the related claw finding problem, which led to a complexity of O(p1/4) for classical computers and O(p1/6) for quantum computers. This suggested that SIDH with a 768-bit prime (p) would have a 128-bit security level. A 2014 study of the isogeny problem by Delfs and Galbraith confirmed the O(p1/4) security analysis for classical computers. The classical security O(p1/4) remained unaffected by related cryptanalytic work of Biasse, Jao and Sankar as well as Galbraith, Petit, Shani and Yan.
 A more intricate attack strategy is based on exploiting the auxiliary elliptic-curve points present in SIDH public keys, which in principle reveal a lot of additional information about the secret isogenies, but this information did not seem computationally useful for attackers at first. Petit in 2017 first demonstrated a technique making use of these points to attack some rather peculiar SIDH variants. Despite follow-up work extending the attack to much more realistic SIDH instantiations, the attack strategy still failed to break "standard" SIDH as employed by the NIST PQC submission SIKE.
 In July 2022, Castryck and Decru published an efficient key-recovery attack on SIKE that exploits the auxiliary points. Using a single-core computer, SIKEp434 was broken within approximately an hour, SIKEp503 within approximately 2 hours, SIKEp610 within approximately 8 hours and SIKEp751 within approximately 21 hours. The attack relies on gluing together multiple of the elliptic curves appearing in the SIDH construction, giving an abelian surface (more generally, an abelian variety), and computing a specially crafted isogeny defined by the given auxiliary points on that higher-dimensional object.
 It should be stressed that the attack crucially relies on the auxiliary points given in SIDH, and there is no known way to apply similar techniques to the general isogeny problem.
 During a key exchange, entities A and B will each transmit information of 2 coefficients modulo p2) defining an elliptic curve and 2 elliptic curve points.  Each elliptic curve coefficient requires 
  
    
      
        
          log
          
            2
          
        
        ⁡
        
          p
          
            2
          
        
      
    
    {\displaystyle \log _{2}p^{2}}
  
 bits.  Each elliptic curve point can be transmitted in 
  
    
      
        1
        +
        
          log
          
            2
          
        
        ⁡
        
          p
          
            2
          
        
      
    
    {\displaystyle 1+\log _{2}p^{2}}
  
 bits; hence, the transmission is 
  
    
      
        4
        +
        4
        
          log
          
            2
          
        
        ⁡
        
          p
          
            2
          
        
      
    
    {\displaystyle 4+4\log _{2}p^{2}}
  
 bits. This is 6144 bits for a 768-bit modulus p (128-bit security). However, this can be reduced by over half to 2640 bits (330 bytes) using key-compression techniques, the latest of which appears in recent work by authors Costello, Jao, Longa, Naehrig, Renes and Urbanik. With these compression techniques, SIDH has a similar bandwidth requirement to traditional 3072-bit RSA signatures or Diffie-Hellman key exchanges. This small space requirement makes SIDH applicable to context that have a strict space requirement, such as Bitcoin or Tor. Tor's data cells must be less than 517 bytes in length, so they can hold 330-byte SIDH keys. By contrast, NTRUEncrypt must exchange approximately 600 bytes to achieve a 128-bit security and cannot be used within Tor without increasing the cell size.
 In 2014, researchers at the University of Waterloo developed a software implementation of SIDH.  They ran their partially optimized code on an x86-64 processor running at 2.4 GHz. For a 768-bit modulus they were able to complete the key exchange computations in 200 milliseconds thus demonstrating that the SIDH is computationally practical.
 In 2016, researchers from Microsoft posted software for the SIDH which runs in constant time (thus protecting against timing attacks) and is the most efficient implementation to date.  They write: "The size of public keys is only 564 bytes, which is significantly smaller than most of the popular post-quantum key exchange alternatives. Ultimately, the size and speed of our software illustrates the strong potential of SIDH as a post-quantum key exchange candidate and we hope that these results encourage a wider cryptanalytic effort."   The code is open source (MIT) and is available on GitHub: https://github.com/microsoft/PQCrypto-SIDH.
 In 2016, researchers from Florida Atlantic University developed efficient ARM implementations of SIDH and provided a comparison of affine and projective coordinates. In 2017, researchers from Florida Atlantic University developed the first FPGA implementations of SIDH.
 While several steps of SIDH involve complex isogeny calculations, the overall flow of SIDH for parties A and B is straightforward for those familiar with a Diffie-Hellman key exchange or its elliptic curve variant.
 These are public parameters that can be shared by everyone in the network, or they can be negotiated by parties A and B at the beginning of a session.
 In the key exchange, parties A and B will each create an isogeny from a common elliptic curve E.  They each will do this by creating a random point in what will be the kernel of their isogeny.  The kernel of their isogeny will be spanned by 
  
    
      
        
          R
          
            A
          
        
      
    
    {\displaystyle R_{A}}
  
 and 
  
    
      
        
          R
          
            B
          
        
      
    
    {\displaystyle R_{B}}
  
  respectively. The different pairs of points used ensure that parties A and B create different, non-commuting, isogenies.  A random point (
  
    
      
        
          R
          
            A
          
        
      
    
    {\displaystyle R_{A}}
  
, or 
  
    
      
        
          R
          
            B
          
        
      
    
    {\displaystyle R_{B}}
  
) in the kernel of the isogenies is created as a random linear combination of the points 
  
    
      
        
          P
          
            A
          
        
      
    
    {\displaystyle P_{A}}
  
, 
  
    
      
        
          Q
          
            A
          
        
      
    
    {\displaystyle Q_{A}}
  
 and 
  
    
      
        
          P
          
            B
          
        
      
    
    {\displaystyle P_{B}}
  
, 
  
    
      
        
          Q
          
            B
          
        
      
    
    {\displaystyle Q_{B}}
  
.
 Using 
  
    
      
        
          R
          
            A
          
        
      
    
    {\displaystyle R_{A}}
  
, or 
  
    
      
        
          R
          
            B
          
        
      
    
    {\displaystyle R_{B}}
  
, parties A and B then use Velu's formulas for creating isogenies 
  
    
      
        
          ϕ
          
            A
          
        
      
    
    {\displaystyle \phi _{A}}
  
 and 
  
    
      
        
          ϕ
          
            B
          
        
      
    
    {\displaystyle \phi _{B}}
  
 respectively. From this they compute the image of the pairs of points 
  
    
      
        
          P
          
            A
          
        
      
    
    {\displaystyle P_{A}}
  
, 
  
    
      
        
          Q
          
            A
          
        
      
    
    {\displaystyle Q_{A}}
  
 or 
  
    
      
        
          P
          
            B
          
        
      
    
    {\displaystyle P_{B}}
  
,  
  
    
      
        
          Q
          
            B
          
        
      
    
    {\displaystyle Q_{B}}
  
 under the 
  
    
      
        
          ϕ
          
            B
          
        
      
    
    {\displaystyle \phi _{B}}
  
 and 
  
    
      
        
          ϕ
          
            A
          
        
      
    
    {\displaystyle \phi _{A}}
  
 isogenies respectively.
 As a result, A and B will now have two pairs of points 
  
    
      
        
          ϕ
          
            B
          
        
        (
        
          P
          
            A
          
        
        )
      
    
    {\displaystyle \phi _{B}(P_{A})}
  
, 
  
    
      
        
          ϕ
          
            B
          
        
        (
        
          Q
          
            A
          
        
        )
      
    
    {\displaystyle \phi _{B}(Q_{A})}
  
 and 
  
    
      
        
          ϕ
          
            A
          
        
        (
        
          P
          
            B
          
        
        )
      
    
    {\displaystyle \phi _{A}(P_{B})}
  
,  
  
    
      
        
          ϕ
          
            A
          
        
        (
        
          Q
          
            B
          
        
        )
      
    
    {\displaystyle \phi _{A}(Q_{B})}
  
 respectively.  A and B now exchange these pairs of points over a communications channel.
 A and B now use the pair of points they receive as the basis for the kernel of a new isogeny.  They use the same linear coefficients they used above with the points they received to form a point in the kernel of an isogeny that they will create.  They each compute points 
  
    
      
        
          S
          
            B
            A
          
        
      
    
    {\displaystyle S_{BA}}
  
 and 
  
    
      
        
          S
          
            A
            B
          
        
      
    
    {\displaystyle S_{AB}}
  
 and use Velu's formulas to construct new isogenies.
 To complete the key exchange, A and B compute the coefficients of two new elliptic curves under these two new isogenies.  They then compute the j-invariant of these curves.  Unless there were errors in transmission, the j-invariant of the curve created by A will equal to the j-invariant of the curve created by B.
 Notationally, the SIDH key exchange between parties A and B works as follows:
 1A. A generates two random integers 
  
    
      
        
          m
          
            A
          
        
        ,
        
          n
          
            A
          
        
        <
        (
        
          w
          
            A
          
        
        
          )
          
            
              e
              
                A
              
            
          
        
        .
      
    
    {\displaystyle m_{A},n_{A}<(w_{A})^{e_{A}}.}
  

 2A. A generates 
  
    
      
        
          R
          
            A
          
        
        :=
        
          m
          
            A
          
        
        ⋅
        (
        
          P
          
            A
          
        
        )
        +
        
          n
          
            A
          
        
        ⋅
        (
        
          Q
          
            A
          
        
        )
        .
      
    
    {\displaystyle R_{A}:=m_{A}\cdot (P_{A})+n_{A}\cdot (Q_{A}).}
  

 3A. A uses the point 
  
    
      
        
          R
          
            A
          
        
      
    
    {\displaystyle R_{A}}
  
 to create an isogeny mapping 
  
    
      
        
          ϕ
          
            A
          
        
        :
        E
        →
        
          E
          
            A
          
        
      
    
    {\displaystyle \phi _{A}:E\rightarrow E_{A}}
  
 and curve 
  
    
      
        
          E
          
            A
          
        
      
    
    {\displaystyle E_{A}}
  
 isogenous to 
  
    
      
        E
        .
      
    
    {\displaystyle E.}
  

 4A. A applies 
  
    
      
        
          ϕ
          
            A
          
        
      
    
    {\displaystyle \phi _{A}}
  
 to 
  
    
      
        
          P
          
            B
          
        
      
    
    {\displaystyle P_{B}}
  
 and 
  
    
      
        
          Q
          
            B
          
        
      
    
    {\displaystyle Q_{B}}
  
 to form two points on 
  
    
      
        
          E
          
            A
          
        
        :
        
          ϕ
          
            A
          
        
        (
        
          P
          
            B
          
        
        )
      
    
    {\displaystyle E_{A}:\phi _{A}(P_{B})}
  
 and 
  
    
      
        
          ϕ
          
            A
          
        
        (
        
          Q
          
            B
          
        
        )
        .
      
    
    {\displaystyle \phi _{A}(Q_{B}).}
  

 5A. A sends to B 
  
    
      
        
          E
          
            A
          
        
        ,
        
          ϕ
          
            A
          
        
        (
        
          P
          
            B
          
        
        )
      
    
    {\displaystyle E_{A},\phi _{A}(P_{B})}
  
, and 
  
    
      
        
          ϕ
          
            A
          
        
        (
        
          Q
          
            B
          
        
        )
        .
      
    
    {\displaystyle \phi _{A}(Q_{B}).}
  

 1B - 4B: Same as A1 through A4, but with A and B subscripts swapped.
 5B. B sends to A 
  
    
      
        
          E
          
            B
          
        
        ,
        
          ϕ
          
            B
          
        
        (
        
          P
          
            A
          
        
        )
      
    
    {\displaystyle E_{B},\phi _{B}(P_{A})}
  
, and 
  
    
      
        
          ϕ
          
            B
          
        
        (
        
          Q
          
            A
          
        
        )
        .
      
    
    {\displaystyle \phi _{B}(Q_{A}).}
  

 6A. A has 
  
    
      
        
          m
          
            A
          
        
        ,
        
          n
          
            A
          
        
        ,
        
          ϕ
          
            B
          
        
        (
        
          P
          
            A
          
        
        )
      
    
    {\displaystyle m_{A},n_{A},\phi _{B}(P_{A})}
  
, and 
  
    
      
        
          ϕ
          
            B
          
        
        (
        
          Q
          
            A
          
        
        )
      
    
    {\displaystyle \phi _{B}(Q_{A})}
  
 and forms 
  
    
      
        
          S
          
            B
            A
          
        
        :=
        
          m
          
            A
          
        
        (
        
          ϕ
          
            B
          
        
        (
        
          P
          
            A
          
        
        )
        )
        +
        
          n
          
            A
          
        
        (
        
          ϕ
          
            B
          
        
        (
        
          Q
          
            A
          
        
        )
        )
        .
      
    
    {\displaystyle S_{BA}:=m_{A}(\phi _{B}(P_{A}))+n_{A}(\phi _{B}(Q_{A})).}
  

 7A. A uses 
  
    
      
        
          S
          
            B
            A
          
        
      
    
    {\displaystyle S_{BA}}
  
 to create an isogeny mapping 
  
    
      
        
          ψ
          
            B
            A
          
        
      
    
    {\displaystyle \psi _{BA}}
  
.
 8A. A uses 
  
    
      
        
          ψ
          
            B
            A
          
        
      
    
    {\displaystyle \psi _{BA}}
  
 to create an elliptic curve 
  
    
      
        
          E
          
            B
            A
          
        
      
    
    {\displaystyle E_{BA}}
  
 which is isogenous to 
  
    
      
        E
      
    
    {\displaystyle E}
  
.
 9A. A computes 
  
    
      
        K
        :=
        
           j-invariant 
        
        (
        
          j
          
            B
            A
          
        
        )
      
    
    {\displaystyle K:={\text{ j-invariant }}(j_{BA})}
  
 of the curve 
  
    
      
        
          E
          
            B
            A
          
        
      
    
    {\displaystyle E_{BA}}
  
.
 6B. Similarly, B has 
  
    
      
        
          m
          
            B
          
        
        ,
        
          n
          
            B
          
        
        ,
        
          ϕ
          
            A
          
        
        (
        
          P
          
            B
          
        
        )
      
    
    {\displaystyle m_{B},n_{B},\phi _{A}(P_{B})}
  
, and 
  
    
      
        
          ϕ
          
            A
          
        
        (
        
          Q
          
            B
          
        
        )
      
    
    {\displaystyle \phi _{A}(Q_{B})}
  
 and forms 
  
    
      
        
          S
          
            A
            B
          
        
        =
        
          m
          
            B
          
        
        (
        
          ϕ
          
            A
          
        
        (
        
          P
          
            B
          
        
        )
        )
        +
        
          n
          
            B
          
        
        (
        
          ϕ
          
            A
          
        
        (
        
          Q
          
            B
          
        
        )
        )
      
    
    {\displaystyle S_{AB}=m_{B}(\phi _{A}(P_{B}))+n_{B}(\phi _{A}(Q_{B}))}
  
.
 7B. B uses 
  
    
      
        
          S
          
            A
            B
          
        
      
    
    {\displaystyle S_{AB}}
  
 to create an isogeny mapping 
  
    
      
        
          ψ
          
            A
            B
          
        
      
    
    {\displaystyle \psi _{AB}}
  
.
 8B. B uses 
  
    
      
        
          ψ
          
            A
            B
          
        
      
    
    {\displaystyle \psi _{AB}}
  
 to create an elliptic curve 
  
    
      
        
          E
          
            A
            B
          
        
      
    
    {\displaystyle E_{AB}}
  
 which is isogenous to 
  
    
      
        E
      
    
    {\displaystyle E}
  
.
 9B. B computes 
  
    
      
        K
        :=
        
           j-invariant 
        
        (
        
          j
          
            A
            B
          
        
        )
      
    
    {\displaystyle K:={\text{ j-invariant }}(j_{AB})}
  
 of the curve 
  
    
      
        
          E
          
            A
            B
          
        
      
    
    {\displaystyle E_{AB}}
  
.
 The curves 
  
    
      
        
          E
          
            A
            B
          
        
      
    
    {\displaystyle E_{AB}}
  
 and 
  
    
      
        
          E
          
            B
            A
          
        
      
    
    {\displaystyle E_{BA}}
  
 are guaranteed to have the same j-invariant. A function of 
  
    
      
        K
      
    
    {\displaystyle K}
  
 is used as the shared key.
 The following parameters were taken as an example by De Feo et al.:
 p = prime for the key exchange with wA = 2, wB = 3, eA = 63, eB = 41, and f = 11. Thus p = (263·341·11) - 1.
 E0 = the base (starting) curve for the key exchange = y2 = x3 + x
 Luca De Feo, one of the authors of the paper defining the key exchange has posted software that implements the key exchange for these and other parameters.
 A predecessor to the SIDH was published in 2006 by Rostovtsev and Stolbunov.  They created the first Diffie-Hellman replacement based on elliptic curve isogenies.  Unlike the method of De Feo, Jao, and Plut, the method of Rostovtsev and Stolbunov used ordinary elliptic curves and was found to have a subexponential quantum attack.
 In March 2014, researchers at the Chinese State Key Lab for Integrated Service Networks and Xidian University extended the security of the SIDH to a form of digital signature with strong designated verifier.  In October 2014, Jao and Soukharev from the University of Waterloo presented an alternative method of creating undeniable signatures with designated verifier using elliptic curve isogenies.[importance?]