Skip to content
class method

OpenSSL::PKey::EC::Group.new

(::OpenSSL::PKey::EC::Group group) -> ::OpenSSL::PKey::EC::Group
(::String pem_or_der_encoded) -> ::OpenSSL::PKey::EC::Group
(::OpenSSL::PKey::EC::ec_method ec_method) -> ::OpenSSL::PKey::EC::Group
(:GFp | :GF2m ec_method, ::Integer bignum_p, ::Integer bignum_a, ::Integer bignum_b) -> ::OpenSSL::PKey::EC::Group
OpenSSL::PKey::EC::Group.new(ec_group)
OpenSSL::PKey::EC::Group.new(pem_or_der_encoded)
OpenSSL::PKey::EC::Group.new(:GFp, bignum_p, bignum_a, bignum_b)
OpenSSL::PKey::EC::Group.new(:GF2m, bignum_p, bignum_a, bignum_b)

Creates a new EC::Group object.

If the first argument is :GFp or :GF2m, creates a new curve with given parameters.

See also #== #asn1_flag also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0