Change sign to take a pointer to a byte array instead of a Blob, to avoid copying buffers.