lib/rbnacl/group_elements/curve25519.rb in rbnacl-2.0.0 vs lib/rbnacl/group_elements/curve25519.rb in rbnacl-3.0.0
- old
+ new
@@ -52,10 +52,10 @@
# would be the right-hand operand.
#
# @param [String] integer value to multiply with this Point (32-bytes)
#
# @return [RbNaCl::Point] result as a Point object
- def mult(integer, encoding = :raw)
+ def mult(integer)
integer = integer.to_str
Util.check_length(integer, SCALARBYTES, "integer")
result = Util.zeros(SCALARBYTES)
self.class.scalarmult_curve25519(result, integer, @point)