I'm generating a new random symmetric key and want to pass that to multiple people using crypto_box_easy. Is it okay to reuse the same (random) nonce for the same message and same sender but for different recipients? Can the same nonce be used for a symmetric encryption with the random key and crypto_secretbox_easy?
As the nonce has to be served along with the encrypted message it can't be hidden anyway, but is reuse across multiple different recipients a problem? If they provide a badly generated public key, can that weaken encryption in a way that other peoples' secret keys could be extracted?
Thanks a lot.
crypto_box_easywill perform ECDH with the recipients public key and your private key to generate a shared secret, which is then hashed to a symmetric key. Thus it's acceptable to use the same nonce once for each recipient as each Diffie Hellman process will generate a unique key.