Throw InvalidKeyException from ECDH_compute_key

Instead of throwing RuntimeException for ECDH_compute_key failures just
throw an InvalidKeyException since the higher-level API declares that as
a checked exception.

Bug: 21277055
Change-Id: Ieed26ad4f6cb76a49a7edb77bb3b1da7ae88043b
2 files changed