How to perform traditional Diffie-Hellman key exchange in Swift without using OpenSSL?
I’m working on a Swift project and need to implement the traditional (non-elliptic) Diffie-Hellman key exchange. I’m aware that OpenSSL can be used for this, but I am looking for alternative methods in pure Swift.
Can Swift perform traditional non-elliptic Diffie-Hellman key exchange?
Besides using OpenSSL, are there any other effective ways to perform traditional Diffie–Hellman key exchange in Swift?
Are there any Swift frameworks or libraries for Diffie-Hellman key exchange?
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.?