Support overlapping input and output regions in crypto_secretbox_detached()