Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6122153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:51:56+00:00 2026-05-23T15:51:56+00:00

Presently iam working on a project that uses elliptic curve. Please provide me a

  • 0

Presently iam working on a project that uses elliptic curve. Please provide me a solution that determines whether a point is on the elliptic curve or not? and also how to get a point on the elliptic curve

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:51:57+00:00Added an answer on May 23, 2026 at 3:51 pm

    Checking whether a point is on the elliptic curve is easy. Just check whether your point (x,y) fulfills the equation defining your elliptic curve : y^2 = x^3 + ax + b (remember to perform the calculation in the correct field).

    Using Bouncycastle you can do it like this:

    ECCurve curve = //...
    ECFieldElement x = //...
    ECFieldElement y = //...
    
    ECFieldElement a = curve.getA();
    ECFieldElement b = curve.getB();
    ECFieldElement lhs = y.multiply(y);
    ECFieldElement rhs = x.multiply(x).multiply(x).add(a.multiply(x)).add(b);
    
    boolean pointIsOnCurve = lhs.equals(rhs);
    

    You have tagged the question with cryptography, so I assume you are asking about elliptic curves over a finite field. The curve will have a generator, g and an order.
    To get a random point, just generate a random integer, x, between 0 and (order – 1), and choose x * g.

    You can do it using Bouncycastle like this:

    X9ECParameters x9 = NISTNamedCurves.getByName("P-224"); // or whatever curve you want to use
    ECPoint g = x9.getG();
    BigInteger n = x9.getN();
    int nBitLength = n.bitLength();
    BigInteger x;
    do
    {
        x = new BigInteger(nBitLength, random);
    }
    while (x.equals(ZERO)  || (x.compareTo(n) >= 0));
    ECPoint randomPoint = g.multiply(x); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on a project that uses the Silverlight 3 SDK and
Presently Iam working in finding disparity of stereo pair. I have got a situation
I am working in an application that uses EF,WCF and Asp.net. The application is
I am working on a project where I have a table view that is
My question is about a school project that I'm working on. It involves mapping
In a project I am working on, I have a ComboBox with dates that
I am in the midst of working on a project that is session-based. I
I am currently working on a project that requires a connection to a MsSQL
Presently I am working in a Firewall project. First I downloaded a Firewall project
Presently, I am working on a project using classic ASP. My development machine is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.