Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

OpenSSL::PKey::EC::Group#asn1_flag=

(::Integer) -> ::Integer
group.asn1_flag = flags

Sets flags on the group. The flag value is used to determine how to encode the group: encode explicit parameters or named curve using an OID.

The flag value can be either of:

See the OpenSSL documentation for EC_GROUP_set_asn1_flag().

See also #asn1_flag #cofactor #== #curve_name also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0