diff --git a/README.md b/README.md index 85d72b4227949354371ce19eee32f6c330ccbcd3..4245e36ef9021ebb125a5f0fdc092a1384f3ad0e 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Optional elements: * `loadable` (a boolean, default: `false`), when set to true, the `suit-tool` loads this component in the `load` section. * `compression-info` (a choice of string values), indicates how a payload is compressed. When specified, payload is decompressed before installation. The `install-size` must match the decompressed size of the payload and the install-digest must match the decompressed payload. N.B. The suit-tool does not perform compression. Supported values are: - * `gzip` + * `zlib` * `bzip2` * `deflate` * `lz4` @@ -116,7 +116,7 @@ The `digest-bytes` is a string of either hex- or base64-encoded bytes. The same "loadable" : true, "decompress-on-load" : true, "load-id" : ["02"], - "compression-info" : "gzip", + "compression-info" : "zlib", "load-digest" : { "algorithm-id": "sha256", "digest-bytes": "0011223344556677889901234567899876543210aabbccddeeffabcdeffedcba" diff --git a/suit_tool/manifest.py b/suit_tool/manifest.py index b1f8322bdfb541f57f6b6237050b524adb8b6405..7208d096829331da69e9efd8c44289dfa0223334 100644 --- a/suit_tool/manifest.py +++ b/suit_tool/manifest.py @@ -258,9 +258,9 @@ def SUITBWrapField(c): # s = 'h\'' # s += binascii.b2a_hex(self.to_suit()).decode('utf-8') # s += '\' / ' - s = '<<' + s = '<< ' s += self.v.to_debug(indent) - s += '>>' + s += ' >>' return s return SUITBWrapper @@ -889,13 +889,13 @@ class COSEList(SUITManifestArray): indent1 = indent + one_indent # show digest if hasattr(self,'digest'): - s += indent1 + 'digest: ' + self.digest.to_debug(indent1) + s += indent1 + '/ digest: / ' + self.digest.to_debug(indent1) if len(self.items): s += ',\n' # show signatures # s += indent1 + 'signatures: [\n' indent2 = indent1 - s += ' ,\n'.join([indent2 + 'signature: ' + v.to_debug(indent2) for v in self.items]) + s += ' ,\n'.join([indent2 + '/ signature: / ' + v.to_debug(indent2) for v in self.items]) s += '\n' + indent1 + ']' s += '\n{}]'.format(indent) return s