CipherTest: key generation failure is AssertionError

We cannot continue the test without these keys being generated correctly
and upcoming tests will need them generated in the static blocks, so
change the getEncryptKey and getDecryptKey methods to throw
AssertionError on any exception during key generation.

Test: vogar --mode host --classpath out/host/common/obj/JAVA_LIBRARIES/core-tests-support-hostdex_intermediates/classes.jack --classpath out/host/common/obj/JAVA_LIBRARIES/core-tests-hostdex_intermediates/classes.jack libcore/luni/src/test/java/libcore/javax/crypto/CipherTest.java
Change-Id: I3568b44c011973efe76a2bf1ebba3d23c1f3745e
1 file changed