The pattern I’m trying to follow is https://github.com/mitya57/secretstorage/blob/master/secretstorage/dhcrypto.py
As far as I can see, I can use the rust-crypto crate for encryption, but not DH. OpenSSL crate seems to have a DH module, but comes with the OpenSSL dependency.
If I just try to follow the python SecretStorage library, the roadblock I run into is generating the public key from the private key, which requires pow(), which only works on up to usize in the num crate.
Am I missing something really simple here? Advice and options greatly appreciated.