./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.GetParameters/0_default
#./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.GetParameters/0_default <
Note: Google Test filter = PerInstance/HmacKeySharingTest.GetParameters/0_default
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from PerInstance/HmacKeySharingTest
[ RUN ] PerInstance/HmacKeySharingTest.GetParameters/0_default
[ OK ] PerInstance/HmacKeySharingTest.GetParameters/0_default (198 ms)
[----------] 1 test from PerInstance/HmacKeySharingTest (198 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (198 ms total)
[ PASSED ] 1 test.
TA log:
D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x4c, id = 0x0, sub_cmd = 0x4c
D/TA: TA_InvokeCommandEntryPoint:2454 KM_GET_HMAC_SHARING_PARAMETERS
D/TA: TA_getHmacSharingParameters:2327 s_nonce_generated = 1
D/TA: TA_serialize_rsp_err:476 res: 0
D/TA: TA_getHmacSharingParameters:2340 size of km error = 4
D/TA: TA_getHmacSharingParameters:2345 seed_size = 4
D/TA: TA_getHmacSharingParameters:2352 size = 40
D/TA: TA_getHmacSharingParameters:2354 dump hmac sharing params start
D/TA: dumpData:107 dumpData data_len = 40, count = 3
D/TA: dumpData:121 [000] 00 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c
D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae
D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2
D/TA: TA_getHmacSharingParameters:2356 dump hmac sharing params end
D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x4c, id = 0x0, sub_cmd = 0x4c
D/TA: TA_InvokeCommandEntryPoint:2454 KM_GET_HMAC_SHARING_PARAMETERS
D/TA: TA_getHmacSharingParameters:2327 s_nonce_generated = 1
D/TA: TA_serialize_rsp_err:476 res: 0
D/TA: TA_getHmacSharingParameters:2340 size of km error = 4
D/TA: TA_getHmacSharingParameters:2345 seed_size = 4
D/TA: TA_getHmacSharingParameters:2352 size = 40
D/TA: TA_getHmacSharingParameters:2354 dump hmac sharing params start
D/TA: dumpData:107 dumpData data_len = 40, count = 3
D/TA: dumpData:121 [000] 00 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c
D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae
D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2
D/TA: TA_getHmacSharingParameters:2356 dump hmac sharing params end
./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.ComputeSharedHmac/0_default
# ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.ComputeSharedHmac/0_default
Note: Google Test filter = PerInstance/HmacKeySharingTest.ComputeSharedHmac/0_default
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from PerInstance/HmacKeySharingTest
[ RUN ] PerInstance/HmacKeySharingTest.ComputeSharedHmac/0_default
[ OK ] PerInstance/HmacKeySharingTest.ComputeSharedHmac/0_default (742 ms)
[----------] 1 test from PerInstance/HmacKeySharingTest (742 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (744 ms total)
[ PASSED ] 1 test.
TA log:
D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x4c, id = 0x0, sub_cmd = 0x4c
D/TA: TA_InvokeCommandEntryPoint:2454 KM_GET_HMAC_SHARING_PARAMETERS
D/TA: TA_getHmacSharingParameters:2327 s_nonce_generated = 1
D/TA: TA_serialize_rsp_err:476 res: 0
D/TA: TA_getHmacSharingParameters:2340 size of km error = 4
D/TA: TA_getHmacSharingParameters:2345 seed_size = 4
D/TA: TA_getHmacSharingParameters:2352 size = 40
D/TA: TA_getHmacSharingParameters:2354 dump hmac sharing params start
D/TA: dumpData:107 dumpData data_len = 40, count = 3
D/TA: dumpData:121 [000] 00 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c
D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae
D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2
D/TA: TA_getHmacSharingParameters:2356 dump hmac sharing params end
D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x50, id = 0x0, sub_cmd = 0x50
D/TA: TA_InvokeCommandEntryPoint:2457 KM_COMPUTE_SHARED_HMAC
D/TA: TA_computeSharedHmac:2106 dump param in start
D/TA: dumpData:107 dumpData data_len = 40, count = 3
D/TA: dumpData:121 [000] 01 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c
D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae
D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2
D/TA: TA_computeSharedHmac:2108 dump param in end
D/TA: TA_computeSharedHmac:2119 num_params = 1, in size = 40
D/TA: TA_computeSharedHmac:2128 L = 256, blocks = 2
D/TA: TA_computeSharedHmac:2130 TEE_AllocateOperation
D/TA: TA_computeSharedHmac:2138 TEE_AllocateTransientObject
D/TA: TA_computeSharedHmac:2146 TEE_InitRefAttribute
D/TA: TA_computeSharedHmac:2150 TEE_PopulateTransientObject
D/TA: TA_computeSharedHmac:2159 TEE_SetOperationKey
D/TA: TA_computeSharedHmac:2174 CKDF loop i = 1
D/TA: TA_computeSharedHmac:2175 TEE_MACInit
D/TA: TA_computeSharedHmac:2180 CKDF i
D/TA: TA_computeSharedHmac:2185 CKDF label
D/TA: TA_computeSharedHmac:2189 CKDF 0x00
D/TA: TA_computeSharedHmac:2194 CKDF context
D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 36, sizeof(seed) = 16
D/TA: TA_computeSharedHmac:2202 CKDF seed length: 0
D/TA: TA_computeSharedHmac:2242 CKDF dump nonce start
D/TA: dumpData:107 dumpData data_len = 32, count = 2
D/TA: dumpData:121 [000] 68 70 e4 05 e5 c8 00 9c 43 26 8f 7d 7f b8 22 db
D/TA: dumpData:121 [001] 75 0e c1 fe bf bf 06 ae 6a 07 60 ec 3f c1 44 a2
D/TA: TA_computeSharedHmac:2244 CKDF dump nonce end
D/TA: TA_computeSharedHmac:2263 CKDF L
D/TA: TA_computeSharedHmac:2270 CKDF not the last block
D/TA: TA_computeSharedHmac:2277 CKDF K(i) out_len = 16
D/TA: TA_computeSharedHmac:2174 CKDF loop i = 2
D/TA: TA_computeSharedHmac:2175 TEE_MACInit
D/TA: TA_computeSharedHmac:2180 CKDF i
D/TA: TA_computeSharedHmac:2185 CKDF label
D/TA: TA_computeSharedHmac:2189 CKDF 0x00
D/TA: TA_computeSharedHmac:2194 CKDF context
D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 36, sizeof(seed) = 16
D/TA: TA_computeSharedHmac:2202 CKDF seed length: 0
D/TA: TA_computeSharedHmac:2242 CKDF dump nonce start
D/TA: dumpData:107 dumpData data_len = 32, count = 2
D/TA: dumpData:121 [000] 68 70 e4 05 e5 c8 00 9c 43 26 8f 7d 7f b8 22 db
D/TA: dumpData:121 [001] 75 0e c1 fe bf bf 06 ae 6a 07 60 ec 3f c1 44 a2
D/TA: TA_computeSharedHmac:2244 CKDF dump nonce end
D/TA: TA_computeSharedHmac:2263 CKDF L
D/TA: TA_computeSharedHmac:2270 CKDF not the last block
D/TA: TA_computeSharedHmac:2277 CKDF K(i) out_len = 16
D/TA: TA_computeSharedHmac:2305 TA_serialize_rsp_err, res = 0
D/TA: TA_serialize_rsp_err:476 res: 0
D/TA: TA_computeSharedHmac:2315 dump output start
D/TA: dumpData:107 dumpData data_len = 32, count = 2
D/TA: dumpData:121 [000] 58 ab bb 7e 54 41 71 bb c3 67 19 d1 6d f3 83 e7
D/TA: dumpData:121 [001] 21 92 38 c7 bb 3c 80 86 66 81 42 29 90 8c 63 8e
D/TA: TA_computeSharedHmac:2317 dump output end
D/TA: TA_computeSharedHmac:2320 response size = 40
D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x4c, id = 0x0, sub_cmd = 0x4c
D/TA: TA_InvokeCommandEntryPoint:2454 KM_GET_HMAC_SHARING_PARAMETERS
D/TA: TA_getHmacSharingParameters:2327 s_nonce_generated = 1
D/TA: TA_serialize_rsp_err:476 res: 0
D/TA: TA_getHmacSharingParameters:2340 size of km error = 4
D/TA: TA_getHmacSharingParameters:2345 seed_size = 4
D/TA: TA_getHmacSharingParameters:2352 size = 40
D/TA: TA_getHmacSharingParameters:2354 dump hmac sharing params start
D/TA: dumpData:107 dumpData data_len = 40, count = 3
D/TA: dumpData:121 [000] 00 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c
D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae
D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2
D/TA: TA_getHmacSharingParameters:2356 dump hmac sharing params end
D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x50, id = 0x0, sub_cmd = 0x50
D/TA: TA_InvokeCommandEntryPoint:2457 KM_COMPUTE_SHARED_HMAC
D/TA: TA_computeSharedHmac:2106 dump param in start
D/TA: dumpData:107 dumpData data_len = 40, count = 3
D/TA: dumpData:121 [000] 01 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c
D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae
D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2
D/TA: TA_computeSharedHmac:2108 dump param in end
D/TA: TA_computeSharedHmac:2119 num_params = 1, in size = 40
D/TA: TA_computeSharedHmac:2128 L = 256, blocks = 2
D/TA: TA_computeSharedHmac:2130 TEE_AllocateOperation
D/TA: TA_computeSharedHmac:2138 TEE_AllocateTransientObject
D/TA: TA_computeSharedHmac:2146 TEE_InitRefAttribute
D/TA: TA_computeSharedHmac:2150 TEE_PopulateTransientObject
D/TA: TA_computeSharedHmac:2159 TEE_SetOperationKey
D/TA: TA_computeSharedHmac:2174 CKDF loop i = 1
D/TA: TA_computeSharedHmac:2175 TEE_MACInit
D/TA: TA_computeSharedHmac:2180 CKDF i
D/TA: TA_computeSharedHmac:2185 CKDF label
D/TA: TA_computeSharedHmac:2189 CKDF 0x00
D/TA: TA_computeSharedHmac:2194 CKDF context
D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 36, sizeof(seed) = 16
D/TA: TA_computeSharedHmac:2202 CKDF seed length: 0
D/TA: TA_computeSharedHmac:2242 CKDF dump nonce start
D/TA: dumpData:107 dumpData data_len = 32, count = 2
D/TA: dumpData:121 [000] 68 70 e4 05 e5 c8 00 9c 43 26 8f 7d 7f b8 22 db
D/TA: dumpData:121 [001] 75 0e c1 fe bf bf 06 ae 6a 07 60 ec 3f c1 44 a2
D/TA: TA_computeSharedHmac:2244 CKDF dump nonce end
D/TA: TA_computeSharedHmac:2263 CKDF L
D/TA: TA_computeSharedHmac:2270 CKDF not the last block
D/TA: TA_computeSharedHmac:2277 CKDF K(i) out_len = 16
D/TA: TA_computeSharedHmac:2174 CKDF loop i = 2
D/TA: TA_computeSharedHmac:2175 TEE_MACInit
D/TA: TA_computeSharedHmac:2180 CKDF i
D/TA: TA_computeSharedHmac:2185 CKDF label
D/TA: TA_computeSharedHmac:2189 CKDF 0x00
D/TA: TA_computeSharedHmac:2194 CKDF context
D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 36, sizeof(seed) = 16
D/TA: TA_computeSharedHmac:2202 CKDF seed length: 0
D/TA: TA_computeSharedHmac:2242 CKDF dump nonce start
D/TA: dumpData:107 dumpData data_len = 32, count = 2
D/TA: dumpData:121 [000] 68 70 e4 05 e5 c8 00 9c 43 26 8f 7d 7f b8 22 db
D/TA: dumpData:121 [001] 75 0e c1 fe bf bf 06 ae 6a 07 60 ec 3f c1 44 a2
D/TA: TA_computeSharedHmac:2244 CKDF dump nonce end
D/TA: TA_computeSharedHmac:2263 CKDF L
D/TA: TA_computeSharedHmac:2270 CKDF not the last block
D/TA: TA_computeSharedHmac:2277 CKDF K(i) out_len = 16
D/TA: TA_computeSharedHmac:2305 TA_serialize_rsp_err, res = 0
D/TA: TA_serialize_rsp_err:476 res: 0
D/TA: TA_computeSharedHmac:2315 dump output start
D/TA: dumpData:107 dumpData data_len = 32, count = 2
D/TA: dumpData:121 [000] 58 ab bb 7e 54 41 71 bb c3 67 19 d1 6d f3 83 e7
D/TA: dumpData:121 [001] 21 92 38 c7 bb 3c 80 86 66 81 42 29 90 8c 63 8e
D/TA: TA_computeSharedHmac:2317 dump output end
D/TA: TA_computeSharedHmac:2320 response size = 40
./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptNonce/0_default
# ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptNonce/0_default
Note: Google Test filter = PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptNonce/0_default
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from PerInstance/HmacKeySharingTest
[ RUN ] PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptNonce/0_default
[ OK ] PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptNonce/0_default (947 ms)
[----------] 1 test from PerInstance/HmacKeySharingTest (947 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (949 ms total)
[ PASSED ] 1 test.
TA log:
D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x4c, id = 0x0, sub_cmd = 0x4c D/TA: TA_InvokeCommandEntryPoint:2454 KM_GET_HMAC_SHARING_PARAMETERS D/TA: TA_getHmacSharingParameters:2327 s_nonce_generated = 1 D/TA: TA_serialize_rsp_err:476 res: 0 D/TA: TA_getHmacSharingParameters:2340 size of km error = 4 D/TA: TA_getHmacSharingParameters:2345 seed_size = 4 D/TA: TA_getHmacSharingParameters:2352 size = 40 D/TA: TA_getHmacSharingParameters:2354 dump hmac sharing params start D/TA: dumpData:107 dumpData data_len = 40, count = 3 D/TA: dumpData:121 [000] 00 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2 D/TA: TA_getHmacSharingParameters:2356 dump hmac sharing params end D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x50, id = 0x0, sub_cmd = 0x50 D/TA: TA_InvokeCommandEntryPoint:2457 KM_COMPUTE_SHARED_HMAC D/TA: TA_computeSharedHmac:2106 dump param in start D/TA: dumpData:107 dumpData data_len = 40, count = 3 D/TA: dumpData:121 [000] 01 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2108 dump param in end D/TA: TA_computeSharedHmac:2119 num_params = 1, in size = 40 D/TA: TA_computeSharedHmac:2128 L = 256, blocks = 2 D/TA: TA_computeSharedHmac:2130 TEE_AllocateOperation D/TA: TA_computeSharedHmac:2138 TEE_AllocateTransientObject D/TA: TA_computeSharedHmac:2146 TEE_InitRefAttribute D/TA: TA_computeSharedHmac:2150 TEE_PopulateTransientObject D/TA: TA_computeSharedHmac:2159 TEE_SetOperationKey D/TA: TA_computeSharedHmac:2174 CKDF loop i = 1 D/TA: TA_computeSharedHmac:2175 TEE_MACInit D/TA: TA_computeSharedHmac:2180 CKDF i D/TA: TA_computeSharedHmac:2185 CKDF label D/TA: TA_computeSharedHmac:2189 CKDF 0x00 D/TA: TA_computeSharedHmac:2194 CKDF context D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 36, sizeof(seed) = 16 D/TA: TA_computeSharedHmac:2202 CKDF seed length: 0 D/TA: TA_computeSharedHmac:2242 CKDF dump nonce start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 68 70 e4 05 e5 c8 00 9c 43 26 8f 7d 7f b8 22 db D/TA: dumpData:121 [001] 75 0e c1 fe bf bf 06 ae 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2244 CKDF dump nonce end D/TA: TA_computeSharedHmac:2263 CKDF L D/TA: TA_computeSharedHmac:2270 CKDF not the last block D/TA: TA_computeSharedHmac:2277 CKDF K(i) out_len = 16 D/TA: TA_computeSharedHmac:2174 CKDF loop i = 2 D/TA: TA_computeSharedHmac:2175 TEE_MACInit D/TA: TA_computeSharedHmac:2180 CKDF i D/TA: TA_computeSharedHmac:2185 CKDF label D/TA: TA_computeSharedHmac:2189 CKDF 0x00 D/TA: TA_computeSharedHmac:2194 CKDF context D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 36, sizeof(seed) = 16 D/TA: TA_computeSharedHmac:2202 CKDF seed length: 0 D/TA: TA_computeSharedHmac:2242 CKDF dump nonce start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 68 70 e4 05 e5 c8 00 9c 43 26 8f 7d 7f b8 22 db D/TA: dumpData:121 [001] 75 0e c1 fe bf bf 06 ae 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2244 CKDF dump nonce end D/TA: TA_computeSharedHmac:2263 CKDF L D/TA: TA_computeSharedHmac:2270 CKDF not the last block D/TA: TA_computeSharedHmac:2277 CKDF K(i) out_len = 16 D/TA: TA_computeSharedHmac:2305 TA_serialize_rsp_err, res = 0 D/TA: TA_serialize_rsp_err:476 res: 0 D/TA: TA_computeSharedHmac:2315 dump output start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 58 ab bb 7e 54 41 71 bb c3 67 19 d1 6d f3 83 e7 D/TA: dumpData:121 [001] 21 92 38 c7 bb 3c 80 86 66 81 42 29 90 8c 63 8e D/TA: TA_computeSharedHmac:2317 dump output end D/TA: TA_computeSharedHmac:2320 response size = 40 D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x50, id = 0x0, sub_cmd = 0x50 D/TA: TA_InvokeCommandEntryPoint:2457 KM_COMPUTE_SHARED_HMAC D/TA: TA_computeSharedHmac:2106 dump param in start D/TA: dumpData:107 dumpData data_len = 40, count = 3 D/TA: dumpData:121 [000] 01 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 02 9c D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2108 dump param in end D/TA: TA_computeSharedHmac:2119 num_params = 1, in size = 40 D/TA: TA_computeSharedHmac:2128 L = 256, blocks = 2 D/TA: TA_computeSharedHmac:2130 TEE_AllocateOperation D/TA: TA_computeSharedHmac:2138 TEE_AllocateTransientObject D/TA: TA_computeSharedHmac:2146 TEE_InitRefAttribute D/TA: TA_computeSharedHmac:2150 TEE_PopulateTransientObject D/TA: TA_computeSharedHmac:2159 TEE_SetOperationKey D/TA: TA_computeSharedHmac:2174 CKDF loop i = 1 D/TA: TA_computeSharedHmac:2175 TEE_MACInit D/TA: TA_computeSharedHmac:2180 CKDF i D/TA: TA_computeSharedHmac:2185 CKDF label D/TA: TA_computeSharedHmac:2189 CKDF 0x00 D/TA: TA_computeSharedHmac:2194 CKDF context D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 36, sizeof(seed) = 16 D/TA: TA_computeSharedHmac:2202 CKDF seed length: 0 D/TA: TA_computeSharedHmac:2242 CKDF dump nonce start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 68 70 e4 05 e5 c8 02 9c 43 26 8f 7d 7f b8 22 db D/TA: dumpData:121 [001] 75 0e c1 fe bf bf 06 ae 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2244 CKDF dump nonce end E/TA: TA_computeSharedHmac:2246 invalid nonce D/TA: TA_computeSharedHmac:2305 TA_serialize_rsp_err, res = -38 D/TA: TA_serialize_rsp_err:476 res: -38 D/TA: TA_computeSharedHmac:2315 dump output start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TA: dumpData:121 [001] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TA: TA_computeSharedHmac:2317 dump output end D/TA: TA_computeSharedHmac:2320 response size = 4 D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x4c, id = 0x0, sub_cmd = 0x4c D/TA: TA_InvokeCommandEntryPoint:2454 KM_GET_HMAC_SHARING_PARAMETERS D/TA: TA_getHmacSharingParameters:2327 s_nonce_generated = 1 D/TA: TA_serialize_rsp_err:476 res: 0 D/TA: TA_getHmacSharingParameters:2340 size of km error = 4 D/TA: TA_getHmacSharingParameters:2345 seed_size = 4 D/TA: TA_getHmacSharingParameters:2352 size = 40 D/TA: TA_getHmacSharingParameters:2354 dump hmac sharing params start D/TA: dumpData:107 dumpData data_len = 40, count = 3 D/TA: dumpData:121 [000] 00 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2 D/TA: TA_getHmacSharingParameters:2356 dump hmac sharing params end D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x50, id = 0x0, sub_cmd = 0x50 D/TA: TA_InvokeCommandEntryPoint:2457 KM_COMPUTE_SHARED_HMAC D/TA: TA_computeSharedHmac:2106 dump param in start D/TA: dumpData:107 dumpData data_len = 40, count = 3 D/TA: dumpData:121 [000] 01 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2108 dump param in end D/TA: TA_computeSharedHmac:2119 num_params = 1, in size = 40 D/TA: TA_computeSharedHmac:2128 L = 256, blocks = 2 D/TA: TA_computeSharedHmac:2130 TEE_AllocateOperation D/TA: TA_computeSharedHmac:2138 TEE_AllocateTransientObject D/TA: TA_computeSharedHmac:2146 TEE_InitRefAttribute D/TA: TA_computeSharedHmac:2150 TEE_PopulateTransientObject D/TA: TA_computeSharedHmac:2159 TEE_SetOperationKey D/TA: TA_computeSharedHmac:2174 CKDF loop i = 1 D/TA: TA_computeSharedHmac:2175 TEE_MACInit D/TA: TA_computeSharedHmac:2180 CKDF i D/TA: TA_computeSharedHmac:2185 CKDF label D/TA: TA_computeSharedHmac:2189 CKDF 0x00 D/TA: TA_computeSharedHmac:2194 CKDF context D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 36, sizeof(seed) = 16 D/TA: TA_computeSharedHmac:2202 CKDF seed length: 0 D/TA: TA_computeSharedHmac:2242 CKDF dump nonce start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 68 70 e4 05 e5 c8 00 9c 43 26 8f 7d 7f b8 22 db D/TA: dumpData:121 [001] 75 0e c1 fe bf bf 06 ae 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2244 CKDF dump nonce end D/TA: TA_computeSharedHmac:2263 CKDF L D/TA: TA_computeSharedHmac:2270 CKDF not the last block D/TA: TA_computeSharedHmac:2277 CKDF K(i) out_len = 16 D/TA: TA_computeSharedHmac:2174 CKDF loop i = 2 D/TA: TA_computeSharedHmac:2175 TEE_MACInit D/TA: TA_computeSharedHmac:2180 CKDF i D/TA: TA_computeSharedHmac:2185 CKDF label D/TA: TA_computeSharedHmac:2189 CKDF 0x00 D/TA: TA_computeSharedHmac:2194 CKDF context D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 36, sizeof(seed) = 16 D/TA: TA_computeSharedHmac:2202 CKDF seed length: 0 D/TA: TA_computeSharedHmac:2242 CKDF dump nonce start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 68 70 e4 05 e5 c8 00 9c 43 26 8f 7d 7f b8 22 db D/TA: dumpData:121 [001] 75 0e c1 fe bf bf 06 ae 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2244 CKDF dump nonce end D/TA: TA_computeSharedHmac:2263 CKDF L D/TA: TA_computeSharedHmac:2270 CKDF not the last block D/TA: TA_computeSharedHmac:2277 CKDF K(i) out_len = 16 D/TA: TA_computeSharedHmac:2305 TA_serialize_rsp_err, res = 0 D/TA: TA_serialize_rsp_err:476 res: 0 D/TA: TA_computeSharedHmac:2315 dump output start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 58 ab bb 7e 54 41 71 bb c3 67 19 d1 6d f3 83 e7 D/TA: dumpData:121 [001] 21 92 38 c7 bb 3c 80 86 66 81 42 29 90 8c 63 8e D/TA: TA_computeSharedHmac:2317 dump output end D/TA: TA_computeSharedHmac:2320 response size = 40
./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptSeed/0_default
# ./VtsHalKeymasterV4_0TargetTest --gtest_filter=PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptSeed/0_default
Note: Google Test filter = PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptSeed/0_default
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from PerInstance/HmacKeySharingTest
[ RUN ] PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptSeed/0_default
[ OK ] PerInstance/HmacKeySharingTest.ComputeSharedHmacCorruptSeed/0_default (937 ms)
[----------] 1 test from PerInstance/HmacKeySharingTest (937 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (938 ms total)
[ PASSED ] 1 test.
TA log:
D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x4c, id = 0x0, sub_cmd = 0x4c D/TA: TA_InvokeCommandEntryPoint:2454 KM_GET_HMAC_SHARING_PARAMETERS D/TA: TA_getHmacSharingParameters:2327 s_nonce_generated = 1 D/TA: TA_serialize_rsp_err:476 res: 0 D/TA: TA_getHmacSharingParameters:2340 size of km error = 4 D/TA: TA_getHmacSharingParameters:2345 seed_size = 4 D/TA: TA_getHmacSharingParameters:2352 size = 40 D/TA: TA_getHmacSharingParameters:2354 dump hmac sharing params start D/TA: dumpData:107 dumpData data_len = 40, count = 3 D/TA: dumpData:121 [000] 00 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2 D/TA: TA_getHmacSharingParameters:2356 dump hmac sharing params end D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x50, id = 0x0, sub_cmd = 0x50 D/TA: TA_InvokeCommandEntryPoint:2457 KM_COMPUTE_SHARED_HMAC D/TA: TA_computeSharedHmac:2106 dump param in start D/TA: dumpData:107 dumpData data_len = 40, count = 3 D/TA: dumpData:121 [000] 01 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2108 dump param in end D/TA: TA_computeSharedHmac:2119 num_params = 1, in size = 40 D/TA: TA_computeSharedHmac:2128 L = 256, blocks = 2 D/TA: TA_computeSharedHmac:2130 TEE_AllocateOperation D/TA: TA_computeSharedHmac:2138 TEE_AllocateTransientObject D/TA: TA_computeSharedHmac:2146 TEE_InitRefAttribute D/TA: TA_computeSharedHmac:2150 TEE_PopulateTransientObject D/TA: TA_computeSharedHmac:2159 TEE_SetOperationKey D/TA: TA_computeSharedHmac:2174 CKDF loop i = 1 D/TA: TA_computeSharedHmac:2175 TEE_MACInit D/TA: TA_computeSharedHmac:2180 CKDF i D/TA: TA_computeSharedHmac:2185 CKDF label D/TA: TA_computeSharedHmac:2189 CKDF 0x00 D/TA: TA_computeSharedHmac:2194 CKDF context D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 36, sizeof(seed) = 16 D/TA: TA_computeSharedHmac:2202 CKDF seed length: 0 D/TA: TA_computeSharedHmac:2242 CKDF dump nonce start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 68 70 e4 05 e5 c8 00 9c 43 26 8f 7d 7f b8 22 db D/TA: dumpData:121 [001] 75 0e c1 fe bf bf 06 ae 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2244 CKDF dump nonce end D/TA: TA_computeSharedHmac:2263 CKDF L D/TA: TA_computeSharedHmac:2270 CKDF not the last block D/TA: TA_computeSharedHmac:2277 CKDF K(i) out_len = 16 D/TA: TA_computeSharedHmac:2174 CKDF loop i = 2 D/TA: TA_computeSharedHmac:2175 TEE_MACInit D/TA: TA_computeSharedHmac:2180 CKDF i D/TA: TA_computeSharedHmac:2185 CKDF label D/TA: TA_computeSharedHmac:2189 CKDF 0x00 D/TA: TA_computeSharedHmac:2194 CKDF context D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 36, sizeof(seed) = 16 D/TA: TA_computeSharedHmac:2202 CKDF seed length: 0 D/TA: TA_computeSharedHmac:2242 CKDF dump nonce start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 68 70 e4 05 e5 c8 00 9c 43 26 8f 7d 7f b8 22 db D/TA: dumpData:121 [001] 75 0e c1 fe bf bf 06 ae 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2244 CKDF dump nonce end D/TA: TA_computeSharedHmac:2263 CKDF L D/TA: TA_computeSharedHmac:2270 CKDF not the last block D/TA: TA_computeSharedHmac:2277 CKDF K(i) out_len = 16 D/TA: TA_computeSharedHmac:2305 TA_serialize_rsp_err, res = 0 D/TA: TA_serialize_rsp_err:476 res: 0 D/TA: TA_computeSharedHmac:2315 dump output start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 58 ab bb 7e 54 41 71 bb c3 67 19 d1 6d f3 83 e7 D/TA: dumpData:121 [001] 21 92 38 c7 bb 3c 80 86 66 81 42 29 90 8c 63 8e D/TA: TA_computeSharedHmac:2317 dump output end D/TA: TA_computeSharedHmac:2320 response size = 40 D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x50, id = 0x0, sub_cmd = 0x50 D/TA: TA_InvokeCommandEntryPoint:2457 KM_COMPUTE_SHARED_HMAC D/TA: TA_computeSharedHmac:2106 dump param in start D/TA: dumpData:107 dumpData data_len = 72, count = 5 D/TA: dumpData:121 [000] 01 00 00 00 20 00 00 00 01 00 00 00 00 00 00 00 D/TA: dumpData:121 [001] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TA: dumpData:121 [002] 00 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c D/TA: dumpData:121 [003] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae D/TA: dumpData:121 [004] 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2108 dump param in end D/TA: TA_computeSharedHmac:2119 num_params = 1, in size = 72 D/TA: TA_computeSharedHmac:2128 L = 256, blocks = 2 D/TA: TA_computeSharedHmac:2130 TEE_AllocateOperation D/TA: TA_computeSharedHmac:2138 TEE_AllocateTransientObject D/TA: TA_computeSharedHmac:2146 TEE_InitRefAttribute D/TA: TA_computeSharedHmac:2150 TEE_PopulateTransientObject D/TA: TA_computeSharedHmac:2159 TEE_SetOperationKey D/TA: TA_computeSharedHmac:2174 CKDF loop i = 1 D/TA: TA_computeSharedHmac:2175 TEE_MACInit D/TA: TA_computeSharedHmac:2180 CKDF i D/TA: TA_computeSharedHmac:2185 CKDF label D/TA: TA_computeSharedHmac:2189 CKDF 0x00 D/TA: TA_computeSharedHmac:2194 CKDF context D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 68, sizeof(seed) = 16 D/TA: TA_computeSharedHmac:2202 CKDF seed length: 32 E/TA: TA_computeSharedHmac:2204 invalid seed length D/TA: TA_computeSharedHmac:2305 TA_serialize_rsp_err, res = -38 D/TA: TA_serialize_rsp_err:476 res: -38 D/TA: TA_computeSharedHmac:2315 dump output start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TA: dumpData:121 [001] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 D/TA: TA_computeSharedHmac:2317 dump output end D/TA: TA_computeSharedHmac:2320 response size = 4 D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x4c, id = 0x0, sub_cmd = 0x4c D/TA: TA_InvokeCommandEntryPoint:2454 KM_GET_HMAC_SHARING_PARAMETERS D/TA: TA_getHmacSharingParameters:2327 s_nonce_generated = 1 D/TA: TA_serialize_rsp_err:476 res: 0 D/TA: TA_getHmacSharingParameters:2340 size of km error = 4 D/TA: TA_getHmacSharingParameters:2345 seed_size = 4 D/TA: TA_getHmacSharingParameters:2352 size = 40 D/TA: TA_getHmacSharingParameters:2354 dump hmac sharing params start D/TA: dumpData:107 dumpData data_len = 40, count = 3 D/TA: dumpData:121 [000] 00 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2 D/TA: TA_getHmacSharingParameters:2356 dump hmac sharing params end D/TA: TA_InvokeCommandEntryPoint:2366 cmd_id: 0x50, id = 0x0, sub_cmd = 0x50 D/TA: TA_InvokeCommandEntryPoint:2457 KM_COMPUTE_SHARED_HMAC D/TA: TA_computeSharedHmac:2106 dump param in start D/TA: dumpData:107 dumpData data_len = 40, count = 3 D/TA: dumpData:121 [000] 01 00 00 00 00 00 00 00 68 70 e4 05 e5 c8 00 9c D/TA: dumpData:121 [001] 43 26 8f 7d 7f b8 22 db 75 0e c1 fe bf bf 06 ae D/TA: dumpData:121 [002] 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2108 dump param in end D/TA: TA_computeSharedHmac:2119 num_params = 1, in size = 40 D/TA: TA_computeSharedHmac:2128 L = 256, blocks = 2 D/TA: TA_computeSharedHmac:2130 TEE_AllocateOperation D/TA: TA_computeSharedHmac:2138 TEE_AllocateTransientObject D/TA: TA_computeSharedHmac:2146 TEE_InitRefAttribute D/TA: TA_computeSharedHmac:2150 TEE_PopulateTransientObject D/TA: TA_computeSharedHmac:2159 TEE_SetOperationKey D/TA: TA_computeSharedHmac:2174 CKDF loop i = 1 D/TA: TA_computeSharedHmac:2175 TEE_MACInit D/TA: TA_computeSharedHmac:2180 CKDF i D/TA: TA_computeSharedHmac:2185 CKDF label D/TA: TA_computeSharedHmac:2189 CKDF 0x00 D/TA: TA_computeSharedHmac:2194 CKDF context D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 36, sizeof(seed) = 16 D/TA: TA_computeSharedHmac:2202 CKDF seed length: 0 D/TA: TA_computeSharedHmac:2242 CKDF dump nonce start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 68 70 e4 05 e5 c8 00 9c 43 26 8f 7d 7f b8 22 db D/TA: dumpData:121 [001] 75 0e c1 fe bf bf 06 ae 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2244 CKDF dump nonce end D/TA: TA_computeSharedHmac:2263 CKDF L D/TA: TA_computeSharedHmac:2270 CKDF not the last block D/TA: TA_computeSharedHmac:2277 CKDF K(i) out_len = 16 D/TA: TA_computeSharedHmac:2174 CKDF loop i = 2 D/TA: TA_computeSharedHmac:2175 TEE_MACInit D/TA: TA_computeSharedHmac:2180 CKDF i D/TA: TA_computeSharedHmac:2185 CKDF label D/TA: TA_computeSharedHmac:2189 CKDF 0x00 D/TA: TA_computeSharedHmac:2194 CKDF context D/TA: TA_computeSharedHmac:2199 CKDF get seed length, SIZE_LENGTH_AKMS = 4, size of local in = 36, sizeof(seed) = 16 D/TA: TA_computeSharedHmac:2202 CKDF seed length: 0 D/TA: TA_computeSharedHmac:2242 CKDF dump nonce start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 68 70 e4 05 e5 c8 00 9c 43 26 8f 7d 7f b8 22 db D/TA: dumpData:121 [001] 75 0e c1 fe bf bf 06 ae 6a 07 60 ec 3f c1 44 a2 D/TA: TA_computeSharedHmac:2244 CKDF dump nonce end D/TA: TA_computeSharedHmac:2263 CKDF L D/TA: TA_computeSharedHmac:2270 CKDF not the last block D/TA: TA_computeSharedHmac:2277 CKDF K(i) out_len = 16 D/TA: TA_computeSharedHmac:2305 TA_serialize_rsp_err, res = 0 D/TA: TA_serialize_rsp_err:476 res: 0 D/TA: TA_computeSharedHmac:2315 dump output start D/TA: dumpData:107 dumpData data_len = 32, count = 2 D/TA: dumpData:121 [000] 58 ab bb 7e 54 41 71 bb c3 67 19 d1 6d f3 83 e7 D/TA: dumpData:121 [001] 21 92 38 c7 bb 3c 80 86 66 81 42 29 90 8c 63 8e D/TA: TA_computeSharedHmac:2317 dump output end D/TA: TA_computeSharedHmac:2320 response size = 40
标签:00,CKDF,4.0,dumpData,HmacKeySharingTest,computeSharedHmac,121,VTS,TA From: https://www.cnblogs.com/xiululu/p/17233395.html