3 ms·
Why would you use RSA, shouldn't everything that supports it use ed25519?
by arca_vorago 9y ago
Why would you use RSA, shouldn't everything that supports it use ed25519?
- beefhash 9y agoBecause the script in question uses openssl rsautl(1) and you can't really do encryption/decryption with Ed25519.
- cryptonector 9y agoBut you can encrypt with Curve25519: E(public, M) = let (ephemeral_private, ephemeral_public) = gen_random_25519(): let shared_key = Curve25519(public, ephemeral_private): return ephemeral_public || E_AES256GCM(shared_key, M).