| 565 | |
| 566 | template <class EC> |
| 567 | Integer DL_GroupParameters_EC<EC>::GetCofactor() const |
| 568 | { |
| 569 | if (!m_k) |
| 570 | { |
| 571 | Integer q = GetCurve().FieldSize(); |
| 572 | Integer qSqrt = q.SquareRoot(); |
| 573 | m_k = (q+2*qSqrt+1)/m_n; |
| 574 | } |
| 575 | |
| 576 | return m_k; |
| 577 | } |
| 578 | |
| 579 | template <class EC> |
| 580 | Integer DL_GroupParameters_EC<EC>::ConvertElementToInteger(const Element &element) const |
no test coverage detected