What are diffrences between tweak and nonce?
I only know that nonce is used only once but tweak can be used for more than one time.but still by this diffrence I can't diffrentiate tweak and nonce
What are diffrences between tweak and nonce?
I only know that nonce is used only once but tweak can be used for more than one time.but still by this diffrence I can't diffrentiate tweak and nonce
They are somewhat similar. A nonce is a more general concept which might occur in modes of operations or protocols whereas a tweak almost always refers to a tweakable blockcipher.
A nonce is a number that must be used only once. Of course there are now nonce-misuse resistant constructions which decrease the impact of accidental nonce reuse but in general you lose security if you reuse a nonce.
A tweak on the other hand can quite naturally be reused. One of the original uses for a tweak was for disk encryption where the tweak would depend on the position on disk. This will make the same plaintext encrypted with the same key give different ciphertexts.
In a way a tweakable blockcipher allows using more simple modes of operation without nonces. You don't have to chain blocks in complicated modes anymore to make sure that blocks cannot be compared or replaced you simply use "ECB mode" with a different tweak for each position.
So they somehow accomplish the same goal but nonces do so on the mode-of-operation level and tweaks directly on the blockcipher level.