Coder Social home page Coder Social logo

New Group for MSE/PE about dhkx HOT 4 CLOSED

monnand avatar monnand commented on July 17, 2024
New Group for MSE/PE

from dhkx.

Comments (4)

monnand avatar monnand commented on July 17, 2024

The group Ids are assigned according to RFC 2409 and RFC 3526. Since there are too much copy&paste work, I only put group 14 in the code (which is usually a good choice for most applications), and randomly picked two other groups.

Can you find your group in those RFCs? I think group id 3 was assigned in RFC 2409, section 6.3.

If the group was not assigned an ID. I think we may have three options:

  • Let user directly new a DHGroup structure.
  • Create another function to create groups which was not assigned an ID.
  • Use negative values in GetGroup function to represent unassigned groups. (and make sure id 0 be the default group, which is group 14 now.)

All options above seems valid to me. So feel free to submit your pull request. I would be happy to accept it. The major (only?) user of this library is uniqush-conn. As long as you can make sure it is safe, then you are good.

from dhkx.

nhelke avatar nhelke commented on July 17, 2024

Thanks for you quick reply. The aforementioned prime does not appear to be in either RFC. If it is ok with you I'm going to write a patch to let users create their own groups. I think it is more flexible than using negative ids for non-standard groups.

from dhkx.

monnand avatar monnand commented on July 17, 2024

Sure. Feel free to make your change.

from dhkx.

nhelke avatar nhelke commented on July 17, 2024

Thank you.

from dhkx.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.