SCT signature verification, encode/decode and accessor functions

You should check here, too, that you have at least one byte available.