Fixed where I used maxRSAKeyLength instead of the desired length