Re-apply: Relax KeyPairGeneratorTest

Changing KeyPairGeneratorTest to handle different number of
providers.

This change has been reapplied: it was undone by a bad
merge.

This is a re-application of commit
11d630b19f9f3f7db427823b347aff09ab4cfb69

Bug: 5513723
Bug: 17377106

(cherry picked from commit ea1843890fbcefbd907dfbe5fed4afb8cfa6b21f)

Change-Id: I781d4017770570a5c3d9672cc55eab51b75c0368
1 file changed