Expose signatures as byte[], check array lengths in C.