lib/nis/util/ed25519.rb
# Implements scalarmult(B, e) more efficiently.
Implements scalarmult(B, e) more efficiently.
Implements scalarmult ( B e ) more efficiently .
def scalarmult_B(e)
        e = e % @@l
        _P = @@ident
        253.times do |i|
          _P = edwards_add(_P, @@Bpow[i]) if e & 1 == 1
          e = e / 2
        end
        _P
      end
def scalarmult_B ( e ) e = e % @@l _P = @@ident 253 . times do | i | _P = edwards_add ( _P , @@Bpow [ i ] ) if e & 1 == 1 e = e / 2 end _P end
Implements scalarmult(B, e) more efficiently.
Implements scalarmult ( B e ) more efficiently .
# scalarmult(B, l) is the identity
e
<not_specific>