Skip to content
instance method

OpenSSL::PKey::EC::Point#mul

(::OpenSSL::bn bn1, ?::OpenSSL::bn bn2) -> self
(::Array[::OpenSSL::bn] bns, ::Array[self], ?::OpenSSL::bn bn2) -> self
point.mul(bn1 [, bn2]) => point

Performs elliptic curve point multiplication.

The first form calculates bn1 * point + bn2 * G, where G is the generator of the group of point. bn2 may be omitted, and in that case, the result is just bn1 * point.

Before version 4.0.0, and when compiled with OpenSSL 1.1.1 or older, this method allowed another form:

point.mul(bns, points [, bn2]) => point