• Home
  • Raw
  • Download

Lines Matching refs:val

251     uint32_t val;  in read_uint32()  local
252 memcpy(&val, buf, sizeof(val)); in read_uint32()
253 return val; in read_uint32()
257 uint32_t val; in add_to_uint32() local
258 memcpy(&val, buf, sizeof(val)); in add_to_uint32()
259 val += delta; in add_to_uint32()
260 memcpy(buf, &val, sizeof(val)); in add_to_uint32()
429 uint32_t val; in TEST() local
430 EXPECT_TRUE(set.GetTagValue(TAG_USER_ID, &val)); in TEST()
431 EXPECT_EQ(7U, val); in TEST()
434 EXPECT_FALSE(set.GetTagValue(TAG_KEY_SIZE, &val)); in TEST()
449 uint64_t val; in TEST() local
450 EXPECT_TRUE(set1.GetTagValue(TAG_RSA_PUBLIC_EXPONENT, &val)); in TEST()
451 EXPECT_EQ(3U, val); in TEST()
454 EXPECT_FALSE(set2.GetTagValue(TAG_RSA_PUBLIC_EXPONENT, &val)); in TEST()
471 uint64_t val; in TEST() local
472 EXPECT_TRUE(set1.GetTagValue(TAG_USER_SECURE_ID, 0, &val)); in TEST()
473 EXPECT_EQ(8338U, val); in TEST()
474 EXPECT_TRUE(set1.GetTagValue(TAG_USER_SECURE_ID, 1, &val)); in TEST()
475 EXPECT_EQ(4334U, val); in TEST()
478 EXPECT_FALSE(set2.GetTagValue(TAG_USER_SECURE_ID, &val)); in TEST()
491 keymaster_algorithm_t val; in TEST() local
492 EXPECT_TRUE(set.GetTagValue(TAG_ALGORITHM, &val)); in TEST()
493 EXPECT_EQ(KM_ALGORITHM_RSA, val); in TEST()
510 keymaster_purpose_t val; in TEST() local
511 EXPECT_TRUE(set.GetTagValue(TAG_PURPOSE, 0, &val)); in TEST()
512 EXPECT_EQ(KM_PURPOSE_SIGN, val); in TEST()
513 EXPECT_TRUE(set.GetTagValue(TAG_PURPOSE, 1, &val)); in TEST()
514 EXPECT_EQ(KM_PURPOSE_VERIFY, val); in TEST()
517 EXPECT_FALSE(set.GetTagValue(TAG_PURPOSE, 2, &val)); in TEST()
531 uint64_t val; in TEST() local
532 EXPECT_TRUE(set.GetTagValue(TAG_ACTIVE_DATETIME, &val)); in TEST()
533 EXPECT_EQ(10U, val); in TEST()
536 EXPECT_FALSE(set.GetTagValue(TAG_USAGE_EXPIRE_DATETIME, &val)); in TEST()
549 keymaster_blob_t val; in TEST() local
550 EXPECT_TRUE(set.GetTagValue(TAG_APPLICATION_ID, &val)); in TEST()
551 EXPECT_EQ(6U, val.data_length); in TEST()
552 EXPECT_EQ(0, memcmp(val.data, "my_app", 6)); in TEST()
555 EXPECT_FALSE(set.GetTagValue(TAG_APPLICATION_DATA, &val)); in TEST()