Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

OpenSSL::PKey::EC::Group#cofactor

group.get_cofactor => cofactor_bn

Returns the cofactor of the group.

See the OpenSSL documentation for EC_GROUP_get_cofactor()

See also #asn1_flag= #curve_name #asn1_flag #degree also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0