dissect.hypervisor 3.14.dev2__py3-none-any.whl → 3.15.dev1__py3-none-any.whl

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.
@@ -103,8 +103,9 @@ EnvelopeAttribute = namedtuple("EnvelopeAttribute", ("type", "flag", "value"))
103
103
  class Envelope:
104
104
  """Implements an encryption envelope as used within ESXi."""
105
105
 
106
- def __init__(self, fh: BinaryIO):
106
+ def __init__(self, fh: BinaryIO, verify: bool = True):
107
107
  self.fh = fh
108
+ self.verify = verify
108
109
 
109
110
  header_buf = io.BytesIO(self.fh.read(ENVELOPE_BLOCK_SIZE))
110
111
  self.header = c_envelope.EnvelopeFileHeader(header_buf)
@@ -190,7 +191,8 @@ class Envelope:
190
191
  footer = c_envelope.DataTransformCryptoFooter(bytes(decrypted[-512:]))
191
192
  decrypted = decrypted[: -4096 - footer.padding]
192
193
 
193
- cipher.verify(self.digest)
194
+ if self.verify:
195
+ cipher.verify(self.digest)
194
196
 
195
197
  return bytes(decrypted)
196
198
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dissect.hypervisor
3
- Version: 3.14.dev2
3
+ Version: 3.15.dev1
4
4
  Summary: A Dissect module implementing parsers for various hypervisor disk, backup and configuration files
5
5
  Author-email: Dissect Team <dissect@fox-it.com>
6
6
  License: Affero General Public License v3
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
24
  License-File: COPYRIGHT
25
25
  Requires-Dist: defusedxml
26
- Requires-Dist: dissect.cstruct <5,>=4.dev
26
+ Requires-Dist: dissect.cstruct <5,>=4
27
27
  Requires-Dist: dissect.util <4,>=3
28
28
  Provides-Extra: dev
29
29
  Requires-Dist: dissect.hypervisor[full] ; extra == 'dev'
@@ -28,12 +28,12 @@ dissect/hypervisor/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
28
28
  dissect/hypervisor/tools/envelope.py,sha256=6_RLtKmFnZ69fx8HlvFgsjDjNrfnXD73dgszpG1mYQE,967
29
29
  dissect/hypervisor/tools/vma.py,sha256=N8x4Yh45BM5MweLSriwhAfSegbjw_Ko4i2yayMWF3rw,5422
30
30
  dissect/hypervisor/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
- dissect/hypervisor/util/envelope.py,sha256=dRVyhtMTL5CKRxv40bAeRTrHx1MTOZ5czJbIV2brmL0,10327
31
+ dissect/hypervisor/util/envelope.py,sha256=6nEJfgsxj696qxaLOQ2k5MrVWA2uLkbB5zxxRAvboF4,10405
32
32
  dissect/hypervisor/util/vmtar.py,sha256=oNJ-qTvQVOl7al_vExpg_T4LnGyE72O9hjOmQBiTKSA,1469
33
- dissect.hypervisor-3.14.dev2.dist-info/COPYRIGHT,sha256=EOOoIwk_inOMUD4c1ylpzMtYLjGzmc-MLEVAEdLLr20,305
34
- dissect.hypervisor-3.14.dev2.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
35
- dissect.hypervisor-3.14.dev2.dist-info/METADATA,sha256=J4Wz4wrJHIoG_HwRvWdvmRRcC6-KumhkKui28H5pyKI,3462
36
- dissect.hypervisor-3.14.dev2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
37
- dissect.hypervisor-3.14.dev2.dist-info/entry_points.txt,sha256=qwOrIPRV4bYsKo2sAZznUqegFTMu1sm7ld-o7w_h_5U,124
38
- dissect.hypervisor-3.14.dev2.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
39
- dissect.hypervisor-3.14.dev2.dist-info/RECORD,,
33
+ dissect.hypervisor-3.15.dev1.dist-info/COPYRIGHT,sha256=EOOoIwk_inOMUD4c1ylpzMtYLjGzmc-MLEVAEdLLr20,305
34
+ dissect.hypervisor-3.15.dev1.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
35
+ dissect.hypervisor-3.15.dev1.dist-info/METADATA,sha256=1X4bHDd9oS2yaFPGMFC3bqEfrPt2Y8wpyaakp-11vqQ,3458
36
+ dissect.hypervisor-3.15.dev1.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
37
+ dissect.hypervisor-3.15.dev1.dist-info/entry_points.txt,sha256=qwOrIPRV4bYsKo2sAZznUqegFTMu1sm7ld-o7w_h_5U,124
38
+ dissect.hypervisor-3.15.dev1.dist-info/top_level.txt,sha256=Mn-CQzEYsAbkxrUI0TnplHuXnGVKzxpDw_po_sXpvv4,8
39
+ dissect.hypervisor-3.15.dev1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (72.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5