Merge "Check FIPS_mode() rather than explicitly calling BORINGSSL_self_test."
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
static jint runSelfTest(JNIEnv* env, jobject /* clazz */) {
|
static jint runSelfTest(JNIEnv* env, jobject /* clazz */) {
|
||||||
return BORINGSSL_self_test();
|
return FIPS_mode();
|
||||||
}
|
}
|
||||||
|
|
||||||
static const JNINativeMethod methods[] = {
|
static const JNINativeMethod methods[] = {
|
||||||
@@ -39,4 +39,4 @@ int register_android_server_devicepolicy_CryptoTestHelper(JNIEnv *env) {
|
|||||||
env, "com/android/server/devicepolicy/CryptoTestHelper", methods, NELEM(methods));
|
env, "com/android/server/devicepolicy/CryptoTestHelper", methods, NELEM(methods));
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace android
|
} // namespace android
|
||||||
|
|||||||
Reference in New Issue
Block a user