Key generation uses CryptoAlgorithm object provided by the client.