Apparently fixed Keygen

Only generate 1024 bit keys for now