Add KeyChainTest and require certain algorithms

This test will fail if the required KeyChain algorithms are not
supported and are not backed by a hardware Keymaster HAL. This prevents
accidental shipping of a device without the Keymaster HAL included in
the system image.

(cherry picked from commit af948e2bcef610403e1bfb79f0c426c3eac51400)

Bug: 10330504
Change-Id: I5386ba559207a585f77156e7a2c0c2a4b21bfc2b
1 file changed