The DiffieHellmanGroup class takes a well-known modp group as its argument.
It works the same as DiffieHellman, except that it does not allow changing its keys after creation.
In other words, it does not implement setPublicKey() or setPrivateKey() methods.
The
DiffieHellmanGroup
class takes a well-known modp group as its argument. It works the same asDiffieHellman
, except that it does not allow changing its keys after creation. In other words, it does not implementsetPublicKey()
orsetPrivateKey()
methods.The name (e.g.
'modp1'
) is taken from RFC 2412 (modp1 and 2) and RFC 3526: