Handle overlapping in/out buffers in crypto_sign()