SCT signature verification, encode/decode and accessor functions

I like the "simpler yet" option.  If the log ID is not yet set, then it can return NULL and avoid writing to *logid_len.