Take the 2-minute tour ×
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

I've seen people everywhere say to use a MAC or HMAC with block ciphers. I think I understand the basics, but I'm still not sure how the HMAC secret is distributed so the other party can verify that it's valid. Is the secret distributed freely like the IV (though the name suggests it is secret)? Is it part of the ciphertext? Is it sent over a secure channel like the AES key?

Also, is it safe to use the same HMAC secret for each subsequent AES encrypted message after the initial connection? Assuming all keys (other than public/private keypairs) are destroyed after the connection is closed.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It is "sent over a secure channel like the AES key".
It is "safe to use the same HMAC secret for each subsequent
AES encrypted message after the initial connection".

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.