Skip to content
instance method

OpenSSL::PKey::EC::Group#point_conversion_form=

(::OpenSSL::PKey::EC::point_conversion_format format) -> ::OpenSSL::PKey::EC::point_conversion_format
group.point_conversion_form = form

Sets the form how EC::Point data is encoded as ASN.1 as defined in X9.62.

format can be one of these:

:compressed

Encoded as z||x, where z is an octet indicating which solution of the equation y is. z will be 0x02 or 0x03.

:uncompressed

Encoded as z||x||y, where z is an octet 0x04.

:hybrid

Encodes as z||x||y, where z is an octet indicating which solution of the equation y is. z will be 0x06 or 0x07.

See the OpenSSL documentation for EC_GROUP_set_point_conversion_form()

See also #point_conversion_form #seed #order #seed= also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0