more thorough error checking in siacrypto