KeyManagerFactoryTest: get sigAlg from entry

There was a log of complicated logic here to figure out the signature
type that was very fragile. Instead directly pulling it from the
PrivateKey and X509Certificate should be robust and non-fragile.

We still compare "keyType" to make sure that it at least matches what we
expected, but this is still skipped when the keyType is null and
signature verification is skipped when just "DH" is given for keyType.

Bug: 28131777
Change-Id: I60f85b2b98d495f14537157b40a7ade81940d5b2
1 file changed