Score:1

Is it a bad idea to swap modes/encryption primitives?

nr flag

I was wondering if changing modes or primitives could affect security. For example, let's say you have encrypted data with AES-128 with CBC mode and you want to change it to AES-128 GCM, or to ASCON. What I mean by that is that you decrypt the messages then encrypt them again with the new scheme. Does that affect security in any way?

From what I've read, sometimes it affects security: if you go from CFB to CTR, then CFB_0 = Ek(IV)+P0, and when nonce||ctr = IV, then CTR_ctr = Ek(IV)+Pctr. This means that CFB_0+CTR_ctr = P0+Pctr, which gives information about the plaintexts.

Are there some other examples of modes that shouldn't be swapped? And what if we change the primitive?

Score:1
vu flag

Are there some other examples of modes that shouldn't be swapped?

Yes: https://crypto.stackexchange.com/a/105961/36960 In short, reusing one key for different purpose is generally harmful to the security assumptions and logics.

And what if we change the primitive?

I'll answer this part assuming it means changing the blockcipher or the permutation.

Different primitives generally imply domain-separation, therefore, barring logic bugs, this should be safe.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.