diff --git a/schema/bom-1.7.xsd b/schema/bom-1.7.xsd index 59111cba..1c8a900b 100644 --- a/schema/bom-1.7.xsd +++ b/schema/bom-1.7.xsd @@ -8295,8 +8295,48 @@ limitations under the License. - A protocol-related cryptographic assets + + DEPRECATED - DO NOT USE. This will be removed in a future version. Use `./relatedCryptographicAssets` instead. + A protocol-related cryptographic asset. + + + + + + + A list of cryptographic assets related to this component. + + + + + + + A cryptographic asset related to this component. + + + + + + + + Specifies the mechanism by which the cryptographic asset is secured by. + Examples: "publicKey", "privateKey", "algorithm" + + + + + + + The bom-ref to cryptographic asset. + + + + + + + + diff --git a/tools/src/test/resources/1.7/valid-cryptography-full-1.7.json b/tools/src/test/resources/1.7/valid-cryptography-full-1.7.json index d03b237e..a12f9eb1 100644 --- a/tools/src/test/resources/1.7/valid-cryptography-full-1.7.json +++ b/tools/src/test/resources/1.7/valid-cryptography-full-1.7.json @@ -239,7 +239,13 @@ "algorithm": "ecdsa_secp256r1_sha256" } ] - } + }, + "relatedCryptographicAssets": [ + { + "type": "publicKey", + "ref": "asset-4" + } + ] }, "oid": "oid:1.3.6.1.5.5.7.3.1" } diff --git a/tools/src/test/resources/1.7/valid-cryptography-full-1.7.textproto b/tools/src/test/resources/1.7/valid-cryptography-full-1.7.textproto index 3552caf6..94909e43 100644 --- a/tools/src/test/resources/1.7/valid-cryptography-full-1.7.textproto +++ b/tools/src/test/resources/1.7/valid-cryptography-full-1.7.textproto @@ -231,6 +231,12 @@ components: { algorithm: "ecdsa_secp256r1_sha256" } } + relatedCryptographicAssets: { + assets: { + type: "publicKey" + ref: "asset-4" + } + } } oid: "oid:1.3.6.1.5.5.7.3.1" } diff --git a/tools/src/test/resources/1.7/valid-cryptography-full-1.7.xml b/tools/src/test/resources/1.7/valid-cryptography-full-1.7.xml index 7201e741..4685de3c 100644 --- a/tools/src/test/resources/1.7/valid-cryptography-full-1.7.xml +++ b/tools/src/test/resources/1.7/valid-cryptography-full-1.7.xml @@ -220,6 +220,12 @@ ecdsa_secp256r1_sha256 + + + publicKey + asset-4 + + oid:1.3.6.1.5.5.7.3.1