Method: OpenSSL::PKey::EC::Point#invert!

Defined in:
ossl_pkey_ec.c

#invert!self

Returns:

  • (self)


1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
# File 'ossl_pkey_ec.c', line 1382

static VALUE ossl_ec_point_invert(VALUE self)
{
    EC_POINT *point;
    const EC_GROUP *group;

    GetECPoint(self, point);
    GetECPointGroup(self, group);

    if (EC_POINT_invert(group, point, ossl_bn_ctx) != 1)
        ossl_raise(eEC_POINT, "EC_POINT_invert");

    return self;
}