-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Paul Horton <paul.horton@owasp.org>
- Loading branch information
Showing
6 changed files
with
224 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 108 additions & 0 deletions
108
tests/_data/snapshots/get_bom_v1_6_with_crypto-1.6.json.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
{ | ||
"components": [ | ||
{ | ||
"bom-ref": "26b1ce0f-bec6-4bfe-9db1-03b75a4ed1ec", | ||
"cryptoProperties": { | ||
"assetType": "protocol", | ||
"oid": "an-oid-here", | ||
"protocolProperties": { | ||
"cipherSuites": [ | ||
{ | ||
"identifiers": [ | ||
"TLS_AES_128_CCM_8_SHA256" | ||
], | ||
"name": "TLS_AES_128_CCM_8_SHA256" | ||
}, | ||
{ | ||
"identifiers": [ | ||
"TLS_AES_128_CCM_SHA256" | ||
], | ||
"name": "TLS_AES_128_CCM_SHA256" | ||
}, | ||
{ | ||
"identifiers": [ | ||
"TLS_AES_128_GCM_SHA256" | ||
], | ||
"name": "TLS_AES_128_GCM_SHA256" | ||
}, | ||
{ | ||
"identifiers": [ | ||
"TLS_AES_256_GCM_SHA384" | ||
], | ||
"name": "TLS_AES_256_GCM_SHA384" | ||
}, | ||
{ | ||
"identifiers": [ | ||
"TLS_CHACHA20_POLY1305_SHA256" | ||
], | ||
"name": "TLS_CHACHA20_POLY1305_SHA256" | ||
} | ||
], | ||
"type": "tls", | ||
"version": "1.3" | ||
} | ||
}, | ||
"name": "TLS", | ||
"tags": [ | ||
"protocl", | ||
"tls" | ||
], | ||
"type": "cryptographic-asset", | ||
"version": "v1.3" | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"ref": "26b1ce0f-bec6-4bfe-9db1-03b75a4ed1ec" | ||
} | ||
], | ||
"metadata": { | ||
"timestamp": "2023-01-07T13:44:32.312678+00:00", | ||
"tools": [ | ||
{ | ||
"externalReferences": [ | ||
{ | ||
"type": "build-system", | ||
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/actions" | ||
}, | ||
{ | ||
"type": "distribution", | ||
"url": "https://pypi.org/project/cyclonedx-python-lib/" | ||
}, | ||
{ | ||
"type": "documentation", | ||
"url": "https://cyclonedx-python-library.readthedocs.io/" | ||
}, | ||
{ | ||
"type": "issue-tracker", | ||
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/issues" | ||
}, | ||
{ | ||
"type": "license", | ||
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/LICENSE" | ||
}, | ||
{ | ||
"type": "release-notes", | ||
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/CHANGELOG.md" | ||
}, | ||
{ | ||
"type": "vcs", | ||
"url": "https://github.com/CycloneDX/cyclonedx-python-lib" | ||
}, | ||
{ | ||
"type": "website", | ||
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/#readme" | ||
} | ||
], | ||
"name": "cyclonedx-python-lib", | ||
"vendor": "CycloneDX", | ||
"version": "TESTING" | ||
} | ||
] | ||
}, | ||
"serialNumber": "urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac", | ||
"version": 1, | ||
"$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json", | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.6" | ||
} |
92 changes: 92 additions & 0 deletions
92
tests/_data/snapshots/get_bom_v1_6_with_crypto-1.6.xml.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?xml version="1.0" ?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.6" serialNumber="urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac" version="1"> | ||
<metadata> | ||
<timestamp>2023-01-07T13:44:32.312678+00:00</timestamp> | ||
<tools> | ||
<tool> | ||
<vendor>CycloneDX</vendor> | ||
<name>cyclonedx-python-lib</name> | ||
<version>TESTING</version> | ||
<externalReferences> | ||
<reference type="build-system"> | ||
<url>https://github.com/CycloneDX/cyclonedx-python-lib/actions</url> | ||
</reference> | ||
<reference type="distribution"> | ||
<url>https://pypi.org/project/cyclonedx-python-lib/</url> | ||
</reference> | ||
<reference type="documentation"> | ||
<url>https://cyclonedx-python-library.readthedocs.io/</url> | ||
</reference> | ||
<reference type="issue-tracker"> | ||
<url>https://github.com/CycloneDX/cyclonedx-python-lib/issues</url> | ||
</reference> | ||
<reference type="license"> | ||
<url>https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/LICENSE</url> | ||
</reference> | ||
<reference type="release-notes"> | ||
<url>https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/CHANGELOG.md</url> | ||
</reference> | ||
<reference type="vcs"> | ||
<url>https://github.com/CycloneDX/cyclonedx-python-lib</url> | ||
</reference> | ||
<reference type="website"> | ||
<url>https://github.com/CycloneDX/cyclonedx-python-lib/#readme</url> | ||
</reference> | ||
</externalReferences> | ||
</tool> | ||
</tools> | ||
</metadata> | ||
<components> | ||
<component type="cryptographic-asset" bom-ref="26b1ce0f-bec6-4bfe-9db1-03b75a4ed1ec"> | ||
<name>TLS</name> | ||
<version>v1.3</version> | ||
<cryptoProperties> | ||
<assetType>protocol</assetType> | ||
<protocolProperties> | ||
<type>tls</type> | ||
<version>1.3</version> | ||
<cipherSuites> | ||
<cipherSuite> | ||
<name>TLS_AES_128_CCM_8_SHA256</name> | ||
<identifiers> | ||
<identifier>TLS_AES_128_CCM_8_SHA256</identifier> | ||
</identifiers> | ||
</cipherSuite> | ||
<cipherSuite> | ||
<name>TLS_AES_128_CCM_SHA256</name> | ||
<identifiers> | ||
<identifier>TLS_AES_128_CCM_SHA256</identifier> | ||
</identifiers> | ||
</cipherSuite> | ||
<cipherSuite> | ||
<name>TLS_AES_128_GCM_SHA256</name> | ||
<identifiers> | ||
<identifier>TLS_AES_128_GCM_SHA256</identifier> | ||
</identifiers> | ||
</cipherSuite> | ||
<cipherSuite> | ||
<name>TLS_AES_256_GCM_SHA384</name> | ||
<identifiers> | ||
<identifier>TLS_AES_256_GCM_SHA384</identifier> | ||
</identifiers> | ||
</cipherSuite> | ||
<cipherSuite> | ||
<name>TLS_CHACHA20_POLY1305_SHA256</name> | ||
<identifiers> | ||
<identifier>TLS_CHACHA20_POLY1305_SHA256</identifier> | ||
</identifiers> | ||
</cipherSuite> | ||
</cipherSuites> | ||
</protocolProperties> | ||
<oid>an-oid-here</oid> | ||
</cryptoProperties> | ||
<tags> | ||
<tag>protocl</tag> | ||
<tag>tls</tag> | ||
</tags> | ||
</component> | ||
</components> | ||
<dependencies> | ||
<dependency ref="26b1ce0f-bec6-4bfe-9db1-03b75a4ed1ec"/> | ||
</dependencies> | ||
</bom> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters