generateCookieSecret
fn
ubyte[] generateCookieSecret(SecureRandom rng)Generates a random cookie secret for server use.
The secret should be generated once at server startup and rotated periodically. All DTLS server instances should share the same secret for stateless cookie verification.
Parameters
rng | Secure random number generator. |
Returns
A 32-byte random secret key.