Hyperelliptic curve cryptography is similar to elliptic curve cryptography (ECC) insofar as the Jacobian of a hyperelliptic curve is an abelian group in which to do arithmetic, just as we use the group of points on an elliptic curve in ECC. Definition. An (imaginary) hyperelliptic curve of genus formula_1 over a field formula_2 is given by the equation formula_3 where formula_4 is a polynomial of degree not larger than formula_1 and formula_6 is a monic polynomial of degree formula_7. From this definition it follows that elliptic curves are hyperelliptic curves of genus 1. In hyperelliptic curve cryptography formula_2 is often a finite field. The Jacobian of formula_9, denoted formula_10, is a quotient group, thus the elements of the Jacobian are not points, they are equivalence classes of divisors of degree 0 under the relation of linear equivalence. This agrees with the elliptic curve case, because it can be shown that the Jacobian of an elliptic curve is isomorphic with the group of points on the elliptic curve. The use of hyperelliptic curves in cryptography came about in 1989 from Neal Koblitz. Although introduced only 3 years after ECC, not many cryptosystems implement hyperelliptic curves because the implementation of the arithmetic isn't as efficient as with cryptosystems based on elliptic curves or factoring (RSA). The efficiency of implementing the arithmetic depends on the underlying finite field formula_2, in practice it turns out that finite fields of characteristic 2 are a good choice for hardware implementations while software is usually faster in odd characteristic. The Jacobian on a hyperelliptic curve is an Abelian group and as such it can serve as group for the discrete logarithm problem (DLP). In short, suppose we have an Abelian group formula_12 and formula_1 an element of formula_12, the DLP on formula_12 entails finding the integer formula_16 given two elements of formula_12, namely formula_1 and formula_19. The first type of group used was the multiplicative group of a finite field, later also Jacobians of (hyper)elliptic curves were used. If the hyperelliptic curve is chosen with care, then Pollard's rho method is the most efficient way to solve DLP. This means that, if the Jacobian has formula_20 elements, that the running time is exponential in formula_21. This makes it possible to use Jacobians of a fairly small order, thus making the system more efficient. But if the hyperelliptic curve is chosen poorly, the DLP will become quite easy to solve. In this case there are known attacks which are more efficient than generic discrete logarithm solvers or even subexponential. Hence these hyperelliptic curves must be avoided. Considering various attacks on DLP, it is possible to list the features of hyperelliptic curves that should be avoided. Attacks against the DLP. All generic attacks on the discrete logarithm problem in finite abelian groups such as the Pohlig–Hellman algorithm and Pollard's rho method can be used to attack the DLP in the Jacobian of hyperelliptic curves. The Pohlig-Hellman attack reduces the difficulty of the DLP by looking at the order of the group we are working with. Suppose the group formula_12 that is used has formula_23 elements, where formula_24 is the prime factorization of formula_20. Pohlig-Hellman reduces the DLP in formula_12 to DLPs in subgroups of order formula_27 for formula_28. So for formula_29 the largest prime divisor of formula_20, the DLP in formula_12 is just as hard to solve as the DLP in the subgroup of order formula_29. Therefore, we would like to choose formula_12 such that the largest prime divisor formula_29 of formula_35 is almost equal to formula_20 itself. Requiring formula_37 usually suffices. The index calculus algorithm is another algorithm that can be used to solve DLP under some circumstances. For Jacobians of (hyper)elliptic curves there exists an index calculus attack on DLP. If the genus of the curve becomes too high, the attack will be more efficient than Pollard's rho. Today it is known that even a genus of formula_38 cannot assure security. Hence we are left with elliptic curves and hyperelliptic curves of genus 2. Another restriction on the hyperelliptic curves we can use comes from the Menezes-Okamoto-Vanstone-attack / Frey-Rück-attack. The first, often called MOV for short, was developed in 1993, the second came about in 1994. Consider a (hyper)elliptic curve formula_9 over a finite field formula_40 where formula_41 is the power of a prime number. Suppose the Jacobian of the curve has formula_20 elements and formula_29 is the largest prime divisor of formula_20. For formula_45 the smallest positive integer such that formula_46 there exists a computable injective group homomorphism from the subgroup of formula_10 of order formula_29 to formula_49. If formula_45 is small, we can solve DLP in formula_10 by using the index calculus attack in formula_52. For arbitrary curves formula_45 is very large (around the size of formula_54); so even though the index calculus attack is quite fast for multiplicative groups of finite fields this attack is not a threat for most curves. The injective function used in this attack is a pairing and there are some applications in cryptography that make use of them. In such applications it is important to balance the hardness of the DLP in formula_10 and formula_52; depending on the security level values of formula_45 between 6 and 12 are useful. The subgroup of formula_52 is a torus. There exists some independent usage in torus based cryptography. We also have a problem, if formula_29, the largest prime divisor of the order of the Jacobian, is equal to the characteristic of formula_60 By a different injective map we could then consider the DLP in the additive group formula_61 instead of DLP on the Jacobian. However, DLP in this additive group is trivial to solve, as can easily be seen. So also these curves, called anomalous curves, are not to be used in DLP. Order of the Jacobian. Hence, in order to choose a good curve and a good underlying finite field, it is important to know the order of the Jacobian. Consider a hyperelliptic curve formula_62 of genus formula_63 over the field formula_64 where formula_65 is the power of a prime number and define formula_66 as formula_62 but now over the field formula_68. It can be shown that the order of the Jacobian of formula_66 lies in the interval formula_70, called the Hasse-Weil interval. But there is more, we can compute the order using the zeta-function on hyperelliptic curves. Let formula_71 be the number of points on formula_66. Then we define the zeta-function of formula_73 as formula_74. For this zeta-function it can be shown that formula_75 where formula_76 is a polynomial of degree formula_77 with coefficients in formula_78. Furthermore formula_76 factors as formula_80 where formula_81 for all formula_82. Here formula_83 denotes the complex conjugate of formula_16. Finally we have that the order of formula_85 equals formula_86. Hence orders of Jacobians can be found by computing the roots of formula_76.