Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Exponentiation by squaring
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==2<sup>''k''</sup>-ary method== This algorithm calculates the value of ''x<sup>n</sup>'' after expanding the exponent in base 2<sup>''k''</sup>. It was first proposed by [[Brauer]] in 1939. In the algorithm below we make use of the following function ''f''(0) = (''k'',β―0) and ''f''(''m'') = (''s'',β―''u''), where ''m'' = ''u''Β·2<sup>''s''</sup> with ''u'' odd. Algorithm: ;Input: An element ''x'' of ''G'', a parameter ''k'' > 0, a non-negative integer {{math|1=''n'' = (''n''<sub>''l''β1</sub>, ''n''<sub>''l''β2</sub>, ..., ''n''<sub>0</sub>)<sub>2<sup>''k''</sup></sub>}} and the precomputed values <math>x^3, x^5, ... , x^{2^k-1}</math>. ;Output: The element ''x<sup>n</sup>'' in ''G'' y := 1; i := l - 1 '''while''' i β₯ 0 do (s, u) := f(n<sub>i</sub>) '''for''' j := 1 '''to''' k - s '''do''' y := y<sup>2</sup> y := y * x<sup>u</sup> '''for''' j := 1 '''to''' s '''do''' y := y<sup>2</sup> i := i - 1 '''return''' y For optimal efficiency, ''k'' should be the smallest integer satisfying<ref name="frey">{{cite book |editor1-last=Cohen |editor1-first=H. |editor2-last=Frey, G. |date=2006 |title=Handbook of Elliptic and Hyperelliptic Curve Cryptography |series=Discrete Mathematics and Its Applications |publisher=Chapman & Hall/CRC |isbn=9781584885184}}</ref> : <math>\lg n < \frac{k(k + 1) \cdot 2^{2k}}{2^{k+1} - k - 2} + 1.</math>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)