Implement FIPS 186-2 key generation.