Score:2

How do the c-bits (capacity bits) make the sponge construction better?

tn flag

a sponge construction

I know that the message never directly changes those last c bits of the internal state (as seen in the image). And I also know that the capacity bits make the sponge construction resistant against collision and preimage attacks. How do the c-bits make it resistant against such attacks?

Score:2
my flag

How do the c-bits make it resistant against such attacks?

Suppose they weren't there; that is, all the bits in the state were 'rate bits'; that is, when a block of input is absorbed, what happens is that the entire state is xor'ed by input.

What this would allow an attacker to do is arbitrarily set the state to anything he wants (assuming he knows the previous bytes of the message); if those previous bytes set the state to $S'$ and he wants to set the state to $S$, he specifies the next block of inputs to $S \oplus S'$; this will convert the state to $S$. It should be obvious how to use this to do second-preimage and collision attacks (and slightly less obviously, preimage attacks).

With the capacity bits in place, the above attack doesn't work - the attacker can't effect those directly. If he wants to convert state $S'$ to $S$, he has to hope that the capacity bits of $S$ and $S'$ are the same (and with the number of capacity bits we use in practice, that is quite improbable).

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.