datasafe
datasafe copied to clipboard
Prepare a test to check that existing user with RSA public keys are given a new EC public key after upgrade of data safe installation
We want to:
- run an older version of datasafe that uses RSA to write to inbox inbox,
- run a new version that has ECDH as default, but can read data written to inbox using RSA.
Hello @max402, Please i wish to have more info and enlightenment on this ticket
In order to check if migrated data is available we have to first implement a data migration tool. The tool should be able to:
- genarate EC keypair and add it to keystore for each user;
- convert data (decrypt with RSA private key, encrypt with EC public key);
- delete old RSA encrypted data, delete RSA keypair from keystore.
I would write tests for following scenarios: 1.
- user1 sends to inbox of user2 a file.
- user 2 has EC public key in public profile.
- user2 can read their Inbox
- user1 sends to inbox of user2 a file. User2 public profile has RSA keypair
- user2 logins, EC keypair created, public profile key replaced to EC.
- user1 sends another file. The file encrypted using EC public key.
- user2 can read both files form inbox.