apple-data 1.0.654 → 1.0.655

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a9a4557101c6b1cfa93f50f7c8f75553eb4deff64b8566598efcb8d229444f9
4
- data.tar.gz: 8b13fc5b491e2cd3713b1cfb83c8318327bb677330a2e15c2b69976160a3a6c6
3
+ metadata.gz: dd195565f6a763dd7e17ea456f1a44eb8ddb894c6b36cd6753faac16c777af40
4
+ data.tar.gz: 84c0d2fa71fa5f150e4b0e257ca44f53e4b613e700f6652a833f08e0f59ed353
5
5
  SHA512:
6
- metadata.gz: a72dffd68298ea36df7094ef1fee1037eefc2bc1b227968b65a1156bc3278e6550a670b91d11149336d8285eb2549b10928e5c837b71bc61827a3ecae981eed4
7
- data.tar.gz: be813ddc316539dbaedd7bbec127041fa665c987afb49b697d2874535b3e8ca5d35b4fd0b35b62be9f349e61763a150570769029bb0d15b0951b572896cfadd8
6
+ metadata.gz: 77f9f3c7f763cba126c1001d415933b4e3ca2fad2ad4246c759f5c929e0d371028d456888492d8118f418dae15911792e847c9c7ab68b6241542aeaeaf9fe787
7
+ data.tar.gz: 804f30a89390ed1d21cff30d6710ff1367dc4db08311a5624bb7599070570caf9d34f1a6c0224aa72c53b5d88c04643d060c64c8aacf0ee1bd7e89477cb97282
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AppleData
4
+ # An ASN1 definition
5
+ class ASN1Definition
6
+ attr_reader :path
7
+
8
+ def initialize(path)
9
+ @path = path
10
+ end
11
+
12
+ def self.all
13
+ Dir[AppleData.get_path('asn1', '**', '*.asn')].map { |file| File.expand_path(file) }.map { |file| new(file) }
14
+ end
15
+ end
16
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppleData
4
- VERSION = '1.0.654'
4
+ VERSION = '1.0.655'
5
5
  end
data/lib/apple_data.rb CHANGED
@@ -10,11 +10,12 @@ module AppleData
10
10
  LOADER = Zeitwerk::Loader.new.tap do |loader|
11
11
  loader.push_dir(__dir__)
12
12
  loader.tag = 'apple-data'
13
- loader.inflector.tap do |inflector|
14
- inflector.inflect 'dsl' => 'DSL'
15
- inflector.inflect 'img4' => 'IMG4'
16
- inflector.inflect 'pki' => 'PKI'
17
- end
13
+ loader.inflector.inflect(
14
+ 'dsl' => 'DSL',
15
+ 'img4' => 'IMG4',
16
+ 'pki' => 'PKI',
17
+ 'asn1_definition' => 'ASN1Definition'
18
+ )
18
19
  loader.setup
19
20
 
20
21
  loader.eager_load_dir(File.join(__dir__, 'apple_data/schemas'))
@@ -22,15 +23,19 @@ module AppleData
22
23
 
23
24
  DEFAULT_APPLE_DATA_SHARE = File.join(File.dirname(__FILE__), '../share/')
24
25
 
25
- def get_data(file)
26
- YAML.load_file(File.join(@apple_data, file))
26
+ def self.get_data(file)
27
+ YAML.load_file(File.join(AppleData.data_location, file))
28
+ end
29
+
30
+ def self.get_path(*parts)
31
+ File.join(AppleData.data_location, *parts)
27
32
  end
28
33
 
29
34
  def self.data_location=(location)
30
- @apple_data = location
35
+ @data_location = location
31
36
  end
32
37
 
33
38
  def self.data_location
34
- @apple_data || AppleData::DEFAULT_APPLE_DATA_SHARE
39
+ @data_location ||= AppleData::DEFAULT_APPLE_DATA_SHARE
35
40
  end
36
41
  end
data/share/img4.yaml CHANGED
@@ -620,10 +620,10 @@ manifest_properties:
620
620
  LNCH:
621
621
  description: Local Policy Next Cryptographic Hash
622
622
  name: ApLocalNonceHash
623
+ META:
624
+ title: Metadata
623
625
  Mod#:
624
626
  title: Model ID
625
- mlb#:
626
- title: Main Logic Board Serial
627
627
  RNCH:
628
628
  description: Remote Nonce Cryptographic Hash
629
629
  RSCH:
@@ -647,6 +647,8 @@ manifest_properties:
647
647
  description: Security Mode
648
648
  SNON:
649
649
  description: SEP Nonce
650
+ SPAY:
651
+ title: SysCfg Payload
650
652
  SrNm:
651
653
  description: Unit Serial Number
652
654
  manifest: true
@@ -708,6 +710,8 @@ manifest_properties:
708
710
  lpol:
709
711
  description: Local Policy
710
712
  manx:
713
+ mlb#:
714
+ title: Main Logic Board Serial
711
715
  mmap:
712
716
  description: Memory Map
713
717
  nsih:
@@ -772,10 +776,6 @@ manifest_properties:
772
776
  name: Ap,TargetType
773
777
  roots:
774
778
  - ManifestKey-DataCenter
775
- META:
776
- title: Metadata
777
- SPAY:
778
- title: SysCfg Payload
779
779
  uidm:
780
780
  description: UID Mixing (Entanglement)
781
781
  type: boolean
@@ -1094,10 +1094,10 @@ img4_tags:
1094
1094
  title: Charger Input Limit Calibration
1095
1095
  CLHS:
1096
1096
  description: Chained LocalPolicy Hash String
1097
- SDOM:
1098
- title: Security Domain
1099
1097
  Coor:
1100
1098
  title: Country of Origin
1099
+ DGST:
1100
+ title: Object Digest
1101
1101
  DPCl:
1102
1102
  title: Primary Calibration Matrix
1103
1103
  DPRO:
@@ -1133,8 +1133,8 @@ img4_tags:
1133
1133
  title: Proximity Calibration Data
1134
1134
  RMd#:
1135
1135
  title: Regional Model Number
1136
- DGST:
1137
- title: Object Digest
1136
+ SDOM:
1137
+ title: Security Domain
1138
1138
  SPTM:
1139
1139
  description: Secure Page Table Monitor
1140
1140
  SpTS:
@@ -1173,8 +1173,6 @@ img4_tags:
1173
1173
  batf:
1174
1174
  title: Battery Firmware
1175
1175
  berb:
1176
- time:
1177
- title: Timestamp
1178
1176
  bles:
1179
1177
  description:
1180
1178
  cfel:
@@ -1268,6 +1266,18 @@ img4_tags:
1268
1266
  description:
1269
1267
  itst:
1270
1268
  description: Installer Test?
1269
+ kcrf:
1270
+ name: Kernel Cache Read-Only File Offset
1271
+ kcrz:
1272
+ name: Kernel Cache Read-Only File Size
1273
+ kcwf:
1274
+ name: Kernel Cache Write File Offset
1275
+ kcwz:
1276
+ name: Kernel Cache Write File Size
1277
+ kcxf:
1278
+ name: Kernel Cache Execute File Offset
1279
+ kcxz:
1280
+ name: Kernel Cache Execute File Size
1271
1281
  kdlv:
1272
1282
  description: Kernel Linker Version
1273
1283
  lamo:
@@ -1378,6 +1388,8 @@ img4_tags:
1378
1388
  description:
1379
1389
  tics:
1380
1390
  description:
1391
+ time:
1392
+ title: Timestamp
1381
1393
  tstp:
1382
1394
  title: Testing Product
1383
1395
  tz0s:
data/share/pki.yaml CHANGED
@@ -143,8 +143,6 @@ oids:
143
143
  1.2.840.113635.100.6.1.4:
144
144
  apple_description: Apple World Wide Developer Relations Certificates for Code
145
145
  Signing GM from developer to Apple
146
- 1.2.840.113635.100.6.8:
147
- name: appleImg4Manifest
148
146
  1.2.840.113635.100.6.16:
149
147
  name: appleSecureEnclaveFDRCommands
150
148
  description: A sequence of FDR programming commands, seperated by ";". Each command
@@ -263,6 +261,8 @@ oids:
263
261
  1.2.840.113635.100.6.71.1:
264
262
  description: Made for iDevice (MFi) - Authentication v4 - Apple Accessory Properties
265
263
  Extension
264
+ 1.2.840.113635.100.6.8:
265
+ name: appleImg4Manifest
266
266
  1.2.840.113635.100.6.9:
267
267
  title: appleSomeSHA256Hash
268
268
  1.2.840.113635.100.7.1.1:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple-data
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.654
4
+ version: 1.0.655
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Mark
@@ -92,6 +92,7 @@ extra_rdoc_files:
92
92
  files:
93
93
  - README.md
94
94
  - lib/apple_data.rb
95
+ - lib/apple_data/asn1_definition.rb
95
96
  - lib/apple_data/data_file.rb
96
97
  - lib/apple_data/dsl/collection_definition.rb
97
98
  - lib/apple_data/dsl/data_file_definition.rb