[Galaxy S 4 General] SamuriHL:
root@jgedlte:/system/bin # ./keymaster_test

./keymaster_test

Running main() from gtest_main.cc

[==========] Running 27 tests from 2 test cases.

[----------] Global test environment set-up.

[----------] 22 tests from KeymasterTest

Using keymaster module: Keymaster QCOM HAL

[ RUN ] KeymasterTest.GenerateKeyPair_RSA_NullParams_Failure

[ OK ] KeymasterTest.GenerateKeyPair_RSA_NullParams_Failure (2 ms)

[ RUN ] KeymasterTest.GenerateKeyPair_UnknownType_Failure

[ OK ] KeymasterTest.GenerateKeyPair_UnknownType_Failure (0 ms)

[ RUN ] KeymasterTest.ImportKeyPair_RSA_Success

[ OK ] KeymasterTest.ImportKeyPair_RSA_Success (19 ms)

[ RUN ] KeymasterTest.ImportKeyPair_BogusKey_Failure

[ OK ] KeymasterTest.ImportKeyPair_BogusKey_Failure (13 ms)

[ RUN ] KeymasterTest.ImportKeyPair_NullKey_Failure

[ OK ] KeymasterTest.ImportKeyPair_NullKey_Failure (0 ms)

[ RUN ] KeymasterTest.GetKeypairPublic_RSA_Success

[ OK ] KeymasterTest.GetKeypairPublic_RSA_Success (19 ms)

[ RUN ] KeymasterTest.GetKeypairPublic_RSA_NullKey_Failure

[ OK ] KeymasterTest.GetKeypairPublic_RSA_NullKey_Failure (0 ms)

[ RUN ] KeymasterTest.GetKeypairPublic_RSA_NullDestination_Failure

[ OK ] KeymasterTest.GetKeypairPublic_RSA_NullDestination_Failure (18 ms)

[ RUN ] KeymasterTest.DeleteKeyPair_RSA_Success

[ OK ] KeymasterTest.DeleteKeyPair_RSA_Success (17 ms)

[ RUN ] KeymasterTest.DeleteKeyPair_RSA_DoubleDelete_Failure

[ OK ] KeymasterTest.DeleteKeyPair_RSA_DoubleDelete_Failure (1 ms)

[ RUN ] KeymasterTest.DeleteKeyPair_RSA_NullKey_Failure

[ OK ] KeymasterTest.DeleteKeyPair_RSA_NullKey_Failure (0 ms)

[ RUN ] KeymasterTest.SignData_RSA_Raw_Success

[ OK ] KeymasterTest.SignData_RSA_Raw_Success (41 ms)

[ RUN ] KeymasterTest.SignData_RSA_Raw_InvalidSizeInput_Failure

[ OK ] KeymasterTest.SignData_RSA_Raw_InvalidSizeInput_Failure (17 ms)

[ RUN ] KeymasterTest.SignData_RSA_Raw_NullKey_Failure

[ OK ] KeymasterTest.SignData_RSA_Raw_NullKey_Failure (1 ms)

[ RUN ] KeymasterTest.SignData_RSA_Raw_NullInput_Failure

[ OK ] KeymasterTest.SignData_RSA_Raw_NullInput_Failure (17 ms)

[ RUN ] KeymasterTest.SignData_RSA_Raw_NullOutput_Failure

[ OK ] KeymasterTest.SignData_RSA_Raw_NullOutput_Failure (17 ms)

[ RUN ] KeymasterTest.VerifyData_RSA_Raw_Success

[ OK ] KeymasterTest.VerifyData_RSA_Raw_Success (39 ms)

[ RUN ] KeymasterTest.VerifyData_RSA_Raw_BadSignature_Failure

[ OK ] KeymasterTest.VerifyData_RSA_Raw_BadSignature_Failure (34 ms)

[ RUN ] KeymasterTest.VerifyData_RSA_Raw_NullKey_Failure

[ OK ] KeymasterTest.VerifyData_RSA_Raw_NullKey_Failure (17 ms)

[ RUN ] KeymasterTest.VerifyData_RSA_NullInput_Failure

[ OK ] KeymasterTest.VerifyData_RSA_NullInput_Failure (20 ms)

[ RUN ] KeymasterTest.VerifyData_RSA_NullSignature_Failure

[ OK ] KeymasterTest.VerifyData_RSA_NullSignature_Failure (17 ms)

[ RUN ] KeymasterTest.EraseAll_Success

[ OK ] KeymasterTest.EraseAll_Success (0 ms)

[----------] 22 tests from KeymasterTest (421 ms total)

[----------] 5 tests from RSA/KeymasterGenerateTest

Using keymaster module: Keymaster QCOM HAL

[ RUN ] RSA/KeymasterGenerateTest.GenerateKeyPair_RSA_Success/0

[ OK ] RSA/KeymasterGenerateTest.GenerateKeyPair_RSA_Success/0 (44 ms)

[ RUN ] RSA/KeymasterGenerateTest.GenerateKeyPair_RSA_Success/1

[ OK ] RSA/KeymasterGenerateTest.GenerateKeyPair_RSA_Success/1 (352 ms)

[ RUN ] RSA/KeymasterGenerateTest.GenerateKeyPair_RSA_Success/2

[ OK ] RSA/KeymasterGenerateTest.GenerateKeyPair_RSA_Success/2 (1030 ms)

[ RUN ] RSA/KeymasterGenerateTest.GenerateKeyPair_RSA_Success/3

hardware/libhardware/tests/keymaster/keymaster_test.cpp:361: Failure

Value of: sDevice->generate_keypair(sDevice, key_type, &params, &key_blob, &key_

blob_length)

Actual: -1

Expected: 0

Should generate an RSA key with 512 bit modulus size

[ FAILED ] RSA/KeymasterGenerateTest.GenerateKeyPair_RSA_Success/3, where GetP

aram() = 3072 (3 ms)

[ RUN ] RSA/KeymasterGenerateTest.GenerateKeyPair_RSA_Success/4

hardware/libhardware/tests/keymaster/keymaster_test.cpp:361: Failure

Value of: sDevice->generate_keypair(sDevice, key_type, &params, &key_blob, &key_

blob_length)

Actual: -1

Expected: 0

Should generate an RSA key with 512 bit modulus size

[ FAILED ] RSA/KeymasterGenerateTest.GenerateKeyPair_RSA_Success/4, where GetP

aram() = 4096 (3 ms)

[----------] 5 tests from RSA/KeymasterGenerateTest (1437 ms total)

[----------] Global test environment tear-down

[==========] 27 tests from 2 test cases ran. (1901 ms total)

[ PASSED ] 25 tests.

[ FAILED ] 2 tests, listed below:

[ FAILED ] RSA/KeymasterGenerateTest.GenerateKeyPair_RSA_Success/3, where GetP

aram() = 3072

[ FAILED ] RSA/KeymasterGenerateTest.GenerateKeyPair_RSA_Success/4, where GetP

aram() = 4096

2 FAILED TESTS

---------- Post added at 01:48 PM ---------- Previous post was at 01:45 PM ----------

I think there's more than just that but I'm not 100% positive. UGH.