Research Article
A Compact FPGA-Based Accelerator for Curve-Based Cryptography in Wireless Sensor Networks
Algorithm 1
Montgomery scalar multiplication [
21].
| Require: | Require: | 1: function MONTGOMERY | 2: if or then | 3: return. | 4: end if | 5: ; | 6: for i from downto do | 7: ifthen | 8: Madd; Mdouble | 9: else | 10: Madd; Mdouble | 11: end if | 12: end for | 13: return Mxy() | 14: end function | 1: procedure MADD | 2: ; | 3: return | 4: end procedure | 1: procedure MDOUBLE | 2: , | 3: return | 4: end procedure | 1: procedure GXY | 2: | 3: | 4: | 5: return | 6: end procedure |
|