6
$\begingroup$

RFC 7539 says:

A 96-bit nonce -- different for each invocation with the same key

It doesn't explicitly say whether it has to be random or not. If we use an ever incrementing counter. Would that be secured? Generating cryptographically secured random number is a slow process.

$\endgroup$
9
$\begingroup$

No, it doesn't need a random nonce. Yes, if you use an incrementing counter, that works.

As the RFC says, the only requirement is uniqueness; as long as you make sure that each nonce you use is different, you have met the requirements - an incrementing counter does that quite nicely (and, in fact, is commonly used in practice)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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