rsa: check that pointer checksum isn't NULL before using it