Bit-identical doesn't work as expected with RSA encryption

Please describe what you are doing to trigger the bug:

  • Initialize a storage with RSA
  • add another storage using copy and bit-identical from the first storage

Please describe what you expect to happen (but doesn’t):

  • Newly initialized storage should be bit-identical

Please describe what actually happens (the wrong behaviour):

  • Newly initialized storage doesn’t have an RSA key and doesn’t use RSA encryption, hence can’t be bit-identical
1 Like

I was thinking a little more about this and “bit-identical” would be a misnomer for RSA encrypted storage as presumably each chunk is still encrypted with an individual random key. Nonetheless, that shouldn’t prevent copying of the chunks outside of duplicacy (IIUC the two storages would still be compatible).

  • The flag would initiate copying of the public RSA key in the config. (Or it should fail, but the current behavior is unexpected.)
  • Ideally the flag should also be renamed to something more appropriate.

Yes it is a bug in that the RSA key isn’t copied to the new config. You can workaround it by manually copying the config file to the second storage.

1 Like