/system/tools/mkbootimg/include/bootimg/ |
D | bootimg.h | 90 uint32_t os_version; member 94 os_version &= ((1 << 11) - 1); in SetOsVersion() 95 os_version |= (((major & 0x7f) << 25) | ((minor & 0x7f) << 18) | ((patch & 0x7f) << 11)); in SetOsVersion() 99 os_version &= ~((1 << 11) - 1); in SetOsPatchLevel() 100 os_version |= (((year - 2000) & 0x7f) << 4) | ((month & 0xf) << 0); in SetOsPatchLevel() 261 uint32_t os_version; member 265 os_version &= ((1 << 11) - 1); in SetOsVersion() 266 os_version |= (((major & 0x7f) << 25) | ((minor & 0x7f) << 18) | ((patch & 0x7f) << 11)); in SetOsVersion() 270 os_version &= ~((1 << 11) - 1); in SetOsPatchLevel() 271 os_version |= (((year - 2000) & 0x7f) << 4) | ((month & 0xf) << 0); in SetOsPatchLevel()
|
/system/keymint/hal/src/ |
D | env.rs | 107 let os_version = (major * 10000) + (minor * 100) + sub; in populate_hal_info_from() localVariable 110 os_version, in populate_hal_info_from() 140 os_version: 120000, in test_hal_info() 150 os_version: 120500, in test_hal_info() 160 os_version: 120507, in test_hal_info() 166 for (os_version, os_patch, vendor_patch, want) in tests { in test_hal_info() 167 let got = populate_hal_info_from(os_version, os_patch, vendor_patch).unwrap(); in test_hal_info() 171 os_version, os_patch, vendor_patch in test_hal_info() 189 for (os_version, os_patch, vendor_patch, want_err) in tests { in test_invalid_hal_info() 190 let result = populate_hal_info_from(os_version, os_patch, vendor_patch); in test_invalid_hal_info() [all …]
|
/system/core/fastboot/ |
D | fastboot_test.cpp | 28 ASSERT_EQ(2018U, 2000U + ((hdr.os_version >> 4) & 0x7f)); in TEST() 29 ASSERT_EQ(1U, ((hdr.os_version >> 0) & 0xf)); in TEST() 43 ASSERT_EQ(1U, ((hdr.os_version >> 25) & 0x7f)); in TEST() 44 ASSERT_EQ(2U, ((hdr.os_version >> 18) & 0x7f)); in TEST() 45 ASSERT_EQ(3U, ((hdr.os_version >> 11) & 0x7f)); in TEST() 48 ASSERT_EQ(1U, ((hdr.os_version >> 25) & 0x7f)); in TEST() 49 ASSERT_EQ(2U, ((hdr.os_version >> 18) & 0x7f)); in TEST() 50 ASSERT_EQ(0U, ((hdr.os_version >> 11) & 0x7f)); in TEST() 53 ASSERT_EQ(1U, ((hdr.os_version >> 25) & 0x7f)); in TEST() 54 ASSERT_EQ(0U, ((hdr.os_version >> 18) & 0x7f)); in TEST() [all …]
|
D | bootimg_utils.cpp | 66 hdr->os_version = src.os_version; in mkbootimg_v3_and_above()
|
/system/keymaster/contexts/ |
D | keymaster2_passthrough_context.cpp | 31 keymaster_error_t Keymaster2PassthroughContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument 33 os_version_ = os_version; in SetSystemVersion() 38 void Keymaster2PassthroughContext::GetSystemVersion(uint32_t* os_version, in GetSystemVersion() argument 40 if (os_version) *os_version = os_version_; in GetSystemVersion()
|
D | keymaster1_passthrough_context.cpp | 45 keymaster_error_t Keymaster1PassthroughContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument 47 os_version_ = os_version; in SetSystemVersion() 52 void Keymaster1PassthroughContext::GetSystemVersion(uint32_t* os_version, in GetSystemVersion() argument 54 if (os_version) *os_version = os_version_; in GetSystemVersion()
|
D | soft_keymaster_context.cpp | 85 keymaster_error_t SoftKeymasterContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument 87 os_version_ = os_version; in SetSystemVersion() 92 void SoftKeymasterContext::GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const { in GetSystemVersion() argument 93 *os_version = os_version_; in GetSystemVersion() 143 keymaster_key_origin_t origin, uint32_t os_version, in SetAuthorizations() argument 176 sw_enforced->push_back(TAG_OS_VERSION, os_version); in SetAuthorizations()
|
D | pure_soft_keymaster_context.cpp | 81 keymaster_error_t PureSoftKeymasterContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument 83 os_version_ = os_version; in SetSystemVersion() 86 pure_soft_remote_provisioning_context_->SetSystemVersion(os_version, os_patchlevel); in SetSystemVersion() 91 void PureSoftKeymasterContext::GetSystemVersion(uint32_t* os_version, in GetSystemVersion() argument 93 *os_version = os_version_; in GetSystemVersion()
|
D | pure_soft_remote_provisioning_context.cpp | 228 void PureSoftRemoteProvisioningContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument 230 os_version_ = os_version; in SetSystemVersion()
|
/system/keymaster/include/keymaster/key_blob_utils/ |
D | software_keyblobs.h | 55 keymaster_key_origin_t origin, uint32_t os_version, 65 keymaster_error_t UpgradeSoftKeyBlob(const UniquePtr<Key>& key, const uint32_t os_version, 70 keymaster_error_t FullUpgradeSoftKeyBlob(const UniquePtr<Key>& key, const uint32_t os_version,
|
/system/keymaster/key_blob_utils/ |
D | software_keyblobs.cpp | 256 keymaster_key_origin_t origin, uint32_t os_version, in SetKeyBlobAuthorizations() argument 378 pseudo_hw_enforced->push_back(TAG_OS_VERSION, os_version); in SetKeyBlobAuthorizations() 405 keymaster_error_t UpgradeSoftKeyBlob(const UniquePtr<Key>& key, const uint32_t os_version, in UpgradeSoftKeyBlob() argument 409 return FullUpgradeSoftKeyBlob(key, os_version, os_patchlevel, in UpgradeSoftKeyBlob() 415 keymaster_error_t FullUpgradeSoftKeyBlob(const UniquePtr<Key>& key, const uint32_t os_version, in FullUpgradeSoftKeyBlob() argument 423 if (os_version == 0) { in FullUpgradeSoftKeyBlob() 431 key->sw_enforced()[key_os_version_pos].integer = os_version; in FullUpgradeSoftKeyBlob() 437 if (!UpgradeIntegerTag(TAG_OS_VERSION, os_version, &key->sw_enforced(), &set_changed) || in FullUpgradeSoftKeyBlob()
|
/system/tools/mkbootimg/ |
D | unpack_bootimg.py | 55 def format_os_version(os_version): argument 56 if os_version == 0: 58 a = os_version >> 14 59 b = os_version >> 7 & ((1<<7) - 1) 60 c = os_version & ((1<<7) - 1) 75 os_version = os_version_patch_level >> 11 77 return (format_os_version(os_version), 137 if self.os_version: 138 args.extend(['--os_version', self.os_version]) 210 info.os_version, info.os_patch_level = decode_os_version_patch_level(
|
D | mkbootimg.py | 126 args.output.write(pack('I', (args.os_version << 11) | args.os_patch_level)) 224 args.output.write(pack('I', (args.os_version << 11) | args.os_patch_level))
|
/system/keymaster/include/keymaster/contexts/ |
D | keymaster2_passthrough_context.h | 47 keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) override; 54 void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const override;
|
D | keymaster1_passthrough_context.h | 53 keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) override; 60 void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const override;
|
D | soft_keymaster_context.h | 64 keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) override; 65 void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const override;
|
D | pure_soft_keymaster_context.h | 59 keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) override; 60 void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const override;
|
D | pure_soft_remote_provisioning_context.h | 52 void SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel);
|
/system/keymaster/include/keymaster/ |
D | keymaster_context.h | 96 virtual keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) = 0; 103 virtual void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const = 0;
|
/system/tools/mkbootimg/rust/ |
D | bootimg_priv.rs | 47 pub os_version: u32, field 118 unsafe { ::core::ptr::addr_of!((*ptr).os_version) as usize - ptr as usize }, in bindgen_test_layout_boot_img_hdr_v0() 120 concat!("Offset of field: ", stringify!(boot_img_hdr_v0), "::", stringify!(os_version)) in bindgen_test_layout_boot_img_hdr_v0() 257 pub os_version: u32, field 293 unsafe { ::core::ptr::addr_of!((*ptr).os_version) as usize - ptr as usize }, in bindgen_test_layout_boot_img_hdr_v3() 295 concat!("Offset of field: ", stringify!(boot_img_hdr_v3), "::", stringify!(os_version)) in bindgen_test_layout_boot_img_hdr_v3()
|
/system/keymaster/android_keymaster/ |
D | keymaster_configuration.cpp | 115 keymaster_error_t ConfigureDevice(keymaster2_device_t* dev, uint32_t os_version, in ConfigureDevice() argument 118 .Authorization(keymaster::TAG_OS_VERSION, os_version) in ConfigureDevice()
|
/system/keymint/ta/src/ |
D | lib.rs | 283 pub os_version: u32, field 445 if hal_info.os_version == 0 { in keyblob_parse_decrypt() 456 check(v, hal_info.os_version, "OS version")?; in keyblob_parse_decrypt() 702 os_version: req.os_version, in process_req() 1157 KeyParam::OsVersion(hal_info.os_version), in add_keymint_tags()
|
D | keys.rs | 751 if hal_info.os_version == 0 { in upgrade_key() 757 modified |= upgrade(v, hal_info.os_version, "OS version")?; in upgrade_key()
|
/system/keymaster/include/keymaster/km_openssl/ |
D | attestation_record.h | 109 ASN1_INTEGER* os_version; member 169 ASN1_EXP_OPT(KM_AUTH_LIST, os_version, ASN1_INTEGER, TAG_OS_VERSION.masked_tag()),
|
/system/core/trusty/keymaster/ |
D | TrustyKeymaster.cpp | 71 req.os_version = GetOsVersion(); in Initialize()
|