Algorithm 5.2 The NAF method for computing the scalar multiplication

Input: A positive integer v in [1, n-1] and P ∈E(Fp). Output: A scalar multiplication vP.

	- 3.1 Q 2Q.
	- 3.2 If ei = 1 then Q Q þ P.
	- 3.3 ElseIf ei = �1 then Q Q � P.
