server/bulkcrypto.c: Abstract out the AEAD nonce formatting.