[bssl] Check the public EC_KEY built from COSE_Key

This cl adds a check to the key when the EC_KEY is built from a
COSE_KEY. The check ensures that the affine coordinates set in
the function are on the elliptic curve.

Bug: 309440321
Test: atest rialto_test
Change-Id: I45cdb9835903ca6d8e1bacb86df7afbfe8fb1efc
diff --git a/libs/bssl/src/ec_key.rs b/libs/bssl/src/ec_key.rs
index 7e677c4..5a22e65 100644
--- a/libs/bssl/src/ec_key.rs
+++ b/libs/bssl/src/ec_key.rs
@@ -102,6 +102,7 @@
             EC_KEY_set_public_key_affine_coordinates(ec_key.0.as_ptr(), x.as_ref(), y.as_ref())
         };
         check_int_result(ret, ApiName::EC_KEY_set_public_key_affine_coordinates)?;
+        ec_key.check_key()?;
         Ok(ec_key)
     }