Home | History | Annotate | Download | only in trunks

Lines Matching defs:public_area

57   TPM_RC ComputeKeyName(const TPMT_PUBLIC& public_area,
59 return utility_.ComputeKeyName(public_area, object_name);
63 const TPMS_NV_PUBLIC& public_area) {
64 utility_.nvram_public_area_map_[index] = public_area;
68 TPMS_NV_PUBLIC* public_area) {
73 *public_area = it->second;
493 TPM2B_PUBLIC public_area;
494 public_area.public_area.type = TPM_ALG_RSA;
495 public_area.public_area.object_attributes = kDecrypt;
496 public_area.public_area.auth_policy.size = 0;
497 public_area.public_area.unique.rsa.size = 0;
499 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
519 TPM2B_PUBLIC public_area;
520 public_area.public_area.type = TPM_ALG_RSA;
521 public_area.public_area.object_attributes = kDecrypt;
522 public_area.public_area.auth_policy.size = 0;
523 public_area.public_area.unique.rsa.size = 0;
525 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
541 TPM2B_PUBLIC public_area;
542 public_area.public_area.type = TPM_ALG_RSA;
543 public_area.public_area.object_attributes = kDecrypt | kRestricted;
545 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
562 TPM2B_PUBLIC public_area;
563 public_area.public_area.type = TPM_ALG_RSA;
564 public_area.public_area.object_attributes = kDecrypt;
565 public_area.public_area.auth_policy.size = 0;
566 public_area.public_area.unique.rsa.size = 0;
569 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
592 TPM2B_PUBLIC public_area;
593 public_area.public_area.type = TPM_ALG_RSA;
594 public_area.public_area.object_attributes = kDecrypt;
595 public_area.public_area.auth_policy.size = 0;
596 public_area.public_area.unique.rsa.size = 0;
599 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
622 TPM2B_PUBLIC public_area;
623 public_area.public_area.type = TPM_ALG_RSA;
624 public_area.public_area.object_attributes = kDecrypt;
625 public_area.public_area.auth_policy.size = 0;
626 public_area.public_area.unique.rsa.size = 0;
628 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
650 TPM2B_PUBLIC public_area;
651 public_area.public_area.type = TPM_ALG_RSA;
652 public_area.public_area.object_attributes = kDecrypt;
653 public_area.public_area.auth_policy.size = 0;
654 public_area.public_area.unique.rsa.size = 0;
656 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
673 TPM2B_PUBLIC public_area;
674 public_area.public_area.type = TPM_ALG_RSA;
675 public_area.public_area.object_attributes = kDecrypt | kRestricted;
677 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
707 TPM2B_PUBLIC public_area;
708 public_area.public_area.type = TPM_ALG_RSA;
709 public_area.public_area.object_attributes = kDecrypt;
710 public_area.public_area.auth_policy.size = 0;
711 public_area.public_area.unique.rsa.size = 0;
714 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
739 TPM2B_PUBLIC public_area;
740 public_area.public_area.type = TPM_ALG_RSA;
741 public_area.public_area.object_attributes = kDecrypt;
742 public_area.public_area.auth_policy.size = 0;
743 public_area.public_area.unique.rsa.size = 0;
746 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
771 TPM2B_PUBLIC public_area;
772 public_area.public_area.type = TPM_ALG_RSA;
773 public_area.public_area.object_attributes = kSign;
774 public_area.public_area.auth_policy.size = 0;
775 public_area.public_area.unique.rsa.size = 0;
777 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
797 TPM2B_PUBLIC public_area;
798 public_area.public_area.type = TPM_ALG_RSA;
799 public_area.public_area.object_attributes = kSign;
800 public_area.public_area.auth_policy.size = 0;
801 public_area.public_area.unique.rsa.size = 0;
803 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
820 TPM2B_PUBLIC public_area;
821 public_area.public_area.type = TPM_ALG_RSA;
822 public_area.public_area.object_attributes = kSign | kRestricted;
824 public_area),
852 TPM2B_PUBLIC public_area;
853 public_area.public_area.type = TPM_ALG_RSA;
854 public_area.public_area.object_attributes = kDecrypt;
856 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
871 TPM2B_PUBLIC public_area;
872 public_area.public_area.type = TPM_ALG_ECC;
873 public_area.public_area.object_attributes = kSign;
875 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
890 TPM2B_PUBLIC public_area;
891 public_area.public_area.type = TPM_ALG_RSA;
892 public_area.public_area.object_attributes = kSign;
894 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
925 TPM2B_PUBLIC public_area;
927 public_area.public_area.type = TPM_ALG_RSA;
928 public_area.public_area.object_attributes = kSign;
929 public_area.public_area.auth_policy.size = 0;
930 public_area.public_area.unique.rsa.size = 0;
932 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
955 TPM2B_PUBLIC public_area;
957 public_area.public_area.type = TPM_ALG_RSA;
958 public_area.public_area.object_attributes = kSign;
959 public_area.public_area.auth_policy.size = 0;
960 public_area.public_area.unique.rsa.size = 0;
962 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
982 TPM2B_PUBLIC public_area;
983 public_area.public_area.type = TPM_ALG_RSA;
984 public_area.public_area.object_attributes = kSign;
986 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
1002 TPM2B_PUBLIC public_area;
1003 public_area.public_area.type = TPM_ALG_RSA;
1004 public_area.public_area.object_attributes = kSign;
1006 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
1022 TPM2B_PUBLIC public_area;
1023 public_area.public_area.type = TPM_ALG_RSA;
1024 public_area.public_area.object_attributes = kSign | kRestricted;
1026 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
1040 TPM2B_PUBLIC public_area;
1041 public_area.public_area.type = TPM_ALG_RSA;
1042 public_area.public_area.object_attributes = kDecrypt;
1044 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
1058 TPM2B_PUBLIC public_area;
1059 public_area.public_area.type = TPM_ALG_ECC;
1060 public_area.public_area.object_attributes = kSign;
1062 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
1076 TPM2B_PUBLIC public_area;
1077 public_area.public_area.type = TPM_ALG_RSA;
1078 public_area.public_area.object_attributes = kSign;
1080 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
1094 TPM2B_PUBLIC public_area;
1095 public_area.public_area.type = TPM_ALG_RSA;
1096 public_area.public_area.object_attributes = kSign;
1098 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
1112 TPM2B_PUBLIC public_area;
1114 public_area.public_area.type = TPM_ALG_RSA;
1115 public_area.public_area.object_attributes = kSign;
1117 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
1136 TPM2B_PUBLIC public_area;
1138 public_area.public_area.type = TPM_ALG_RSA;
1139 public_area.public_area.object_attributes = kSign;
1141 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
1189 TPM2B_PUBLIC public_area;
1190 public_area.public_area.type = TPM_ALG_RSA;
1191 public_area.public_area.auth_policy.size = 0;
1192 public_area.public_area.unique.rsa.size = 0;
1194 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
1223 TPM2B_PUBLIC public_area;
1224 public_area.public_area.type = TPM_ALG_RSA;
1225 public_area.public_area.auth_policy.size = 0;
1226 public_area.public_area.unique.rsa.size = 0;
1228 .WillRepeatedly(DoAll(SetArgPointee<2>(public_area),
1259 EXPECT_EQ(public_data.public_area.parameters.rsa_detail.key_bits,
1261 EXPECT_EQ(public_data.public_area.parameters.rsa_detail.exponent,
1263 EXPECT_EQ(public_data.public_area.unique.rsa.size, modulus.size());
1264 EXPECT_EQ(0, memcmp(public_data.public_area.unique.rsa.buffer,
1282 ComputeKeyName(public_data.public_area, &object_name));
1367 TPM2B_PUBLIC public_area;
1372 .WillOnce(DoAll(SaveArg<2>(&public_area),
1382 EXPECT_EQ(public_area.public_area.object_attributes & kDecrypt, kDecrypt);
1383 EXPECT_EQ(public_area.public_area.object_attributes & kSign, kSign);
1384 EXPECT_EQ(public_area.public_area.object_attributes & kUserWithAuth,
1386 EXPECT_EQ(public_area.public_area.object_attributes & kAdminWithPolicy, 0u);
1387 EXPECT_EQ(public_area.public_area.parameters.rsa_detail.scheme.scheme,
1397 TPM2B_PUBLIC public_area;
1401 .WillOnce(DoAll(SaveArg<2>(&public_area),
1408 EXPECT_EQ(public_area.public_area.object_attributes & kDecrypt, kDecrypt);
1409 EXPECT_EQ(public_area.public_area.object_attributes & kSign, 0u);
1410 EXPECT_EQ(public_area.public_area.parameters.rsa_detail.scheme.scheme,
1415 TPM2B_PUBLIC public_area;
1421 SaveArg<2>(&public_area),
1430 EXPECT_EQ(public_area.public_area.object_attributes & kDecrypt, 0u);
1431 EXPECT_EQ(public_area.public_area.object_attributes & kSign, kSign);
1432 EXPECT_EQ(public_area.public_area.object_attributes & kUserWithAuth, 0u);
1433 EXPECT_EQ(public_area.public_area.object_attributes & kAdminWithPolicy,
1435 EXPECT_EQ(public_area.public_area.parameters.rsa_detail.scheme.scheme,
1437 EXPECT_EQ(public_area.public_area.parameters.rsa_detail.key_bits, 2048);
1438 EXPECT_EQ(public_area.public_area.parameters.rsa_detail.exponent, 0x10001u);
1439 EXPECT_EQ(public_area.public_area.auth_policy.size, policy_digest.size());
1440 EXPECT_EQ(0, memcmp(public_area.public_area.auth_policy.buffer,
1540 EXPECT_EQ(in_public.public_area.type, TPM_ALG_KEYEDHASH);
1541 EXPECT_EQ(in_public.public_area.name_alg, TPM_ALG_SHA256);
1576 public_data.public_area.auth_policy.size = 0;
1809 TPMS_NV_PUBLIC public_area;
1810 EXPECT_EQ(TPM_RC_SUCCESS, GetNVRAMMap(index, &public_area));
1811 EXPECT_EQ(public_area.attributes & TPMA_NV_WRITELOCKED, TPMA_NV_WRITELOCKED);
1842 TPMS_NV_PUBLIC public_area;
1843 EXPECT_EQ(TPM_RC_SUCCESS, GetNVRAMMap(index, &public_area));
1844 EXPECT_EQ(public_area.attributes & TPMA_NV_WRITTEN, TPMA_NV_WRITTEN);
1941 TPMS_NV_PUBLIC public_area;
1942 SetNVRAMMap(index, public_area);
1945 EXPECT_EQ(TPM_RC_SUCCESS, utility_.GetNVSpacePublicArea(index, &public_area));
1951 TPMS_NV_PUBLIC public_area;
1954 EXPECT_EQ(TPM_RC_SUCCESS, utility_.GetNVSpacePublicArea(index, &public_area));
1959 TPMS_NV_PUBLIC public_area;
1962 EXPECT_EQ(TPM_RC_FAILURE, utility_.GetNVSpacePublicArea(index, &public_area));
2018 TPM2B_PUBLIC public_area;
2020 .WillOnce(DoAll(SaveArg<2>(&public_area),
2023 EXPECT_EQ(TPM_ALG_SHA256, public_area.public_area.name_alg);