veracruz-project / veracruz

Main repository for the Veracruz privacy-preserving compute project, an adopted project of the Confidential Compute Consortium (CCC).
https://veracruz-project.com
MIT License
190 stars 39 forks source link

Server's public and private keys are swapped #665

Open gbryant-arm opened 1 year ago

gbryant-arm commented 1 year ago

Describe the bug In https://github.com/veracruz-project/veracruz/blob/main/crates/session-manager/src/session_context.rs#L100C15-L100C16: The freshly generated public and private keys are swapped: the public key is written to the private key field and vice versa. Could this be/become a problem?

dreemkiller commented 1 year ago

I don't see how it's not already a problem.