Besides using OpenSSL, are there any other effective ways to perform traditional Diffie–Hellman key exchange in Swift?
May I ask how to use Diffie-Hellman in Swift? Besides obtaining the public key and private key, is it possible to input the parameters p (Prime number) and g (Generator) manually, and can the size of p be adjusted to 128, 256, 512 bits, etc.?