Score:0

How to use ffdhe2048 in node js?

ng flag

I am reading about Diffie Hellman key exchange from Real World Cryptography book and came across this

For this reason, best practice nowadays is to use RFC 7919, which defines several groups of different sizes and security. For example, ffdhe2048 is the group defined by the 2,048-bit prime modulus.

I want to use the recommended group in nodejs and i am not sure what the modp number should be.

Looking at the relevant section of the documentation for node crypto module, I see the function createDiffieHellmanGroup can be called passing in the modp number, with reference being made to rfc2412 and rfc3526 where some modp numbers are defined for some groups.

Thing is i cant find any modp number defined in rfc7919. How then can I use the group specified in the rfc?

kelalaka avatar
in flag
This is a library issue of NodeJS, however, the modp is on the [appendix A-1](https://datatracker.ietf.org/doc/html/rfc7919#appendix-A.1)
Finlay Weber avatar
ng flag
"has registry value 256"? so 256?
kelalaka avatar
in flag
What do you understand from [registry value](https://datatracker.ietf.org/doc/html/rfc7919#section-1)?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.