datasafe icon indicating copy to clipboard operation
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

Open francis-pouatcha opened this issue 2 years ago • 3 comments

We want to:

  1. run an older version of datasafe that uses RSA to write to inbox inbox,
  2. run a new version that has ECDH as default, but can read data written to inbox using RSA.

francis-pouatcha avatar Dec 12 '23 11:12 francis-pouatcha

Hello @max402, Please i wish to have more info and enlightenment on this ticket

Motouom avatar Oct 04 '24 12:10 Motouom

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.

max402 avatar Oct 08 '24 11:10 max402

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.

max402 avatar Oct 22 '24 09:10 max402