4 ms·
The rule of thumb is that each distinct kind of operation should have its own secret key. For example I developed a protocol with hash-chaining and HMACs for m
by jacques_chester 14y ago
The rule of thumb is that each distinct kind of operation should have its own secret key.
For example I developed a protocol with hash-chaining and HMACs for messages. I have two keys: one for performing the hash-chain calculation, and a different key for the HMAC of the one time message.
Could I have used a single key? Absolutely, yes. But the time it takes to perform both is trivial. And I've bought myself a little extra protection from any attacks that reveal a few bits of a key, because gathering a bit here and there of different keys won't help my attacker as much as gathering bits for the a universal key being used for everything.