Module ec.point

EC_POINT module for Lua OpenSSL binding.

This module provides a complete wrapper for OpenSSL’s EC_POINT operations, enabling elliptic curve point mathematical operations.

Usage:

    point = require('openssl').ec.point
    

Functions

new (group) Create a new EC point on a given group.
copy (dest, src) Copy one EC point to another.
tostring () Convert EC point to string (internal, called by __tostring).


Functions

new (group)
Create a new EC point on a given group.

Parameters:

  • group ec_group the EC group

Returns:

    ec_point new elliptic curve point (at infinity)

Usage:

    group = require('openssl').group
    point = require('openssl').point
    g = group.new('prime256v1')
    p = point.new(g)
copy (dest, src)
Copy one EC point to another.

Parameters:

  • dest ec_point destination point
  • src ec_point source point

Returns:

    ec_point destination point (self)
tostring ()
Convert EC point to string (internal, called by __tostring).

Returns:

    string string representation
generated by LDoc 1.5.0 Last updated 2025-11-05 20:38:13