Michel,
I found a bug in crypto_sign_init(). I had incorrectly set the VARSIZE attribute of the bytea result. This is now fixed. I noticed also that VARSIZE was not explicitly set in crypto_sign_final_create(). I assume that _pgsodium_zalloc_bytea() does this, but I prefer to see the explicit assignment inline. Feel free to edit as you see fit.
Michel, I found a bug in crypto_sign_init(). I had incorrectly set the VARSIZE attribute of the bytea result. This is now fixed. I noticed also that VARSIZE was not explicitly set in crypto_sign_final_create(). I assume that _pgsodium_zalloc_bytea() does this, but I prefer to see the explicit assignment inline. Feel free to edit as you see fit.
__ Marc