EC Points

Index

ec-point/add ec-point/from-bytes ec-point/from-xy ec-point/generator ec-point/get-x ec-point/get-xy ec-point/get-y ec-point/identity ec-point/is-identity ec-point/mul ec-point/negate ec-point/to-compressed ec-point/to-uncompressed

Reference

ec-point/addcfunction
(ec-point/add ec-point-obj1 ec-point-obj2)

Returns the point `P + Q`.

(ec-point/from-bytes ec-group-obj bytes)

Returns a point on `ec-group-obj` decoded from a SEC1 compressed or uncompressed encoding `bytes`.

(ec-point/from-xy ec-group-obj x y)

Returns a point on `ec-group-obj` from the affine integer coordinates `x` and `y` (MPI objects). Both must be within the field and satisfy the curve equation.

(ec-point/generator ec-group-obj)

Returns the standard generator point of `ec-group-obj`.

(ec-point/get-x ec-point-obj)

Returns the fixed-length encoding of the affine x coordinate of `ec-point-obj`.

(ec-point/get-xy ec-point-obj)

Returns the fixed-length concatenated encoding of the affine x and y coordinates of `ec-point-obj`.

(ec-point/get-y ec-point-obj)

Returns the fixed-length encoding of the affine y coordinate of `ec-point-obj`.

(ec-point/identity ec-group-obj)

Returns the identity element (point at infinity) of `ec-group-obj`.

(ec-point/is-identity ec-point-obj)

Returns true if `ec-point-obj` is the identity element, false otherwise.

ec-point/mulcfunction
(ec-point/mul ec-point-obj ec-scalar-obj rng-obj)

Returns the scalar multiplication `k*P`. `rng-obj` is used internally for side-channel blinding.

(ec-point/negate ec-point-obj)

Returns the negation `-P` of `ec-point-obj`.

(ec-point/to-compressed ec-point-obj)

Returns the SEC1 compressed encoding of `ec-point-obj`.

(ec-point/to-uncompressed ec-point-obj)

Returns the SEC1 uncompressed encoding of `ec-point-obj`.