From 11944c4661cf2359845ad48e2078628c1e1fb4c2 Mon Sep 17 00:00:00 2001 From: Basil Hess Date: Thu, 12 Nov 2026 17:31:36 +0100 Subject: [PATCH 1/7] remove legacy tls/ipsec properties, add new valid/invalid examples and update existing ones Signed-off-by: Basil Hess --- .../cyclonedx-cryptography-2.0.schema.json | 240 +---------------- ...raphy-protocol-composition-member-2.0.json | 43 ++++ ...protocol-composition-missing-role-2.0.json | 46 ++++ ...hy-protocol-composition-selection-2.0.json | 47 ++++ .../valid-cryptography-certificate-2.0.json | 74 ++++-- .../2.0/valid-cryptography-full-2.0.json | 243 ++++++++++++------ ...graphy-protocol-composition-ipsec-2.0.json | 228 ++++++++++++++++ ...tography-protocol-composition-ssh-2.0.json | 138 ++++++++++ ...tography-protocol-composition-tls-2.0.json | 216 ++++++++++++++++ 9 files changed, 932 insertions(+), 343 deletions(-) create mode 100644 tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-member-2.0.json create mode 100644 tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-missing-role-2.0.json create mode 100644 tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-selection-2.0.json create mode 100644 tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ipsec-2.0.json create mode 100644 tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ssh-2.0.json create mode 100644 tools/src/test/resources/2.0/valid-cryptography-protocol-composition-tls-2.0.json diff --git a/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json b/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json index 83d1e2164..b7b502069 100644 --- a/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json @@ -687,70 +687,13 @@ "1.99" ] }, - "cipherSuites": { + "composition": { "type": "array", - "title": "Cipher Suites", - "description": "A list of cipher suites related to the protocol, as configured or observed for the subject of this BOM. The protocol entry in the `cryptography-defs.schema.json` subschema describes what the protocol version itself can support or negotiate.", + "title": "Composition", + "description": "The composition of the protocol as implemented, configured or observed for the subject of this BOM, using the structure of the protocol entries in the `cryptography-defs.schema.json` subschema. A slot corresponds to the slot of the protocol entry, identified by `type` and `version`, with the same role, and with the same selecting party where several slots share the role. The algorithm set holds the algorithms of the subject, named by the variant patterns of the algorithm families. A named bundle keeps the protocol's own identifier, such as an IANA-registered cipher suite, group or algorithm name, also for a single algorithm. The selection and the selection mechanism are those of the subject, which can be narrower than the protocol's: a negotiated slot can be fixed at build time, for example.", "items": { - "$ref": "#/$defs/cipherSuite", - "title": "Cipher Suite" - } - }, - "ikev2TransformTypes": { - "type": "object", - "title": "IKEv2 Transform Types", - "description": "The IKEv2 transform types supported (types 1-4), defined in [RFC 7296 section 3.3.2](https://www.ietf.org/rfc/rfc7296.html#section-3.3.2), and additional properties, as configured or observed for the subject of this BOM. The protocol entry in the `cryptography-defs.schema.json` subschema describes what the protocol version itself can support or negotiate.", - "additionalProperties": false, - "properties": { - "encr": { - "type": "array", - "title": "Encryption Algorithms (ENCR)", - "description": "Transform Type 1: encryption algorithms.", - "items": { - "$ref": "#/$defs/ikeV2Enc", - "title": "Encryption Algorithm (ENCR)" - } - }, - "prf": { - "type": "array", - "title": "Pseudorandom Functions (PRF)", - "description": "Transform Type 2: pseudorandom functions.", - "items": { - "$ref": "#/$defs/ikeV2Prf", - "title": "Pseudorandom Function (PRF)" - } - }, - "integ": { - "type": "array", - "title": "Integrity Algorithms (INTEG)", - "description": "Transform Type 3: integrity algorithms.", - "items": { - "$ref": "#/$defs/ikeV2Integ", - "title": "Integrity Algorithm (INTEG)" - } - }, - "ke": { - "type": "array", - "title": "Key Exchange Methods (KE)", - "description": "Transform Type 4: Key Exchange Method (KE) per [RFC 9370](https://www.ietf.org/rfc/rfc9370.html), formerly called Diffie-Hellman Group (D-H).", - "items": { - "$ref": "#/$defs/ikeV2Ke" - } - }, - "esn": { - "type": "boolean", - "title": "Extended Sequence Number (ESN)", - "description": "Specifies if an Extended Sequence Number (ESN) is used." - }, - "auth": { - "type": "array", - "title": "IKEv2 Authentication methods", - "description": "IKEv2 Authentication method per [RFC9593](https://www.ietf.org/rfc/rfc9593.html).", - "items": { - "$ref": "#/$defs/ikeV2Auth", - "title": "IKEv2 Authentication Method" - } - } + "$ref": "../../cryptography-defs.schema.json#/definitions/compositionSlot", + "title": "Composition Slot" } }, "relatedCryptographicAssets": { @@ -765,179 +708,6 @@ } } }, - "cipherSuite": { - "type": "object", - "title": "Cipher Suite", - "description": "Object representing a cipher suite.", - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "title": "Common Name", - "description": "A common name for the cipher suite.", - "examples": [ - "TLS_DHE_RSA_WITH_AES_128_CCM" - ] - }, - "algorithms": { - "type": "array", - "title": "Related Algorithms", - "description": "A list of algorithms related to the cipher suite.", - "items": { - "$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType", - "title": "Algorithm reference", - "description": "The `refId` to algorithm cryptographic asset." - } - }, - "identifiers": { - "type": "array", - "title": "Cipher Suite Identifiers", - "description": "A list of common identifiers for the cipher suite.", - "items": { - "type": "string", - "title": "identifier", - "description": "Cipher suite identifier.", - "examples": [ - "0xC0", - "0x9E" - ] - } - }, - "tlsGroups": { - "type": "array", - "title": "TLS Groups", - "description": "A list of TLS named groups (formerly known as curves) for this cipher suite. These groups define the parameters for key exchange algorithms like ECDHE.", - "items": { - "type": "string", - "title": "Group Name", - "description": "The name of the TLS group.", - "examples": [ - "x25519", - "ffdhe2048" - ] - } - }, - "tlsSignatureSchemes": { - "type": "array", - "title": "TLS Signature Schemes", - "description": "A list of signature schemes supported for cipher suite. These schemes specify the algorithms used for digital signatures in TLS handshakes and certificate verification.", - "items": { - "type": "string", - "title": "Signature Scheme", - "description": "The name of the TLS signature scheme.", - "examples": [ - "ecdsa_secp256r1_sha256", - "rsa_pss_rsae_sha256", - "ed25519" - ] - } - } - } - }, - "ikeV2Enc": { - "type": "object", - "title": "Encryption Algorithm (ENCR)", - "description": "Object representing an encryption algorithm (ENCR).", - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "A name for the encryption method.", - "examples": [ - "ENCR_AES_GCM_16" - ] - }, - "keyLength": { - "type": "integer", - "title": "Encryption algorithm key length", - "description": "The key length of the encryption algorithm." - }, - "algorithm": { - "$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType", - "title": "Algorithm reference", - "description": "The `refId` to algorithm cryptographic asset." - } - } - }, - "ikeV2Prf": { - "type": "object", - "title": "Pseudorandom Function (PRF)", - "description": "Object representing a pseudorandom function (PRF).", - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "A name for the pseudorandom function.", - "examples": [ - "PRF_HMAC_SHA2_256" - ] - }, - "algorithm": { - "$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType", - "title": "Algorithm reference", - "description": "The `refId` to algorithm cryptographic asset." - } - } - }, - "ikeV2Integ": { - "type": "object", - "title": "Integrity Algorithm (INTEG)", - "description": "Object representing an integrity algorithm (INTEG).", - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "A name for the integrity algorithm.", - "examples": [ - "AUTH_HMAC_SHA2_256_128" - ] - }, - "algorithm": { - "$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType", - "title": "Algorithm reference", - "description": "The `refId` to algorithm cryptographic asset." - } - } - }, - "ikeV2Ke": { - "type": "object", - "title": "Key Exchange Method (KE)", - "description": "Object representing a key exchange method (KE).", - "additionalProperties": false, - "properties": { - "group": { - "type": "integer", - "title": "Group Identifier", - "description": "A group identifier for the key exchange algorithm." - }, - "algorithm": { - "$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType", - "title": "Algorithm reference", - "description": "The `refId` to algorithm cryptographic asset." - } - } - }, - "ikeV2Auth": { - "type": "object", - "title": "IKEv2 Authentication method", - "description": "Object representing a IKEv2 Authentication method.", - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "title": "Name", - "description": "A name for the authentication method." - }, - "algorithm": { - "$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType", - "title": "Algorithm reference", - "description": "The `refId` to algorithm cryptographic asset." - } - } - }, "cryptographicFunction": { "title": "Cryptographic Function", "description": "A cryptographic function or usage.", diff --git a/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-member-2.0.json b/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-member-2.0.json new file mode 100644 index 000000000..bd205e22b --- /dev/null +++ b/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-member-2.0.json @@ -0,0 +1,43 @@ +{ + "$schema": "https://cyclonedx.org/schema/2.0/cyclonedx-2.0.schema.json", + "specFormat": "CycloneDX", + "specVersion": "2.0", + "version": 1, + "serialNumber": "urn:uuid:6136f063-ade0-4403-9623-8e3e05e8946e", + "inventories": [ + { + "subject": { + "refId": "subject-1", + "type": "application", + "name": "Acme Application", + "version": "1.0" + }, + "components": [ + { + "type": "cryptographic-asset", + "refId": "protocol-tls", + "name": "TLS", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "tls", + "version": "1.3", + "composition": [ + { + "role": "key-exchange", + "selection": "one-of", + "selectedBy": "negotiation", + "algorithmSet": [ + { + "name": "X25519MLKEM768" + } + ] + } + ] + } + } + } + ] + } + ] +} diff --git a/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-missing-role-2.0.json b/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-missing-role-2.0.json new file mode 100644 index 000000000..79e3f57da --- /dev/null +++ b/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-missing-role-2.0.json @@ -0,0 +1,46 @@ +{ + "$schema": "https://cyclonedx.org/schema/2.0/cyclonedx-2.0.schema.json", + "specFormat": "CycloneDX", + "specVersion": "2.0", + "version": 1, + "serialNumber": "urn:uuid:6836c1f4-a4bf-46f6-9639-4b5ba85f3c58", + "inventories": [ + { + "subject": { + "refId": "subject-1", + "type": "application", + "name": "Acme Application", + "version": "1.0" + }, + "components": [ + { + "type": "cryptographic-asset", + "refId": "protocol-tls", + "name": "TLS", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "tls", + "version": "1.3", + "composition": [ + { + "selection": "one-of", + "selectedBy": "negotiation", + "algorithmSet": [ + { + "name": "TLS_AES_128_GCM_SHA256", + "algorithms": [ + "AES-128-GCM-128-96", + "HKDF-SHA-256" + ] + } + ] + } + ] + } + } + } + ] + } + ] +} diff --git a/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-selection-2.0.json b/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-selection-2.0.json new file mode 100644 index 000000000..ed644883c --- /dev/null +++ b/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-selection-2.0.json @@ -0,0 +1,47 @@ +{ + "$schema": "https://cyclonedx.org/schema/2.0/cyclonedx-2.0.schema.json", + "specFormat": "CycloneDX", + "specVersion": "2.0", + "version": 1, + "serialNumber": "urn:uuid:61c2f9c1-f0eb-47c3-8f87-6e0358871629", + "inventories": [ + { + "subject": { + "refId": "subject-1", + "type": "application", + "name": "Acme Application", + "version": "1.0" + }, + "components": [ + { + "type": "cryptographic-asset", + "refId": "protocol-tls", + "name": "TLS", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "tls", + "version": "1.3", + "composition": [ + { + "role": "encryption", + "selection": "two-of", + "selectedBy": "negotiation", + "algorithmSet": [ + { + "name": "TLS_AES_128_GCM_SHA256", + "algorithms": [ + "AES-128-GCM-128-96", + "HKDF-SHA-256" + ] + } + ] + } + ] + } + } + } + ] + } + ] +} diff --git a/tools/src/test/resources/2.0/valid-cryptography-certificate-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-certificate-2.0.json index 245e59b84..0015c932d 100644 --- a/tools/src/test/resources/2.0/valid-cryptography-certificate-2.0.json +++ b/tools/src/test/resources/2.0/valid-cryptography-certificate-2.0.json @@ -143,26 +143,46 @@ "protocolProperties": { "type": "tls", "version": "1.3", - "cipherSuites": [ + "composition": [ { - "name": "TLS_AES_256_GCM_SHA384", - "algorithms": [ - "1977d71b-8981-4292-b40d-842a019c2229", - "422fa336-b401-42b7-89b8-8966aa30bca0" - ], - "identifiers": [ - "0x13,0x02" + "role": "encryption", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "server", + "algorithmSet": [ + { + "name": "TLS_AES_256_GCM_SHA384", + "algorithms": [ + "AES-256-GCM-128-96", + "HKDF-SHA-384" + ] + }, + { + "name": "TLS_CHACHA20_POLY1305_SHA256", + "algorithms": [ + "ChaCha20-Poly1305", + "HKDF-SHA-256" + ] + } ] + } + ], + "relatedCryptographicAssets": [ + { + "type": "algorithm", + "ref": "1977d71b-8981-4292-b40d-842a019c2229" }, { - "name": "TLS_CHACHA20_POLY1305_SHA256", - "algorithms": [ - "1af4fc08-5d0d-436e-8058-eeef921983d0", - "6af3066b-ab66-4593-975f-d9ba2c623a89" - ], - "identifiers": [ - "0x13,0x03" - ] + "type": "algorithm", + "ref": "422fa336-b401-42b7-89b8-8966aa30bca0" + }, + { + "type": "algorithm", + "ref": "1af4fc08-5d0d-436e-8058-eeef921983d0" + }, + { + "type": "algorithm", + "ref": "6af3066b-ab66-4593-975f-d9ba2c623a89" } ] }, @@ -193,24 +213,23 @@ } }, { - "name": "SHA-384", + "name": "HKDF-SHA-384", "type": "cryptographic-asset", "refId": "422fa336-b401-42b7-89b8-8966aa30bca0", "cryptoProperties": { "assetType": "algorithm", "algorithmProperties": { - "primitive": "hash", - "algorithmFamily": "SHA-2", - "parameterSetIdentifier": "384", + "primitive": "kdf", + "algorithmFamily": "HKDF", "executionEnvironment": "software-plain-ram", "implementationPlatform": [ "x86_64" ], "cryptoFunctions": [ - "digest" + "keyderive" ] }, - "oid": "2.16.840.1.101.3.4.2.2" + "oid": "1.2.840.113549.1.9.16.3.29" } }, { @@ -236,24 +255,23 @@ } }, { - "name": "SHA-256", + "name": "HKDF-SHA-256", "type": "cryptographic-asset", "refId": "6af3066b-ab66-4593-975f-d9ba2c623a89", "cryptoProperties": { "assetType": "algorithm", "algorithmProperties": { - "primitive": "hash", - "algorithmFamily": "SHA-2", - "parameterSetIdentifier": "256", + "primitive": "kdf", + "algorithmFamily": "HKDF", "executionEnvironment": "software-plain-ram", "implementationPlatform": [ "x86_64" ], "cryptoFunctions": [ - "digest" + "keyderive" ] }, - "oid": "2.16.840.1.101.3.4.2.1" + "oid": "1.2.840.113549.1.9.16.3.28" } } ] diff --git a/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json index 851c8f291..05e15eaed 100644 --- a/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json +++ b/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json @@ -86,19 +86,18 @@ { "ref": "cert-fips140-3-l1" } ], "type": "cryptographic-asset", - "refId": "algorithm-sha256", - "name": "SHA-256", + "refId": "algorithm-hkdf-sha256", + "name": "HKDF-SHA-256", "cryptoProperties": { "assetType": "algorithm", "algorithmProperties": { - "primitive": "hash", - "algorithmFamily": "SHA-2", - "parameterSetIdentifier": "256", + "primitive": "kdf", + "algorithmFamily": "HKDF", "executionEnvironment": "software-plain-ram", "implementationPlatform": [ "x86_64" ], - "cryptoFunctions": ["digest"] + "cryptoFunctions": ["keyderive"] }, - "oid": "2.16.840.1.101.3.4.2.1" + "oid": "1.2.840.113549.1.9.16.3.28" } }, { @@ -106,19 +105,18 @@ { "ref": "cert-fips140-3-l1" } ], "type": "cryptographic-asset", - "refId": "algorithm-sha384", - "name": "SHA-384", + "refId": "algorithm-hkdf-sha384", + "name": "HKDF-SHA-384", "cryptoProperties": { "assetType": "algorithm", "algorithmProperties": { - "primitive": "hash", - "algorithmFamily": "SHA-2", - "parameterSetIdentifier": "384", + "primitive": "kdf", + "algorithmFamily": "HKDF", "executionEnvironment": "software-plain-ram", "implementationPlatform": [ "x86_64" ], - "cryptoFunctions": ["digest"] + "cryptoFunctions": ["keyderive"] }, - "oid": "2.16.840.1.101.3.4.2.2" + "oid": "1.2.840.113549.1.9.16.3.29" } }, { @@ -162,13 +160,32 @@ "oid": "1.2.840.113549.1.9.16.3.18" } }, + { + "certifications": [ + { "ref": "cert-fips140-3-l1" } + ], + "type": "cryptographic-asset", + "refId": "algorithm-hmac-sha256", + "name": "HMAC-SHA-256", + "cryptoProperties": { + "assetType": "algorithm", + "algorithmProperties": { + "primitive": "mac", + "algorithmFamily": "HMAC", + "executionEnvironment": "software-plain-ram", + "implementationPlatform": [ "x86_64" ], + "cryptoFunctions": ["tag"] + }, + "oid": "1.2.840.113549.2.9" + } + }, { "certifications": [ { "ref": "cert-fips140-3-l1" } ], "type": "cryptographic-asset", "refId": "algorithm-ffdh-group14", - "name": "FFDH Group 14", + "name": "FFDHE-modp2048", "cryptoProperties": { "assetType": "algorithm", "algorithmProperties": { @@ -187,7 +204,7 @@ ], "type": "cryptographic-asset", "refId": "algorithm-ecdsa-p256", - "name": "ECDSA-P256", + "name": "ECDSA-secp256r1-SHA-256", "cryptoProperties": { "assetType": "algorithm", "algorithmProperties": { @@ -352,72 +369,37 @@ "protocolProperties": { "type": "tls", "version": "1.3", - "cipherSuites": [ - { - "name": "TLS_AES_128_GCM_SHA256", - "algorithms": [ - "algorithm-aes-128-gcm", - "algorithm-sha256" - ], - "identifiers": [ - "0x13,0x01" - ] - }, - { - "name": "TLS_AES_256_GCM_SHA384", - "algorithms": [ - "algorithm-aes-256-gcm", - "algorithm-sha384" - ], - "identifiers": [ - "0x13,0x02" - ] - }, + "composition": [ { - "name": "TLS_CHACHA20_POLY1305_SHA256", - "algorithms": [ - "algorithm-chacha20-poly1305", - "algorithm-sha256" - ], - "identifiers": [ - "0x13,0x03" + "role": "encryption", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "server", + "algorithmSet": [ + { + "name": "TLS_AES_128_GCM_SHA256", + "algorithms": [ + "AES-128-GCM-128-96", + "HKDF-SHA-256" + ] + }, + { + "name": "TLS_AES_256_GCM_SHA384", + "algorithms": [ + "AES-256-GCM-128-96", + "HKDF-SHA-384" + ] + }, + { + "name": "TLS_CHACHA20_POLY1305_SHA256", + "algorithms": [ + "ChaCha20-Poly1305", + "HKDF-SHA-256" + ] + } ] } ], - "ikev2TransformTypes": { - "encr": [ - { - "name": "ENCR_AES_GCM_16", - "keyLength": 128, - "algorithm": "algorithm-aes-128-gcm" - } - ], - "prf": [ - { - "name": "PRF_HMAC_SHA2_256", - "algorithm": "algorithm-sha256" - } - ], - "integ": [ - { - "name": "AUTH_HMAC_SHA2_256_128", - "algorithm": "algorithm-sha256" - } - ], - "ke": [ - { - "group": 14, - "algorithm": "algorithm-ffdh-group14" - } - ], - "esn": true, - "auth": [ - { - "name": "ECDSA", - "algorithm": "algorithm-ecdsa-p256" - } - ] - }, "relatedCryptographicAssets": [ { "type": "algorithm", @@ -429,11 +411,11 @@ }, { "type": "algorithm", - "ref": "algorithm-sha256" + "ref": "algorithm-hkdf-sha256" }, { "type": "algorithm", - "ref": "algorithm-sha384" + "ref": "algorithm-hkdf-sha384" }, { "type": "algorithm", @@ -443,6 +425,107 @@ }, "oid": "1.3.6.1.5.5.7.3.1" } + }, + { + "type": "cryptographic-asset", + "refId": "protocol-ike-2", + "name": "IKEv2 Configuration", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "ike", + "version": "2", + "composition": [ + { + "role": "encryption", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "responder", + "algorithmSet": [ + { + "name": "ENCR_AES_GCM_16", + "algorithms": [ + "AES-128-GCM-128-96" + ] + } + ] + }, + { + "role": "prf", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "responder", + "algorithmSet": [ + { + "name": "PRF_HMAC_SHA2_256", + "algorithms": [ + "HMAC-SHA-256" + ] + } + ] + }, + { + "role": "integrity", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "responder", + "algorithmSet": [ + { + "name": "AUTH_HMAC_SHA2_256_128", + "algorithms": [ + "HMAC-SHA-256-128" + ] + } + ] + }, + { + "role": "key-exchange", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "responder", + "algorithmSet": [ + { + "name": "2048-bit MODP Group", + "algorithms": [ + "FFDHE-modp2048" + ] + } + ] + }, + { + "role": "authentication", + "selection": "one-of", + "selectedBy": "configuration", + "algorithmSet": [ + { + "name": "ECDSA with SHA-256 on the P-256 curve", + "algorithms": [ + "ECDSA-secp256r1-SHA-256" + ] + } + ] + } + ], + "relatedCryptographicAssets": [ + { + "type": "algorithm", + "ref": "algorithm-aes-128-gcm" + }, + { + "type": "algorithm", + "ref": "algorithm-hmac-sha256" + }, + { + "type": "algorithm", + "ref": "algorithm-ffdh-group14" + }, + { + "type": "algorithm", + "ref": "algorithm-ecdsa-p256" + } + ] + } + } } ] } diff --git a/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ipsec-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ipsec-2.0.json new file mode 100644 index 000000000..c415c60fb --- /dev/null +++ b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ipsec-2.0.json @@ -0,0 +1,228 @@ +{ + "$schema": "https://cyclonedx.org/schema/2.0/cyclonedx-2.0.schema.json", + "specFormat": "CycloneDX", + "specVersion": "2.0", + "version": 1, + "serialNumber": "urn:uuid:37ec656d-b55f-442f-830d-ebd3b48a99a0", + "inventories": [ + { + "subject": { + "refId": "subject-1", + "type": "application", + "name": "Acme VPN Gateway", + "version": "1.0" + }, + "components": [ + { + "type": "cryptographic-asset", + "refId": "protocol-ike-configured", + "name": "IKEv2 configured IKE SA", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "ike", + "version": "2", + "composition": [ + { + "role": "encryption", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "responder", + "algorithmSet": [ + { + "name": "ENCR_AES_GCM_16", + "algorithms": [ + "AES-256-GCM-128-96" + ] + } + ] + }, + { + "role": "prf", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "responder", + "algorithmSet": [ + { + "name": "PRF_HMAC_SHA2_256", + "algorithms": [ + "HMAC-SHA-256" + ] + } + ] + }, + { + "role": "key-exchange", + "selection": "any-of", + "selectedBy": "negotiation", + "selectingParty": "responder", + "algorithmSet": [ + { + "name": "256-bit random ECP group", + "algorithms": [ + "ECDHE-secp256r1" + ] + }, + { + "name": "ml-kem-768", + "algorithms": [ + "ML-KEM-768" + ] + } + ] + }, + { + "role": "authentication", + "selection": "one-of", + "selectedBy": "configuration", + "algorithmSet": [ + { + "name": "ECDSA with SHA-256 on the P-256 curve", + "algorithms": [ + "ECDSA-secp256r1-SHA-256" + ] + } + ] + } + ] + } + } + }, + { + "type": "cryptographic-asset", + "refId": "protocol-esp-child-a-configured", + "name": "ESP Child SA A (site-to-site), configured", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "esp", + "composition": [ + { + "role": "encryption", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "responder", + "algorithmSet": [ + { + "name": "ENCR_AES_GCM_16", + "algorithms": [ + "AES-256-GCM-128-96" + ] + } + ] + } + ] + } + } + }, + { + "type": "cryptographic-asset", + "refId": "protocol-esp-child-b-configured", + "name": "ESP Child SA B (remote-access), configured", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "esp", + "composition": [ + { + "role": "encryption", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "responder", + "algorithmSet": [ + { + "name": "ENCR_AES_GCM_16", + "algorithms": [ + "AES-128-GCM-128-96" + ] + } + ] + } + ] + } + } + }, + { + "type": "cryptographic-asset", + "refId": "protocol-esp-child-a-observed", + "name": "ESP Child SA A (site-to-site), observed", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "esp", + "composition": [ + { + "role": "encryption", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "responder", + "algorithmSet": [ + { + "name": "ENCR_AES_GCM_16", + "algorithms": [ + "AES-256-GCM-128-96" + ] + } + ] + } + ] + } + } + }, + { + "type": "cryptographic-asset", + "refId": "protocol-ipsec", + "name": "IPsec", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "ipsec", + "version": "3", + "composition": [ + { + "role": "key-management", + "selection": "one-of", + "selectedBy": "configuration", + "algorithmSet": [ + { + "protocol": "ike", + "version": "2" + } + ] + }, + { + "role": "packet-protection", + "selection": "any-of", + "selectedBy": "configuration", + "algorithmSet": [ + { + "protocol": "esp" + } + ] + } + ], + "relatedCryptographicAssets": [ + { + "type": "protocol", + "ref": "protocol-ike-configured" + }, + { + "type": "protocol", + "ref": "protocol-esp-child-a-configured" + }, + { + "type": "protocol", + "ref": "protocol-esp-child-b-configured" + }, + { + "type": "protocol", + "ref": "protocol-esp-child-a-observed" + } + ] + } + } + } + ] + } + ] +} diff --git a/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ssh-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ssh-2.0.json new file mode 100644 index 000000000..6dc1a0f3f --- /dev/null +++ b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ssh-2.0.json @@ -0,0 +1,138 @@ +{ + "$schema": "https://cyclonedx.org/schema/2.0/cyclonedx-2.0.schema.json", + "specFormat": "CycloneDX", + "specVersion": "2.0", + "version": 1, + "serialNumber": "urn:uuid:3b79e304-098a-4221-a12d-795a0ec59329", + "inventories": [ + { + "subject": { + "refId": "subject-1", + "type": "application", + "name": "Acme Server", + "version": "1.0" + }, + "components": [ + { + "type": "cryptographic-asset", + "refId": "protocol-ssh-server", + "name": "SSH server", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "ssh", + "version": "2.0", + "composition": [ + { + "role": "key-exchange", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "client", + "algorithmSet": [ + { + "name": "mlkem768x25519-sha256", + "algorithms": [ + "ML-KEM-768", + "x25519", + "SHA-256" + ] + }, + { + "name": "curve25519-sha256", + "algorithms": [ + "x25519", + "SHA-256" + ] + } + ] + }, + { + "role": "signature", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "client", + "algorithmSet": [ + { + "name": "ssh-ed25519", + "algorithms": [ + "Ed25519" + ] + }, + { + "name": "rsa-sha2-512", + "algorithms": [ + "RSA-PKCS1-1.5-SHA-512" + ] + } + ] + }, + { + "role": "encryption", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "client", + "algorithmSet": [ + { + "name": "chacha20-poly1305@openssh.com", + "algorithms": [ + "ChaCha20", + "Poly1305" + ] + }, + { + "name": "aes256-gcm@openssh.com", + "algorithms": [ + "AES-256-GCM-128-96" + ] + } + ] + }, + { + "role": "integrity", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "client", + "algorithmSet": [ + { + "name": "hmac-sha2-256", + "algorithms": [ + "HMAC-SHA-256-256" + ] + } + ] + } + ] + } + } + }, + { + "type": "cryptographic-asset", + "refId": "protocol-ssh-host-key", + "name": "SSH host key, observed", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "ssh", + "composition": [ + { + "role": "signature", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "client", + "algorithmSet": [ + { + "name": "ssh-ed25519", + "algorithms": [ + "Ed25519" + ] + } + ] + } + ] + } + } + } + ] + } + ] +} diff --git a/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-tls-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-tls-2.0.json new file mode 100644 index 000000000..f52732a57 --- /dev/null +++ b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-tls-2.0.json @@ -0,0 +1,216 @@ +{ + "$schema": "https://cyclonedx.org/schema/2.0/cyclonedx-2.0.schema.json", + "specFormat": "CycloneDX", + "specVersion": "2.0", + "version": 1, + "serialNumber": "urn:uuid:f952d999-2ace-4d4b-840c-b5d3c00c3c18", + "inventories": [ + { + "subject": { + "refId": "subject-1", + "type": "application", + "name": "Acme Gateway", + "version": "1.0" + }, + "components": [ + { + "type": "cryptographic-asset", + "refId": "protocol-tls-server", + "name": "TLS 1.3 server", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "tls", + "version": "1.3", + "composition": [ + { + "role": "key-exchange", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "server", + "algorithmSet": [ + { + "name": "X25519MLKEM768", + "algorithms": [ + "x25519", + "ML-KEM-768" + ] + }, + { + "name": "x25519", + "algorithms": [ + "x25519" + ] + }, + { + "name": "secp256r1", + "algorithms": [ + "ECDHE-secp256r1" + ] + }, + { + "name": "ffdhe2048", + "algorithms": [ + "FFDHE-ffdhe2048" + ] + } + ] + }, + { + "role": "signature", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "server", + "algorithmSet": [ + { + "name": "ecdsa_secp256r1_sha256", + "algorithms": [ + "ECDSA-secp256r1-SHA-256" + ] + }, + { + "name": "rsa_pss_rsae_sha256", + "algorithms": [ + "RSA-PSS-SHA-256-MGF1-SHA-256-32" + ] + } + ] + }, + { + "role": "cert-chain-signature", + "selection": "any-of", + "selectedBy": "configuration", + "algorithmSet": [ + { + "name": "ecdsa_secp256r1_sha256", + "algorithms": [ + "ECDSA-secp256r1-SHA-256" + ] + }, + { + "name": "rsa_pkcs1_sha256", + "algorithms": [ + "RSA-PKCS1-1.5-SHA-256" + ] + } + ] + }, + { + "role": "encryption", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "server", + "algorithmSet": [ + { + "name": "TLS_AES_128_GCM_SHA256", + "algorithms": [ + "AES-128-GCM-128-96", + "HKDF-SHA-256" + ] + }, + { + "name": "TLS_AES_256_GCM_SHA384", + "algorithms": [ + "AES-256-GCM-128-96", + "HKDF-SHA-384" + ] + }, + { + "name": "TLS_CHACHA20_POLY1305_SHA256", + "algorithms": [ + "ChaCha20-Poly1305", + "HKDF-SHA-256" + ] + } + ] + } + ] + } + } + }, + { + "type": "cryptographic-asset", + "refId": "protocol-tls-observed", + "name": "TLS endpoint, partly observed", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "tls", + "composition": [ + { + "role": "key-exchange", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "server", + "algorithmSet": [ + { + "name": "x25519", + "algorithms": [ + "x25519" + ] + } + ] + }, + { + "role": "signature", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "server", + "algorithmSet": [ + { + "name": "ed25519", + "algorithms": [ + "Ed25519" + ] + } + ] + } + ] + } + } + }, + { + "type": "cryptographic-asset", + "refId": "protocol-tls-client", + "name": "TLS 1.3 client (embedded)", + "cryptoProperties": { + "assetType": "protocol", + "protocolProperties": { + "type": "tls", + "version": "1.3", + "composition": [ + { + "role": "key-exchange", + "selection": "one-of", + "selectedBy": "build-time", + "algorithmSet": [ + { + "name": "secp256r1", + "algorithms": [ + "ECDHE-secp256r1" + ] + } + ] + }, + { + "role": "encryption", + "selection": "one-of", + "selectedBy": "build-time", + "algorithmSet": [ + { + "name": "TLS_AES_128_CCM_SHA256", + "algorithms": [ + "AES-128-CCM-128-96", + "HKDF-SHA-256" + ] + } + ] + } + ] + } + } + } + ] + } + ] +} From 5a2c69ca410489c2a26354ab70bebc7af61245ca Mon Sep 17 00:00:00 2001 From: Basil Hess Date: Thu, 19 Nov 2026 12:42:20 +0100 Subject: [PATCH 2/7] improvements (partial) Signed-off-by: Basil Hess --- .../cyclonedx-cryptography-2.0.schema.json | 152 +++++++++++++++++- schema/cryptography-defs.schema.json | 14 +- ...raphy-protocol-composition-member-2.0.json | 2 +- .../valid-cryptography-certificate-2.0.json | 20 ++- .../2.0/valid-cryptography-full-2.0.json | 65 +++++--- ...graphy-protocol-composition-ipsec-2.0.json | 28 ++-- ...tography-protocol-composition-ssh-2.0.json | 56 ++++++- ...tography-protocol-composition-tls-2.0.json | 1 + 8 files changed, 277 insertions(+), 61 deletions(-) diff --git a/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json b/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json index b7b502069..d90ba003c 100644 --- a/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json @@ -680,7 +680,7 @@ "version": { "type": "string", "title": "Protocol Version", - "description": "The version of the protocol. Together with the type, it identifies the corresponding protocol entry, by exact match, in the `cryptography-defs.schema.json` subschema.", + "description": "The version of the protocol. Together with the type, it identifies the corresponding entry in the cryptography registry (`cryptography-defs.json`) when an exact match exists.", "examples": [ "1.0", "1.2", @@ -690,9 +690,9 @@ "composition": { "type": "array", "title": "Composition", - "description": "The composition of the protocol as implemented, configured or observed for the subject of this BOM, using the structure of the protocol entries in the `cryptography-defs.schema.json` subschema. A slot corresponds to the slot of the protocol entry, identified by `type` and `version`, with the same role, and with the same selecting party where several slots share the role. The algorithm set holds the algorithms of the subject, named by the variant patterns of the algorithm families. A named bundle keeps the protocol's own identifier, such as an IANA-registered cipher suite, group or algorithm name, also for a single algorithm. The selection and the selection mechanism are those of the subject, which can be narrower than the protocol's: a negotiated slot can be fixed at build time, for example.", + "description": "The composition of the protocol as implemented, configured or observed for the subject of this BOM. Roles and selection semantics are shared with the protocol registry. Algorithm names describe registry variants; they do not identify components in the BOM. Explicit references identify BOM assets. A missing protocol version, registry entry or matching slot does not prevent reporting a composition and shall not be interpreted as absence of the capability. Matching by role and selecting party is possible only when it identifies a unique registry slot; otherwise the match remains unresolved.", "items": { - "$ref": "../../cryptography-defs.schema.json#/definitions/compositionSlot", + "$ref": "#/$defs/protocolCompositionSlot", "title": "Composition Slot" } }, @@ -708,6 +708,152 @@ } } }, + "protocolCompositionSlot": { + "type": "object", + "title": "Protocol Composition Slot", + "description": "A functional slot of the subject protocol. Use the role spelling from the registry entry when a matching slot exists. Selection describes how many members are used. A single observed member does not establish that no other options are supported.", + "additionalProperties": false, + "properties": { + "role": { + "$ref": "../../cryptography-defs.schema.json#/definitions/compositionSlot/properties/role" + }, + "selection": { + "$ref": "../../cryptography-defs.schema.json#/definitions/compositionSlot/properties/selection" + }, + "selectedBy": { + "$ref": "../../cryptography-defs.schema.json#/definitions/compositionSlot/properties/selectedBy" + }, + "selectingParty": { + "$ref": "../../cryptography-defs.schema.json#/definitions/compositionSlot/properties/selectingParty" + }, + "algorithmSet": { + "type": "array", + "minItems": 1, + "title": "Algorithm Set", + "description": "The known options for this slot. Each option is an algorithm, a named or identified bundle, or a sub-protocol.", + "items": { + "$ref": "#/$defs/protocolCompositionMember" + } + } + }, + "required": [ + "role", + "selection", + "algorithmSet" + ] + }, + "protocolCompositionMember": { + "title": "Protocol Composition Member", + "oneOf": [ + { + "$ref": "#/$defs/protocolCompositionAlgorithm" + }, + { + "type": "object", + "title": "Protocol Composition Option", + "description": "An option selected as one unit, such as a cipher suite or hybrid group. Report its protocol name, identifier or both. Omit algorithms if the constituent algorithms are unknown. When supplied, they are used together.", + "additionalProperties": false, + "properties": { + "name": { + "type": "string", + "minLength": 1, + "title": "Protocol Name", + "description": "The protocol-specific name of this option." + }, + "identifier": { + "type": "string", + "minLength": 1, + "title": "Protocol Identifier", + "description": "The value assigned to this option by the protocol in this composition slot. Preserve the spelling and case of textual identifiers. Encode numeric codepoints as unsigned decimal strings without leading zeroes, except for zero itself. The identifier may be omitted when name already contains the protocol identifier." + }, + "algorithms": { + "type": "array", + "minItems": 1, + "title": "Bundled Algorithms", + "description": "The algorithms used together by this option, when known.", + "items": { + "$ref": "#/$defs/protocolCompositionAlgorithm" + } + }, + "relatedCryptographicAssets": { + "$ref": "#/$defs/protocolCompositionAssetLinks" + } + }, + "anyOf": [ + { "required": ["name"], "properties": { "name": true } }, + { "required": ["identifier"], "properties": { "identifier": true } } + ] + }, + { + "type": "object", + "title": "Protocol Asset Reference", + "description": "A sub-protocol identified by family and optionally version, with an optional reference to the specific protocol asset described in this BOM.", + "additionalProperties": false, + "properties": { + "protocol": { + "$ref": "../../cryptography-defs.schema.json#/definitions/protocolFamiliesEnum" + }, + "version": { + "type": "string", + "minLength": 1, + "title": "Version", + "description": "The version of the sub-protocol." + }, + "ref": { + "$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType", + "title": "Protocol Reference", + "description": "Reference to a protocol component in this BOM. Its protocol family and any stated version shall agree with this member." + }, + "relatedCryptographicAssets": { + "$ref": "#/$defs/protocolCompositionAssetLinks" + } + }, + "required": [ + "protocol" + ] + } + ] + }, + "protocolCompositionAssetLinks": { + "type": "array", + "title": "Composition Member Asset Links", + "description": "References to assets associated with this composition member, such as its keys or certificates.", + "items": { + "type": "object", + "allOf": [{ "$ref": "#/$defs/relatedCryptographicAsset" }], + "properties": { "ref": true }, + "required": ["ref"], + "unevaluatedProperties": false + } + }, + "protocolCompositionAlgorithm": { + "title": "Composition Algorithm", + "description": "A registry variant name or a reference to an algorithm component in this BOM.", + "oneOf": [ + { + "$ref": "../../cryptography-defs.schema.json#/definitions/algorithmName" + }, + { + "type": "object", + "title": "Algorithm Asset Reference", + "additionalProperties": false, + "properties": { + "name": { + "$ref": "../../cryptography-defs.schema.json#/definitions/algorithmName", + "description": "The registry variant name, when known. If a name and reference are both supplied, they shall describe the same algorithm and compatible parameters. The referenced component display name need not equal this name." + }, + "ref": { + "$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType", + "title": "Algorithm Reference", + "description": "Reference to a component with cryptoProperties.assetType=\"algorithm\" in this BOM. Reference existence and asset type require semantic validation." + } + }, + "required": [ + "ref" + ] + } + ] + }, "cryptographicFunction": { "title": "Cryptographic Function", "description": "A cryptographic function or usage.", diff --git a/schema/cryptography-defs.schema.json b/schema/cryptography-defs.schema.json index 2203583d2..ba13b5e87 100644 --- a/schema/cryptography-defs.schema.json +++ b/schema/cryptography-defs.schema.json @@ -789,6 +789,12 @@ "algorithmSet" ] }, + "algorithmName": { + "type": "string", + "minLength": 1, + "title": "Algorithm Name", + "description": "The concrete algorithm name. The name shall match at least one variant pattern of an algorithm family defined in this document; a name matching no variant pattern does not resolve against this registry." + }, "algorithmSet": { "type": "array", "title": "Algorithm Set", @@ -798,9 +804,7 @@ "description": "A member of an algorithm set: an algorithm name, a named bundle, or a sub-protocol reference.", "oneOf": [ { - "type": "string", - "title": "Algorithm Name", - "description": "The concrete algorithm name. The name shall match at least one variant pattern of an algorithm family defined in this document; a name matching no variant pattern does not resolve against this registry." + "$ref": "#/definitions/algorithmName" }, { "type": "object", @@ -818,9 +822,7 @@ "title": "Bundled Algorithms", "description": "The concrete names of the algorithms composing this bundle, each matching a variant pattern of an algorithm family defined in this document.", "items": { - "type": "string", - "title": "Algorithm Name", - "description": "The concrete algorithm name. The name shall match at least one variant pattern of an algorithm family defined in this document; a name matching no variant pattern does not resolve against this registry." + "$ref": "#/definitions/algorithmName" } } }, diff --git a/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-member-2.0.json b/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-member-2.0.json index bd205e22b..698ad898a 100644 --- a/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-member-2.0.json +++ b/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-member-2.0.json @@ -29,7 +29,7 @@ "selectedBy": "negotiation", "algorithmSet": [ { - "name": "X25519MLKEM768" + "algorithms": ["x25519", "ML-KEM-768"] } ] } diff --git a/tools/src/test/resources/2.0/valid-cryptography-certificate-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-certificate-2.0.json index 0015c932d..f4d33a846 100644 --- a/tools/src/test/resources/2.0/valid-cryptography-certificate-2.0.json +++ b/tools/src/test/resources/2.0/valid-cryptography-certificate-2.0.json @@ -153,15 +153,27 @@ { "name": "TLS_AES_256_GCM_SHA384", "algorithms": [ - "AES-256-GCM-128-96", - "HKDF-SHA-384" + { + "name": "AES-256-GCM-128-96", + "ref": "1977d71b-8981-4292-b40d-842a019c2229" + }, + { + "name": "HKDF-SHA-384", + "ref": "422fa336-b401-42b7-89b8-8966aa30bca0" + } ] }, { "name": "TLS_CHACHA20_POLY1305_SHA256", "algorithms": [ - "ChaCha20-Poly1305", - "HKDF-SHA-256" + { + "name": "ChaCha20-Poly1305", + "ref": "1af4fc08-5d0d-436e-8058-eeef921983d0" + }, + { + "name": "HKDF-SHA-256", + "ref": "6af3066b-ab66-4593-975f-d9ba2c623a89" + } ] } ] diff --git a/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json index 05e15eaed..a781b9c49 100644 --- a/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json +++ b/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json @@ -379,22 +379,40 @@ { "name": "TLS_AES_128_GCM_SHA256", "algorithms": [ - "AES-128-GCM-128-96", - "HKDF-SHA-256" + { + "name": "AES-128-GCM-128-96", + "ref": "algorithm-aes-128-gcm" + }, + { + "name": "HKDF-SHA-256", + "ref": "algorithm-hkdf-sha256" + } ] }, { "name": "TLS_AES_256_GCM_SHA384", "algorithms": [ - "AES-256-GCM-128-96", - "HKDF-SHA-384" + { + "name": "AES-256-GCM-128-96", + "ref": "algorithm-aes-256-gcm" + }, + { + "name": "HKDF-SHA-384", + "ref": "algorithm-hkdf-sha384" + } ] }, { "name": "TLS_CHACHA20_POLY1305_SHA256", "algorithms": [ - "ChaCha20-Poly1305", - "HKDF-SHA-256" + { + "name": "ChaCha20-Poly1305", + "ref": "algorithm-chacha20-poly1305" + }, + { + "name": "HKDF-SHA-256", + "ref": "algorithm-hkdf-sha256" + } ] } ] @@ -445,7 +463,10 @@ { "name": "ENCR_AES_GCM_16", "algorithms": [ - "AES-128-GCM-128-96" + { + "name": "AES-128-GCM-128-96", + "ref": "algorithm-aes-128-gcm" + } ] } ] @@ -459,7 +480,10 @@ { "name": "PRF_HMAC_SHA2_256", "algorithms": [ - "HMAC-SHA-256" + { + "name": "HMAC-SHA-256", + "ref": "algorithm-hmac-sha256" + } ] } ] @@ -473,7 +497,10 @@ { "name": "AUTH_HMAC_SHA2_256_128", "algorithms": [ - "HMAC-SHA-256-128" + { + "name": "HMAC-SHA-256-128", + "ref": "algorithm-hmac-sha256" + } ] } ] @@ -487,20 +514,10 @@ { "name": "2048-bit MODP Group", "algorithms": [ - "FFDHE-modp2048" - ] - } - ] - }, - { - "role": "authentication", - "selection": "one-of", - "selectedBy": "configuration", - "algorithmSet": [ - { - "name": "ECDSA with SHA-256 on the P-256 curve", - "algorithms": [ - "ECDSA-secp256r1-SHA-256" + { + "name": "FFDHE-modp2048", + "ref": "algorithm-ffdh-group14" + } ] } ] @@ -529,4 +546,4 @@ } ] } -} \ No newline at end of file +} diff --git a/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ipsec-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ipsec-2.0.json index c415c60fb..83d00f634 100644 --- a/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ipsec-2.0.json +++ b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ipsec-2.0.json @@ -60,8 +60,9 @@ { "name": "256-bit random ECP group", "algorithms": [ - "ECDHE-secp256r1" - ] + "ECDH-secp256r1" + ], + "identifier": "19" }, { "name": "ml-kem-768", @@ -70,19 +71,6 @@ ] } ] - }, - { - "role": "authentication", - "selection": "one-of", - "selectedBy": "configuration", - "algorithmSet": [ - { - "name": "ECDSA with SHA-256 on the P-256 curve", - "algorithms": [ - "ECDSA-secp256r1-SHA-256" - ] - } - ] } ] } @@ -186,7 +174,8 @@ "algorithmSet": [ { "protocol": "ike", - "version": "2" + "version": "2", + "ref": "protocol-ike-configured" } ] }, @@ -196,7 +185,12 @@ "selectedBy": "configuration", "algorithmSet": [ { - "protocol": "esp" + "protocol": "esp", + "ref": "protocol-esp-child-a-configured" + }, + { + "protocol": "esp", + "ref": "protocol-esp-child-b-configured" } ] } diff --git a/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ssh-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ssh-2.0.json index 6dc1a0f3f..a61aef21a 100644 --- a/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ssh-2.0.json +++ b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ssh-2.0.json @@ -13,6 +13,44 @@ "version": "1.0" }, "components": [ + { + "type": "cryptographic-asset", + "refId": "algorithm-ed25519", + "name": "Ed25519", + "cryptoProperties": { + "assetType": "algorithm", + "algorithmProperties": { + "primitive": "signature", + "algorithmFamily": "EdDSA", + "cryptoFunctions": [ + "sign", + "verify" + ] + }, + "oid": "1.3.101.112" + } + }, + { + "type": "cryptographic-asset", + "refId": "key-ssh-host-ed25519", + "name": "SSH server host key", + "cryptoProperties": { + "assetType": "related-crypto-material", + "relatedCryptoMaterialProperties": { + "type": "private-key", + "size": 256, + "keyUsage": [ + "sign" + ], + "relatedCryptographicAssets": [ + { + "type": "algorithm", + "ref": "algorithm-ed25519" + } + ] + } + } + }, { "type": "cryptographic-asset", "refId": "protocol-ssh-server", @@ -55,7 +93,16 @@ { "name": "ssh-ed25519", "algorithms": [ - "Ed25519" + { + "name": "Ed25519", + "ref": "algorithm-ed25519" + } + ], + "relatedCryptographicAssets": [ + { + "type": "private-key", + "ref": "key-ssh-host-ed25519" + } ] }, { @@ -108,7 +155,7 @@ { "type": "cryptographic-asset", "refId": "protocol-ssh-host-key", - "name": "SSH host key, observed", + "name": "SSH server, host key algorithm observed", "cryptoProperties": { "assetType": "protocol", "protocolProperties": { @@ -121,10 +168,7 @@ "selectingParty": "client", "algorithmSet": [ { - "name": "ssh-ed25519", - "algorithms": [ - "Ed25519" - ] + "name": "ssh-ed25519" } ] } diff --git a/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-tls-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-tls-2.0.json index f52732a57..ce0006c44 100644 --- a/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-tls-2.0.json +++ b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-tls-2.0.json @@ -103,6 +103,7 @@ "algorithmSet": [ { "name": "TLS_AES_128_GCM_SHA256", + "identifier": "4865", "algorithms": [ "AES-128-GCM-128-96", "HKDF-SHA-256" From 1a1c4a6b0d992198946726cc54a01d88c242901f Mon Sep 17 00:00:00 2001 From: Basil Hess Date: Thu, 19 Nov 2026 14:39:44 +0100 Subject: [PATCH 3/7] Align tls registry entry, unify protocol composition structure with cbom part Signed-off-by: Basil Hess --- .../cyclonedx-cryptography-2.0.schema.json | 179 +-- schema/cryptography-defs.json | 1215 ++++++++++++++++- schema/cryptography-defs.schema.json | 194 ++- tools/src/test/js/schema-v2/package.json | 3 +- ...hy-protocol-composition-selection-2.0.json | 2 +- .../valid-cryptography-certificate-2.0.json | 6 +- .../2.0/valid-cryptography-full-2.0.json | 23 +- ...tography-protocol-composition-tls-2.0.json | 4 +- 8 files changed, 1345 insertions(+), 281 deletions(-) diff --git a/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json b/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json index d90ba003c..4a995dc33 100644 --- a/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json @@ -26,7 +26,7 @@ "meta:enum": { "algorithm": "Mathematical function commonly used for data encryption, authentication, and digital signatures.", "certificate": "An electronic document that is used to provide the identity or validate a public key.", - "protocol": "A set of rules and guidelines that govern the behavior and communication with each other.", + "protocol": "Rules for selecting and combining cryptographic algorithms in communication protocols such as TLS or data formats such as X.509.", "related-crypto-material": "Other cryptographic assets related to algorithms, certificates, and protocols such as keys and tokens." } }, @@ -688,13 +688,9 @@ ] }, "composition": { - "type": "array", + "$ref": "../../cryptography-defs.schema.json#/definitions/composition", "title": "Composition", - "description": "The composition of the protocol as implemented, configured or observed for the subject of this BOM. Roles and selection semantics are shared with the protocol registry. Algorithm names describe registry variants; they do not identify components in the BOM. Explicit references identify BOM assets. A missing protocol version, registry entry or matching slot does not prevent reporting a composition and shall not be interpreted as absence of the capability. Matching by role and selecting party is possible only when it identifies a unique registry slot; otherwise the match remains unresolved.", - "items": { - "$ref": "#/$defs/protocolCompositionSlot", - "title": "Composition Slot" - } + "description": "The composition of the protocol as implemented, configured or observed for the subject of this BOM. A single observed option does not establish the full set of supported options. Algorithm names describe registry variants. Explicit references identify BOM assets. A producer may report an option by its observed identifier alone. A missing protocol version, registry entry or matching slot does not prevent reporting a composition and shall not be interpreted as absence of the capability. A slot matches the registry by role and, where needed, selecting party only when the match is unique. An unmatched slot or option remains unresolved." }, "relatedCryptographicAssets": { "$ref": "#/$defs/relatedCryptographicAssets" @@ -708,152 +704,6 @@ } } }, - "protocolCompositionSlot": { - "type": "object", - "title": "Protocol Composition Slot", - "description": "A functional slot of the subject protocol. Use the role spelling from the registry entry when a matching slot exists. Selection describes how many members are used. A single observed member does not establish that no other options are supported.", - "additionalProperties": false, - "properties": { - "role": { - "$ref": "../../cryptography-defs.schema.json#/definitions/compositionSlot/properties/role" - }, - "selection": { - "$ref": "../../cryptography-defs.schema.json#/definitions/compositionSlot/properties/selection" - }, - "selectedBy": { - "$ref": "../../cryptography-defs.schema.json#/definitions/compositionSlot/properties/selectedBy" - }, - "selectingParty": { - "$ref": "../../cryptography-defs.schema.json#/definitions/compositionSlot/properties/selectingParty" - }, - "algorithmSet": { - "type": "array", - "minItems": 1, - "title": "Algorithm Set", - "description": "The known options for this slot. Each option is an algorithm, a named or identified bundle, or a sub-protocol.", - "items": { - "$ref": "#/$defs/protocolCompositionMember" - } - } - }, - "required": [ - "role", - "selection", - "algorithmSet" - ] - }, - "protocolCompositionMember": { - "title": "Protocol Composition Member", - "oneOf": [ - { - "$ref": "#/$defs/protocolCompositionAlgorithm" - }, - { - "type": "object", - "title": "Protocol Composition Option", - "description": "An option selected as one unit, such as a cipher suite or hybrid group. Report its protocol name, identifier or both. Omit algorithms if the constituent algorithms are unknown. When supplied, they are used together.", - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "minLength": 1, - "title": "Protocol Name", - "description": "The protocol-specific name of this option." - }, - "identifier": { - "type": "string", - "minLength": 1, - "title": "Protocol Identifier", - "description": "The value assigned to this option by the protocol in this composition slot. Preserve the spelling and case of textual identifiers. Encode numeric codepoints as unsigned decimal strings without leading zeroes, except for zero itself. The identifier may be omitted when name already contains the protocol identifier." - }, - "algorithms": { - "type": "array", - "minItems": 1, - "title": "Bundled Algorithms", - "description": "The algorithms used together by this option, when known.", - "items": { - "$ref": "#/$defs/protocolCompositionAlgorithm" - } - }, - "relatedCryptographicAssets": { - "$ref": "#/$defs/protocolCompositionAssetLinks" - } - }, - "anyOf": [ - { "required": ["name"], "properties": { "name": true } }, - { "required": ["identifier"], "properties": { "identifier": true } } - ] - }, - { - "type": "object", - "title": "Protocol Asset Reference", - "description": "A sub-protocol identified by family and optionally version, with an optional reference to the specific protocol asset described in this BOM.", - "additionalProperties": false, - "properties": { - "protocol": { - "$ref": "../../cryptography-defs.schema.json#/definitions/protocolFamiliesEnum" - }, - "version": { - "type": "string", - "minLength": 1, - "title": "Version", - "description": "The version of the sub-protocol." - }, - "ref": { - "$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType", - "title": "Protocol Reference", - "description": "Reference to a protocol component in this BOM. Its protocol family and any stated version shall agree with this member." - }, - "relatedCryptographicAssets": { - "$ref": "#/$defs/protocolCompositionAssetLinks" - } - }, - "required": [ - "protocol" - ] - } - ] - }, - "protocolCompositionAssetLinks": { - "type": "array", - "title": "Composition Member Asset Links", - "description": "References to assets associated with this composition member, such as its keys or certificates.", - "items": { - "type": "object", - "allOf": [{ "$ref": "#/$defs/relatedCryptographicAsset" }], - "properties": { "ref": true }, - "required": ["ref"], - "unevaluatedProperties": false - } - }, - "protocolCompositionAlgorithm": { - "title": "Composition Algorithm", - "description": "A registry variant name or a reference to an algorithm component in this BOM.", - "oneOf": [ - { - "$ref": "../../cryptography-defs.schema.json#/definitions/algorithmName" - }, - { - "type": "object", - "title": "Algorithm Asset Reference", - "additionalProperties": false, - "properties": { - "name": { - "$ref": "../../cryptography-defs.schema.json#/definitions/algorithmName", - "description": "The registry variant name, when known. If a name and reference are both supplied, they shall describe the same algorithm and compatible parameters. The referenced component display name need not equal this name." - }, - "ref": { - "$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType", - "title": "Algorithm Reference", - "description": "Reference to a component with cryptoProperties.assetType=\"algorithm\" in this BOM. Reference existence and asset type require semantic validation." - } - }, - "required": [ - "ref" - ] - } - ] - }, "cryptographicFunction": { "title": "Cryptographic Function", "description": "A cryptographic function or usage.", @@ -953,28 +803,7 @@ } }, "relatedCryptographicAsset": { - "type": "object", - "title": "Related Cryptographic Asset", - "description": "A cryptographic asset related to this component.", - "additionalProperties": false, - "properties": { - "type": { - "type": "string", - "title": "Type", - "description": "The kind of referenced cryptographic asset, such as an algorithm, certificate, public key, or private key.", - "examples": [ - "public-key", - "private-key", - "algorithm", - "certificate" - ] - }, - "ref": { - "$ref": "cyclonedx-common-2.0.schema.json#/$defs/refLinkType", - "title": "Reference to cryptographic asset", - "description": "The `refId` to cryptographic asset." - } - } + "$ref": "../../cryptography-defs.schema.json#/definitions/relatedCryptographicAsset" }, "fingerprint": { "title": "Fingerprint", diff --git a/schema/cryptography-defs.json b/schema/cryptography-defs.json index 628e4e580..10a0a317d 100644 --- a/schema/cryptography-defs.json +++ b/schema/cryptography-defs.json @@ -1,6 +1,6 @@ { "$schema": "http://cyclonedx.org/schema/cryptography-defs.schema.json", - "lastUpdated": "2026-08-06T00:00:00Z", + "lastUpdated": "2026-11-19T00:00:00Z", "algorithms": [ { "family": "RSASSA-PKCS1", @@ -4278,7 +4278,7 @@ "protocols": [ { "family": "tls", - "description": "Transport Layer Security (TLS) provides confidentiality, integrity, and authentication for communication over a network.", + "description": "Transport Layer Security (TLS) provides confidentiality, integrity, and authentication for communication over a network. The TLS 1.3 cert-chain-signature slot lists the TLS signature schemes applicable to certificate signatures. An endpoint can advertise its supported subset in signature_algorithms_cert. When that extension is absent, signature_algorithms also applies to certificate signatures.", "standard": [ { "name": "IANA TLS Parameters", @@ -4290,8 +4290,72 @@ "version": "1.3", "standard": [ { - "name": "RFC8446", - "url": "https://doi.org/10.17487/RFC8446" + "name": "RFC9846", + "url": "https://doi.org/10.17487/RFC9846" + }, + { + "name": "RFC7919", + "url": "https://doi.org/10.17487/RFC7919" + }, + { + "name": "RFC8734", + "url": "https://doi.org/10.17487/RFC8734" + }, + { + "name": "RFC8998", + "url": "https://doi.org/10.17487/RFC8998" + }, + { + "name": "RFC9150", + "url": "https://doi.org/10.17487/RFC9150" + }, + { + "name": "RFC9963", + "url": "https://doi.org/10.17487/RFC9963" + }, + { + "name": "RFC10024", + "url": "https://doi.org/10.17487/RFC10024" + }, + { + "name": "SP800-232", + "url": "https://doi.org/10.6028/NIST.SP.800-232" + }, + { + "name": "draft-ietf-tls-mldsa-06", + "url": "https://datatracker.ietf.org/doc/draft-ietf-tls-mldsa/06/" + }, + { + "name": "draft-ietf-tls-mlkem-10", + "url": "https://datatracker.ietf.org/doc/draft-ietf-tls-mlkem/10/" + }, + { + "name": "draft-preussmattsson-tls-mlkem1024-x448-01", + "url": "https://datatracker.ietf.org/doc/draft-preussmattsson-tls-mlkem1024-x448/01/" + }, + { + "name": "draft-reddy-tls-slhdsa-01", + "url": "https://datatracker.ietf.org/doc/draft-reddy-tls-slhdsa/01/" + }, + { + "name": "draft-rosomakho-tls-ecdhe-mlkem512-00", + "url": "https://datatracker.ietf.org/doc/draft-rosomakho-tls-ecdhe-mlkem512/00/" + }, + { + "name": "draft-yang-tls-hybrid-sm2-mlkem-03", + "url": "https://datatracker.ietf.org/doc/draft-yang-tls-hybrid-sm2-mlkem/03/" + }, + { + "name": "TLS Supported Groups", + "url": "https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-8" + }, + { + "name": "TLS SignatureScheme", + "url": "https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-signaturescheme" + }, + { + "name": "TLS Cipher Suites", + "url": "https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-4" } ], "composition": [ @@ -4301,84 +4365,980 @@ "selectedBy": "negotiation", "selectingParty": "server", "algorithmSet": [ - "x25519", - "x448", - "ECDHE-secp256r1", - "ECDHE-secp384r1", { - "name": "X25519MLKEM768", + "name": "secp256r1", + "identifier": "23", + "algorithms": [ + "ECDHE-secp256r1" + ] + }, + { + "name": "secp384r1", + "identifier": "24", + "algorithms": [ + "ECDHE-secp384r1" + ] + }, + { + "name": "secp521r1", + "identifier": "25", + "algorithms": [ + "ECDHE-secp521r1" + ] + }, + { + "name": "x25519", + "identifier": "29", + "algorithms": [ + "x25519" + ] + }, + { + "name": "x448", + "identifier": "30", + "algorithms": [ + "x448" + ] + }, + { + "name": "brainpoolP256r1tls13", + "identifier": "31", + "algorithms": [ + "ECDHE-brainpoolP256r1" + ] + }, + { + "name": "brainpoolP384r1tls13", + "identifier": "32", + "algorithms": [ + "ECDHE-brainpoolP384r1" + ] + }, + { + "name": "brainpoolP512r1tls13", + "identifier": "33", + "algorithms": [ + "ECDHE-brainpoolP512r1" + ] + }, + { + "name": "curveSM2", + "identifier": "41", + "algorithms": [ + "ECDHE-SM2" + ] + }, + { + "name": "ffdhe2048", + "identifier": "256", + "algorithms": [ + "FFDHE-ffdhe2048" + ] + }, + { + "name": "ffdhe3072", + "identifier": "257", + "algorithms": [ + "FFDHE-ffdhe3072" + ] + }, + { + "name": "ffdhe4096", + "identifier": "258", + "algorithms": [ + "FFDHE-ffdhe4096" + ] + }, + { + "name": "ffdhe6144", + "identifier": "259", + "algorithms": [ + "FFDHE-ffdhe6144" + ] + }, + { + "name": "ffdhe8192", + "identifier": "260", + "algorithms": [ + "FFDHE-ffdhe8192" + ] + }, + { + "name": "MLKEM512", + "identifier": "512", + "algorithms": [ + "ML-KEM-512" + ] + }, + { + "name": "MLKEM768", + "identifier": "513", + "algorithms": [ + "ML-KEM-768" + ] + }, + { + "name": "MLKEM1024", + "identifier": "514", + "algorithms": [ + "ML-KEM-1024" + ] + }, + { + "name": "SecP256r1MLKEM512", + "identifier": "4585", + "algorithms": [ + "ECDHE-secp256r1", + "ML-KEM-512" + ] + }, + { + "name": "MLKEM512X25519", + "identifier": "4586", + "algorithms": [ + "ML-KEM-512", + "x25519" + ] + }, + { + "name": "SecP256r1MLKEM768", + "identifier": "4587", + "algorithms": [ + "ECDHE-secp256r1", + "ML-KEM-768" + ] + }, + { + "name": "X25519MLKEM768", + "identifier": "4588", + "algorithms": [ + "x25519", + "ML-KEM-768" + ] + }, + { + "name": "SecP384r1MLKEM1024", + "identifier": "4589", + "algorithms": [ + "ECDHE-secp384r1", + "ML-KEM-1024" + ] + }, + { + "name": "curveSM2MLKEM768", + "identifier": "4590", + "algorithms": [ + "ECDHE-SM2", + "ML-KEM-768" + ] + }, + { + "name": "MLKEM1024X448", + "identifier": "4591", + "algorithms": [ + "ML-KEM-1024", + "x448" + ] + } + ] + }, + { + "role": "signature", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "server", + "algorithmSet": [ + { + "name": "ecdsa_secp256r1_sha256", + "identifier": "1027", + "algorithms": [ + "ECDSA-secp256r1-SHA-256" + ] + }, + { + "name": "ecdsa_secp384r1_sha384", + "identifier": "1283", + "algorithms": [ + "ECDSA-secp384r1-SHA-384" + ] + }, + { + "name": "ecdsa_secp521r1_sha512", + "identifier": "1539", + "algorithms": [ + "ECDSA-secp521r1-SHA-512" + ] + }, + { + "name": "rsa_pss_rsae_sha256", + "identifier": "2052", + "algorithms": [ + "RSA-PSS-SHA-256-MGF1-SHA-256-32" + ] + }, + { + "name": "rsa_pss_rsae_sha384", + "identifier": "2053", + "algorithms": [ + "RSA-PSS-SHA-384-MGF1-SHA-384-48" + ] + }, + { + "name": "rsa_pss_rsae_sha512", + "identifier": "2054", + "algorithms": [ + "RSA-PSS-SHA-512-MGF1-SHA-512-64" + ] + }, + { + "name": "ed25519", + "identifier": "2055", + "algorithms": [ + "Ed25519" + ] + }, + { + "name": "ed448", + "identifier": "2056", + "algorithms": [ + "Ed448" + ] + }, + { + "name": "rsa_pss_pss_sha256", + "identifier": "2057", + "algorithms": [ + "RSA-PSS-SHA-256-MGF1-SHA-256-32" + ] + }, + { + "name": "rsa_pss_pss_sha384", + "identifier": "2058", + "algorithms": [ + "RSA-PSS-SHA-384-MGF1-SHA-384-48" + ] + }, + { + "name": "rsa_pss_pss_sha512", + "identifier": "2059", + "algorithms": [ + "RSA-PSS-SHA-512-MGF1-SHA-512-64" + ] + }, + { + "name": "ecdsa_brainpoolP256r1tls13_sha256", + "identifier": "2074", + "algorithms": [ + "ECDSA-brainpoolP256r1-SHA-256" + ] + }, + { + "name": "ecdsa_brainpoolP384r1tls13_sha384", + "identifier": "2075", + "algorithms": [ + "ECDSA-brainpoolP384r1-SHA-384" + ] + }, + { + "name": "ecdsa_brainpoolP512r1tls13_sha512", + "identifier": "2076", + "algorithms": [ + "ECDSA-brainpoolP512r1-SHA-512" + ] + }, + { + "name": "mldsa44", + "identifier": "2308", + "algorithms": [ + "ML-DSA-44" + ] + }, + { + "name": "mldsa65", + "identifier": "2309", + "algorithms": [ + "ML-DSA-65" + ] + }, + { + "name": "mldsa87", + "identifier": "2310", + "algorithms": [ + "ML-DSA-87" + ] + }, + { + "name": "slhdsa_sha2_128s", + "identifier": "2321", + "algorithms": [ + "SLH-DSA-SHA2-128s" + ] + }, + { + "name": "slhdsa_sha2_128f", + "identifier": "2322", + "algorithms": [ + "SLH-DSA-SHA2-128f" + ] + }, + { + "name": "slhdsa_sha2_192s", + "identifier": "2323", + "algorithms": [ + "SLH-DSA-SHA2-192s" + ] + }, + { + "name": "slhdsa_sha2_192f", + "identifier": "2324", + "algorithms": [ + "SLH-DSA-SHA2-192f" + ] + }, + { + "name": "slhdsa_sha2_256s", + "identifier": "2325", + "algorithms": [ + "SLH-DSA-SHA2-256s" + ] + }, + { + "name": "slhdsa_sha2_256f", + "identifier": "2326", + "algorithms": [ + "SLH-DSA-SHA2-256f" + ] + }, + { + "name": "slhdsa_shake_128s", + "identifier": "2327", + "algorithms": [ + "SLH-DSA-SHAKE-128s" + ] + }, + { + "name": "slhdsa_shake_128f", + "identifier": "2328", + "algorithms": [ + "SLH-DSA-SHAKE-128f" + ] + }, + { + "name": "slhdsa_shake_192s", + "identifier": "2329", + "algorithms": [ + "SLH-DSA-SHAKE-192s" + ] + }, + { + "name": "slhdsa_shake_192f", + "identifier": "2330", + "algorithms": [ + "SLH-DSA-SHAKE-192f" + ] + }, + { + "name": "slhdsa_shake_256s", + "identifier": "2331", + "algorithms": [ + "SLH-DSA-SHAKE-256s" + ] + }, + { + "name": "slhdsa_shake_256f", + "identifier": "2332", + "algorithms": [ + "SLH-DSA-SHAKE-256f" + ] + } + ] + }, + { + "role": "signature", + "selection": "one-of", + "selectedBy": "negotiation", + "selectingParty": "client", + "algorithmSet": [ + { + "name": "ecdsa_secp256r1_sha256", + "identifier": "1027", + "algorithms": [ + "ECDSA-secp256r1-SHA-256" + ] + }, + { + "name": "rsa_pkcs1_sha256_legacy", + "identifier": "1056", + "algorithms": [ + "RSA-PKCS1-1.5-SHA-256" + ] + }, + { + "name": "ecdsa_secp384r1_sha384", + "identifier": "1283", + "algorithms": [ + "ECDSA-secp384r1-SHA-384" + ] + }, + { + "name": "rsa_pkcs1_sha384_legacy", + "identifier": "1312", + "algorithms": [ + "RSA-PKCS1-1.5-SHA-384" + ] + }, + { + "name": "ecdsa_secp521r1_sha512", + "identifier": "1539", + "algorithms": [ + "ECDSA-secp521r1-SHA-512" + ] + }, + { + "name": "rsa_pkcs1_sha512_legacy", + "identifier": "1568", + "algorithms": [ + "RSA-PKCS1-1.5-SHA-512" + ] + }, + { + "name": "rsa_pss_rsae_sha256", + "identifier": "2052", + "algorithms": [ + "RSA-PSS-SHA-256-MGF1-SHA-256-32" + ] + }, + { + "name": "rsa_pss_rsae_sha384", + "identifier": "2053", + "algorithms": [ + "RSA-PSS-SHA-384-MGF1-SHA-384-48" + ] + }, + { + "name": "rsa_pss_rsae_sha512", + "identifier": "2054", + "algorithms": [ + "RSA-PSS-SHA-512-MGF1-SHA-512-64" + ] + }, + { + "name": "ed25519", + "identifier": "2055", + "algorithms": [ + "Ed25519" + ] + }, + { + "name": "ed448", + "identifier": "2056", + "algorithms": [ + "Ed448" + ] + }, + { + "name": "rsa_pss_pss_sha256", + "identifier": "2057", + "algorithms": [ + "RSA-PSS-SHA-256-MGF1-SHA-256-32" + ] + }, + { + "name": "rsa_pss_pss_sha384", + "identifier": "2058", + "algorithms": [ + "RSA-PSS-SHA-384-MGF1-SHA-384-48" + ] + }, + { + "name": "rsa_pss_pss_sha512", + "identifier": "2059", + "algorithms": [ + "RSA-PSS-SHA-512-MGF1-SHA-512-64" + ] + }, + { + "name": "ecdsa_brainpoolP256r1tls13_sha256", + "identifier": "2074", + "algorithms": [ + "ECDSA-brainpoolP256r1-SHA-256" + ] + }, + { + "name": "ecdsa_brainpoolP384r1tls13_sha384", + "identifier": "2075", + "algorithms": [ + "ECDSA-brainpoolP384r1-SHA-384" + ] + }, + { + "name": "ecdsa_brainpoolP512r1tls13_sha512", + "identifier": "2076", + "algorithms": [ + "ECDSA-brainpoolP512r1-SHA-512" + ] + }, + { + "name": "mldsa44", + "identifier": "2308", + "algorithms": [ + "ML-DSA-44" + ] + }, + { + "name": "mldsa65", + "identifier": "2309", + "algorithms": [ + "ML-DSA-65" + ] + }, + { + "name": "mldsa87", + "identifier": "2310", + "algorithms": [ + "ML-DSA-87" + ] + }, + { + "name": "slhdsa_sha2_128s", + "identifier": "2321", + "algorithms": [ + "SLH-DSA-SHA2-128s" + ] + }, + { + "name": "slhdsa_sha2_128f", + "identifier": "2322", + "algorithms": [ + "SLH-DSA-SHA2-128f" + ] + }, + { + "name": "slhdsa_sha2_192s", + "identifier": "2323", + "algorithms": [ + "SLH-DSA-SHA2-192s" + ] + }, + { + "name": "slhdsa_sha2_192f", + "identifier": "2324", + "algorithms": [ + "SLH-DSA-SHA2-192f" + ] + }, + { + "name": "slhdsa_sha2_256s", + "identifier": "2325", + "algorithms": [ + "SLH-DSA-SHA2-256s" + ] + }, + { + "name": "slhdsa_sha2_256f", + "identifier": "2326", + "algorithms": [ + "SLH-DSA-SHA2-256f" + ] + }, + { + "name": "slhdsa_shake_128s", + "identifier": "2327", + "algorithms": [ + "SLH-DSA-SHAKE-128s" + ] + }, + { + "name": "slhdsa_shake_128f", + "identifier": "2328", + "algorithms": [ + "SLH-DSA-SHAKE-128f" + ] + }, + { + "name": "slhdsa_shake_192s", + "identifier": "2329", + "algorithms": [ + "SLH-DSA-SHAKE-192s" + ] + }, + { + "name": "slhdsa_shake_192f", + "identifier": "2330", + "algorithms": [ + "SLH-DSA-SHAKE-192f" + ] + }, + { + "name": "slhdsa_shake_256s", + "identifier": "2331", + "algorithms": [ + "SLH-DSA-SHAKE-256s" + ] + }, + { + "name": "slhdsa_shake_256f", + "identifier": "2332", + "algorithms": [ + "SLH-DSA-SHAKE-256f" + ] + } + ] + }, + { + "role": "cert-chain-signature", + "selection": "any-of", + "selectedBy": "configuration", + "algorithmSet": [ + { + "name": "rsa_pkcs1_sha1", + "identifier": "513", + "algorithms": [ + "RSA-PKCS1-1.5-SHA-1" + ] + }, + { + "name": "ecdsa_sha1", + "identifier": "515", + "algorithms": [ + "ECDSA-SHA-1" + ] + }, + { + "name": "rsa_pkcs1_sha256", + "identifier": "1025", "algorithms": [ - "x25519", - "ML-KEM-768" + "RSA-PKCS1-1.5-SHA-256" ] }, { - "name": "SecP256r1MLKEM768", + "name": "ecdsa_secp256r1_sha256", + "identifier": "1027", "algorithms": [ - "ECDHE-secp256r1", - "ML-KEM-768" + "ECDSA-secp256r1-SHA-256" ] }, { - "name": "SecP384r1MLKEM1024", + "name": "rsa_pkcs1_sha384", + "identifier": "1281", "algorithms": [ - "ECDHE-secp384r1", - "ML-KEM-1024" + "RSA-PKCS1-1.5-SHA-384" + ] + }, + { + "name": "ecdsa_secp384r1_sha384", + "identifier": "1283", + "algorithms": [ + "ECDSA-secp384r1-SHA-384" + ] + }, + { + "name": "rsa_pkcs1_sha512", + "identifier": "1537", + "algorithms": [ + "RSA-PKCS1-1.5-SHA-512" + ] + }, + { + "name": "ecdsa_secp521r1_sha512", + "identifier": "1539", + "algorithms": [ + "ECDSA-secp521r1-SHA-512" + ] + }, + { + "name": "rsa_pss_rsae_sha256", + "identifier": "2052", + "algorithms": [ + "RSA-PSS-SHA-256-MGF1-SHA-256-32" + ] + }, + { + "name": "rsa_pss_rsae_sha384", + "identifier": "2053", + "algorithms": [ + "RSA-PSS-SHA-384-MGF1-SHA-384-48" + ] + }, + { + "name": "rsa_pss_rsae_sha512", + "identifier": "2054", + "algorithms": [ + "RSA-PSS-SHA-512-MGF1-SHA-512-64" + ] + }, + { + "name": "ed25519", + "identifier": "2055", + "algorithms": [ + "Ed25519" + ] + }, + { + "name": "ed448", + "identifier": "2056", + "algorithms": [ + "Ed448" + ] + }, + { + "name": "rsa_pss_pss_sha256", + "identifier": "2057", + "algorithms": [ + "RSA-PSS-SHA-256-MGF1-SHA-256-32" + ] + }, + { + "name": "rsa_pss_pss_sha384", + "identifier": "2058", + "algorithms": [ + "RSA-PSS-SHA-384-MGF1-SHA-384-48" + ] + }, + { + "name": "rsa_pss_pss_sha512", + "identifier": "2059", + "algorithms": [ + "RSA-PSS-SHA-512-MGF1-SHA-512-64" + ] + }, + { + "name": "ecdsa_brainpoolP256r1tls13_sha256", + "identifier": "2074", + "algorithms": [ + "ECDSA-brainpoolP256r1-SHA-256" + ] + }, + { + "name": "ecdsa_brainpoolP384r1tls13_sha384", + "identifier": "2075", + "algorithms": [ + "ECDSA-brainpoolP384r1-SHA-384" + ] + }, + { + "name": "ecdsa_brainpoolP512r1tls13_sha512", + "identifier": "2076", + "algorithms": [ + "ECDSA-brainpoolP512r1-SHA-512" + ] + }, + { + "name": "mldsa44", + "identifier": "2308", + "algorithms": [ + "ML-DSA-44" + ] + }, + { + "name": "mldsa65", + "identifier": "2309", + "algorithms": [ + "ML-DSA-65" + ] + }, + { + "name": "mldsa87", + "identifier": "2310", + "algorithms": [ + "ML-DSA-87" + ] + }, + { + "name": "slhdsa_sha2_128s", + "identifier": "2321", + "algorithms": [ + "SLH-DSA-SHA2-128s" + ] + }, + { + "name": "slhdsa_sha2_128f", + "identifier": "2322", + "algorithms": [ + "SLH-DSA-SHA2-128f" + ] + }, + { + "name": "slhdsa_sha2_192s", + "identifier": "2323", + "algorithms": [ + "SLH-DSA-SHA2-192s" + ] + }, + { + "name": "slhdsa_sha2_192f", + "identifier": "2324", + "algorithms": [ + "SLH-DSA-SHA2-192f" + ] + }, + { + "name": "slhdsa_sha2_256s", + "identifier": "2325", + "algorithms": [ + "SLH-DSA-SHA2-256s" + ] + }, + { + "name": "slhdsa_sha2_256f", + "identifier": "2326", + "algorithms": [ + "SLH-DSA-SHA2-256f" + ] + }, + { + "name": "slhdsa_shake_128s", + "identifier": "2327", + "algorithms": [ + "SLH-DSA-SHAKE-128s" + ] + }, + { + "name": "slhdsa_shake_128f", + "identifier": "2328", + "algorithms": [ + "SLH-DSA-SHAKE-128f" + ] + }, + { + "name": "slhdsa_shake_192s", + "identifier": "2329", + "algorithms": [ + "SLH-DSA-SHAKE-192s" + ] + }, + { + "name": "slhdsa_shake_192f", + "identifier": "2330", + "algorithms": [ + "SLH-DSA-SHAKE-192f" + ] + }, + { + "name": "slhdsa_shake_256s", + "identifier": "2331", + "algorithms": [ + "SLH-DSA-SHAKE-256s" + ] + }, + { + "name": "slhdsa_shake_256f", + "identifier": "2332", + "algorithms": [ + "SLH-DSA-SHAKE-256f" ] } ] }, { - "role": "signature", - "selection": "one-of", - "selectedBy": "negotiation", - "selectingParty": "server", - "algorithmSet": [ - "ECDSA-secp256r1-SHA-256", - "ECDSA-secp384r1-SHA-384", - "RSA-PSS-SHA-256", - "Ed25519", - "ML-DSA-65" - ] - }, - { - "role": "cert-chain-signature", - "selection": "any-of", - "selectedBy": "configuration", - "selectingParty": "server", - "algorithmSet": [ - "ECDSA-secp256r1-SHA-256", - "RSA-PKCS1-1.5-SHA-256", - "RSA-PSS-SHA-256", - "ML-DSA-65" - ] - }, - { - "role": "encryption", + "role": "record-protection", "selection": "one-of", "selectedBy": "negotiation", "selectingParty": "server", "algorithmSet": [ + { + "name": "TLS_ASCONAEAD128_ASCONHASH256", + "identifier": "110", + "algorithms": [ + "Ascon-AEAD128", + "HKDF-Ascon-Hash256" + ] + }, + { + "name": "TLS_ASCONAEAD128_SHA256", + "identifier": "111", + "algorithms": [ + "Ascon-AEAD128", + "HKDF-SHA-256" + ] + }, + { + "name": "TLS_AES_128_GCM_ASCONHASH256", + "identifier": "112", + "algorithms": [ + "AES-128-GCM-128-96", + "HKDF-Ascon-Hash256" + ] + }, + { + "name": "TLS_AES_128_CCM_ASCONHASH256", + "identifier": "113", + "algorithms": [ + "AES-128-CCM-128-96", + "HKDF-Ascon-Hash256" + ] + }, + { + "name": "TLS_SM4_GCM_SM3", + "identifier": "198", + "algorithms": [ + "SM4-GCM-128-96", + "HKDF-SM3" + ] + }, + { + "name": "TLS_SM4_CCM_SM3", + "identifier": "199", + "algorithms": [ + "SM4-CCM-128-96", + "HKDF-SM3" + ] + }, { "name": "TLS_AES_128_GCM_SHA256", + "identifier": "4865", "algorithms": [ - "AES-128-GCM", + "AES-128-GCM-128-96", "HKDF-SHA-256" ] }, { "name": "TLS_AES_256_GCM_SHA384", + "identifier": "4866", "algorithms": [ - "AES-256-GCM", + "AES-256-GCM-128-96", "HKDF-SHA-384" ] }, { "name": "TLS_CHACHA20_POLY1305_SHA256", + "identifier": "4867", "algorithms": [ "ChaCha20-Poly1305", "HKDF-SHA-256" ] + }, + { + "name": "TLS_AES_128_CCM_SHA256", + "identifier": "4868", + "algorithms": [ + "AES-128-CCM-128-96", + "HKDF-SHA-256" + ] + }, + { + "name": "TLS_AES_128_CCM_8_SHA256", + "identifier": "4869", + "algorithms": [ + "AES-128-CCM-64-96", + "HKDF-SHA-256" + ] + }, + { + "name": "TLS_SHA256_SHA256", + "identifier": "49332", + "algorithms": [ + "HMAC-SHA-256-256", + "HKDF-SHA-256" + ] + }, + { + "name": "TLS_SHA384_SHA384", + "identifier": "49333", + "algorithms": [ + "HMAC-SHA-384-384", + "HKDF-SHA-384" + ] } ] } @@ -4402,6 +5362,10 @@ { "name": "RFC7296", "url": "https://doi.org/10.17487/RFC7296" + }, + { + "name": "IKEv2 Key Exchange Method Transform IDs", + "url": "https://www.iana.org/assignments/ikev2-parameters/ikev2-parameters.xhtml#ikev2-parameters-8" } ], "composition": [ @@ -4444,10 +5408,41 @@ "selectedBy": "negotiation", "selectingParty": "responder", "algorithmSet": [ - "ECDH-secp256r1", - "ECDH-secp384r1", - "x25519", - "ML-KEM-768" + { + "name": "2048-bit MODP Group", + "identifier": "14", + "algorithms": [ + "FFDHE-modp2048" + ] + }, + { + "name": "256-bit random ECP group", + "identifier": "19", + "algorithms": [ + "ECDH-secp256r1" + ] + }, + { + "name": "384-bit random ECP group", + "identifier": "20", + "algorithms": [ + "ECDH-secp384r1" + ] + }, + { + "name": "Curve25519", + "identifier": "31", + "algorithms": [ + "x25519" + ] + }, + { + "name": "ml-kem-768", + "identifier": "36", + "algorithms": [ + "ML-KEM-768" + ] + } ] } ] @@ -4504,6 +5499,128 @@ ] } ] + }, + { + "family": "x509", + "description": "X.509 public key certificates, as profiled for the Internet PKI. The composition lists the signature algorithms a certificate can carry.", + "standard": [ + { + "name": "RFC5280", + "url": "https://doi.org/10.17487/RFC5280" + } + ], + "version": [ + { + "version": "3", + "standard": [ + { + "name": "RFC5280", + "url": "https://doi.org/10.17487/RFC5280" + }, + { + "name": "RFC3279", + "url": "https://doi.org/10.17487/RFC3279" + }, + { + "name": "RFC4055", + "url": "https://doi.org/10.17487/RFC4055" + }, + { + "name": "RFC5758", + "url": "https://doi.org/10.17487/RFC5758" + }, + { + "name": "RFC8410", + "url": "https://doi.org/10.17487/RFC8410" + }, + { + "name": "RFC8692", + "url": "https://doi.org/10.17487/RFC8692" + }, + { + "name": "RFC9215", + "url": "https://doi.org/10.17487/RFC9215" + }, + { + "name": "RFC9802", + "url": "https://doi.org/10.17487/RFC9802" + }, + { + "name": "RFC9881", + "url": "https://doi.org/10.17487/RFC9881" + }, + { + "name": "RFC9909", + "url": "https://doi.org/10.17487/RFC9909" + } + ], + "composition": [ + { + "role": "signature", + "selection": "one-of", + "selectedBy": "configuration", + "selectingParty": "issuer", + "algorithmSet": [ + "RSA-PKCS1-1.5-MD2", + "RSA-PKCS1-1.5-MD5", + "RSA-PKCS1-1.5-SHA-1", + "DSA-SHA-1", + "ECDSA-SHA-1", + "RSA-PSS", + "RSA-PKCS1-1.5-SHA-224", + "RSA-PKCS1-1.5-SHA-256", + "RSA-PKCS1-1.5-SHA-384", + "RSA-PKCS1-1.5-SHA-512", + "DSA-SHA-224", + "DSA-SHA-256", + "ECDSA-SHA-224", + "ECDSA-SHA-256", + "ECDSA-SHA-384", + "ECDSA-SHA-512", + "Ed25519", + "Ed448", + "RSA-PSS-SHAKE128-SHAKE128-32", + "RSA-PSS-SHAKE256-SHAKE256-64", + "ECDSA-SHAKE128", + "ECDSA-SHAKE256", + "GOSTR3410-2012-256", + "GOSTR3410-2012-512", + "XMSS-SHA2", + "XMSS-SHAKE", + "XMSSMT-SHA2", + "XMSSMT-SHAKE", + "ML-DSA-44", + "ML-DSA-65", + "ML-DSA-87", + "SLH-DSA-SHA2-128s", + "SLH-DSA-SHA2-128f", + "SLH-DSA-SHA2-192s", + "SLH-DSA-SHA2-192f", + "SLH-DSA-SHA2-256s", + "SLH-DSA-SHA2-256f", + "SLH-DSA-SHAKE-128s", + "SLH-DSA-SHAKE-128f", + "SLH-DSA-SHAKE-192s", + "SLH-DSA-SHAKE-192f", + "SLH-DSA-SHAKE-256s", + "SLH-DSA-SHAKE-256f", + "HashSLH-DSA-SHA2-128s-SHA-256", + "HashSLH-DSA-SHA2-128f-SHA-256", + "HashSLH-DSA-SHA2-192s-SHA-512", + "HashSLH-DSA-SHA2-192f-SHA-512", + "HashSLH-DSA-SHA2-256s-SHA-512", + "HashSLH-DSA-SHA2-256f-SHA-512", + "HashSLH-DSA-SHAKE-128s-SHAKE128", + "HashSLH-DSA-SHAKE-128f-SHAKE128", + "HashSLH-DSA-SHAKE-192s-SHAKE256", + "HashSLH-DSA-SHAKE-192f-SHAKE256", + "HashSLH-DSA-SHAKE-256s-SHAKE256", + "HashSLH-DSA-SHAKE-256f-SHAKE256" + ] + } + ] + } + ] } ] } \ No newline at end of file diff --git a/schema/cryptography-defs.schema.json b/schema/cryptography-defs.schema.json index ba13b5e87..8e7966d59 100644 --- a/schema/cryptography-defs.schema.json +++ b/schema/cryptography-defs.schema.json @@ -278,12 +278,7 @@ "description": "List of standards defining or relating to this protocol version." }, "composition": { - "type": "array", - "title": "Composition", - "description": "The algorithm composition of this protocol version, as a list of functional slots that all apply together. It describes the protocol as specified: the algorithms a conforming implementation can support or negotiate.", - "items": { - "$ref": "#/definitions/compositionSlot" - } + "$ref": "#/definitions/composition" } }, "required": [ @@ -677,7 +672,8 @@ "ssh", "sstp", "tls", - "wpa" + "wpa", + "x509" ], "meta:enum": { "5g-aka": "Authentication and Key Agreement for 5G.", @@ -693,7 +689,8 @@ "ssh": "Secure Shell.", "sstp": "Secure Socket Tunneling Protocol.", "tls": "Transport Layer Security.", - "wpa": "Wi-Fi Protected Access." + "wpa": "Wi-Fi Protected Access.", + "x509": "X.509 public key certificates, as profiled for the Internet PKI. Its composition describes signature algorithms used by the certificate format. Model an individual certificate as a certificate asset." } }, "standardRefs": { @@ -724,16 +721,25 @@ ] } }, + "composition": { + "type": "array", + "title": "Protocol Composition", + "description": "The functional slots of a protocol and the options for each slot. The registry describes the options a conforming implementation can support or negotiate. A BOM reports the options known for its subject. Which slots apply depends on how the protocol is used.", + "items": { + "$ref": "#/definitions/compositionSlot" + } + }, "compositionSlot": { "type": "object", "title": "Composition Slot", - "description": "A functional slot of a protocol, holding the set of algorithms that can fill it. All slots of a composition apply together; within a slot, the selection states how many algorithms of the set are used at runtime.", + "description": "A functional slot of a protocol and the options that can fill it. For example, the TLS client signature slot applies when the client authenticates with a certificate.", "additionalProperties": false, "properties": { "role": { "type": "string", - "title": "Role", - "description": "The functional role this slot fills within the protocol.", + "minLength": 1, + "title": "Composition Role", + "description": "The function this slot serves in the protocol. Producers should use the registry spelling when it applies and qualify producer-defined roles with an organization namespace. A role with no matching registry slot may be reported and remains unresolved.", "examples": [ "authentication", "cert-chain-signature", @@ -747,7 +753,7 @@ }, "selection": { "title": "Selection", - "description": "Specifies how many algorithms of the set are used at runtime: all of them together (all-of), one or more, possibly simultaneously (any-of), or exactly one (one-of).", + "description": "When the protocol uses this slot, all-of means that all members are used together, any-of means that one or more are used, and one-of means that exactly one is used.", "enum": [ "all-of", "any-of", @@ -774,13 +780,12 @@ "server", "initiator", "responder", - "group-creator" + "group-creator", + "issuer" ] }, "algorithmSet": { - "$ref": "#/definitions/algorithmSet", - "title": "Algorithm Set", - "description": "The set of algorithms that can fill this slot." + "$ref": "#/definitions/algorithmSet" } }, "required": [ @@ -789,6 +794,12 @@ "algorithmSet" ] }, + "protocolIdentifier": { + "type": "string", + "minLength": 1, + "title": "Protocol Identifier", + "description": "The value assigned to this option by the protocol in this composition slot. If name and identifier both resolve in the same registry slot, they shall identify the same option. Preserve the spelling and case of textual identifiers. Encode numeric codepoints as unsigned decimal strings without leading zeroes, except for zero itself. The identifier may be omitted when name already contains the protocol identifier." + }, "algorithmName": { "type": "string", "minLength": 1, @@ -797,55 +808,88 @@ }, "algorithmSet": { "type": "array", + "minItems": 1, "title": "Algorithm Set", - "description": "The set of algorithms that can fill a composition slot. How many of them are used at runtime is stated by the slot's selection. Each member is the concrete name of an algorithm, a named bundle of algorithms, or a reference to a sub-protocol.", + "description": "The options for this slot. Each member is an algorithm, a protocol option or a sub-protocol.", "items": { "title": "Algorithm Set Member", - "description": "A member of an algorithm set: an algorithm name, a named bundle, or a sub-protocol reference.", "oneOf": [ { - "$ref": "#/definitions/algorithmName" + "$ref": "#/definitions/compositionAlgorithm" }, { "type": "object", - "title": "Named Bundle", - "description": "A named bundle of algorithms, such as a cipher suite or a hybrid key exchange group: it is selected as one unit, and all bundled algorithms are used together.", + "title": "Protocol Composition Option", + "description": "An option selected as one unit, such as a cipher suite or hybrid group. Registry authors should supply its protocol name, assigned identifier and constituent algorithms where known. BOM producers may report only the name or identifier they observed and may link to specific assets in the BOM.", "additionalProperties": false, "properties": { "name": { "type": "string", - "title": "Bundle Name", - "description": "The common name of the bundle, preferably the identifier assigned by the registry of the protocol, such as the IANA-registered cipher suite or named group, so that names observed in a BOM resolve against this document." + "minLength": 1, + "title": "Protocol Name", + "description": "The protocol-specific name of this option." + }, + "identifier": { + "$ref": "#/definitions/protocolIdentifier" }, "algorithms": { "type": "array", + "minItems": 1, "title": "Bundled Algorithms", - "description": "The concrete names of the algorithms composing this bundle, each matching a variant pattern of an algorithm family defined in this document.", + "description": "The algorithms used together by this option, when known.", "items": { - "$ref": "#/definitions/algorithmName" + "$ref": "#/definitions/compositionAlgorithm" } + }, + "relatedCryptographicAssets": { + "$ref": "#/definitions/compositionAssetLinks" } }, - "required": [ - "name", - "algorithms" + "anyOf": [ + { + "required": [ + "name" + ], + "properties": { + "name": true + } + }, + { + "required": [ + "identifier" + ], + "properties": { + "identifier": true + } + } ] }, { "type": "object", "title": "Sub-Protocol Reference", - "description": "A reference to a sub-protocol, by protocol family and optionally version. The composition of the sub-protocol is given by its own protocol entry in this document, which may itself reference further sub-protocols.", + "description": "A sub-protocol identified by family and optionally version. A BOM can also identify the specific protocol component.", "additionalProperties": false, "properties": { "protocol": { - "$ref": "#/definitions/protocolFamiliesEnum", - "title": "Protocol Family", - "description": "The protocol family of the referenced sub-protocol." + "$ref": "#/definitions/protocolFamiliesEnum" }, "version": { "type": "string", + "minLength": 1, "title": "Version", - "description": "The version of the referenced sub-protocol." + "description": "The version of the sub-protocol." + }, + "ref": { + "title": "Protocol Reference", + "description": "Reference to a protocol component in this BOM. Its family and any stated version shall agree with this member.", + "allOf": [ + { + "$ref": "#/definitions/assetRef" + } + ] + }, + "relatedCryptographicAssets": { + "$ref": "#/definitions/compositionAssetLinks" } }, "required": [ @@ -854,6 +898,90 @@ } ] } + }, + "compositionAlgorithm": { + "title": "Composition Algorithm", + "description": "A registry variant name or a reference to an algorithm component in this BOM.", + "oneOf": [ + { + "$ref": "#/definitions/algorithmName" + }, + { + "type": "object", + "title": "Algorithm Asset Reference", + "additionalProperties": false, + "properties": { + "name": { + "description": "The registry variant name, when known. If a name and reference are both supplied, they shall describe the same algorithm and compatible parameters. The referenced component display name need not equal this name.", + "allOf": [ + { + "$ref": "#/definitions/algorithmName" + } + ] + }, + "ref": { + "title": "Algorithm Reference", + "description": "Reference to a component with cryptoProperties.assetType=\"algorithm\" in this BOM. Reference existence and asset type require semantic validation.", + "allOf": [ + { + "$ref": "#/definitions/assetRef" + } + ] + } + }, + "required": [ + "ref" + ] + } + ] + }, + "compositionAssetLinks": { + "type": "array", + "title": "Composition Member Asset Links", + "description": "References to assets associated with this composition member, such as its keys or certificates.", + "items": { + "allOf": [ + { + "$ref": "#/definitions/relatedCryptographicAsset" + }, + { + "type": "object", + "$comment": "This is a mixin. A composition member must identify the related asset.", + "properties": { "ref": true }, + "required": ["ref"] + } + ] + } + }, + "relatedCryptographicAsset": { + "type": "object", + "title": "Related Cryptographic Asset", + "description": "A cryptographic asset associated with the subject component or composition member.", + "additionalProperties": false, + "properties": { + "type": { + "type": "string", + "title": "Type", + "description": "The kind of referenced cryptographic asset, such as an algorithm, certificate, public key, or private key.", + "examples": [ + "public-key", + "private-key", + "algorithm", + "certificate" + ] + }, + "ref": { + "$ref": "#/definitions/assetRef" + } + } + }, + "assetRef": { + "title": "BOM Asset Reference", + "description": "The refId of a component in the same BOM.", + "$comment": "Uses the value constraints of the CycloneDX 2.0 refLinkType. The registry schema can be validated on its own.", + "type": "string", + "minLength": 1, + "pattern": "^(?!urn:cdx:)" } } } diff --git a/tools/src/test/js/schema-v2/package.json b/tools/src/test/js/schema-v2/package.json index 63b0b645f..059fa3671 100644 --- a/tools/src/test/js/schema-v2/package.json +++ b/tools/src/test/js/schema-v2/package.json @@ -19,6 +19,7 @@ "test:v2.0": "run-s \"test:v2.0:*\"", "test:v2.0:t1-json-schema-validate": "node -- json-schema-validate-tests.js -v 2.0", "test:v2.0:t2-json-schema-semantic": "node -- json-schema-semantic-tests.js -v 2.0", - "test:v2.0:t3-json-schema-functional": "node -- json-schema-functional-tests.js -v 2.0" + "test:v2.0:t3-json-schema-functional": "node -- json-schema-functional-tests.js -v 2.0", + "test:v2.0:t4-protocol-composition": "node --test protocol-composition-tests.js" } } diff --git a/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-selection-2.0.json b/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-selection-2.0.json index ed644883c..49de83227 100644 --- a/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-selection-2.0.json +++ b/tools/src/test/resources/2.0/invalid-cryptography-protocol-composition-selection-2.0.json @@ -24,7 +24,7 @@ "version": "1.3", "composition": [ { - "role": "encryption", + "role": "record-protection", "selection": "two-of", "selectedBy": "negotiation", "algorithmSet": [ diff --git a/tools/src/test/resources/2.0/valid-cryptography-certificate-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-certificate-2.0.json index f4d33a846..7baa9823d 100644 --- a/tools/src/test/resources/2.0/valid-cryptography-certificate-2.0.json +++ b/tools/src/test/resources/2.0/valid-cryptography-certificate-2.0.json @@ -145,13 +145,14 @@ "version": "1.3", "composition": [ { - "role": "encryption", + "role": "record-protection", "selection": "one-of", "selectedBy": "negotiation", "selectingParty": "server", "algorithmSet": [ { "name": "TLS_AES_256_GCM_SHA384", + "identifier": "4866", "algorithms": [ { "name": "AES-256-GCM-128-96", @@ -165,6 +166,7 @@ }, { "name": "TLS_CHACHA20_POLY1305_SHA256", + "identifier": "4867", "algorithms": [ { "name": "ChaCha20-Poly1305", @@ -289,4 +291,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json index a781b9c49..eeb6ef0ed 100644 --- a/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json +++ b/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json @@ -371,13 +371,14 @@ "version": "1.3", "composition": [ { - "role": "encryption", + "role": "record-protection", "selection": "one-of", "selectedBy": "negotiation", "selectingParty": "server", "algorithmSet": [ { "name": "TLS_AES_128_GCM_SHA256", + "identifier": "4865", "algorithms": [ { "name": "AES-128-GCM-128-96", @@ -391,6 +392,7 @@ }, { "name": "TLS_AES_256_GCM_SHA384", + "identifier": "4866", "algorithms": [ { "name": "AES-256-GCM-128-96", @@ -404,6 +406,7 @@ }, { "name": "TLS_CHACHA20_POLY1305_SHA256", + "identifier": "4867", "algorithms": [ { "name": "ChaCha20-Poly1305", @@ -488,23 +491,6 @@ } ] }, - { - "role": "integrity", - "selection": "one-of", - "selectedBy": "negotiation", - "selectingParty": "responder", - "algorithmSet": [ - { - "name": "AUTH_HMAC_SHA2_256_128", - "algorithms": [ - { - "name": "HMAC-SHA-256-128", - "ref": "algorithm-hmac-sha256" - } - ] - } - ] - }, { "role": "key-exchange", "selection": "one-of", @@ -513,6 +499,7 @@ "algorithmSet": [ { "name": "2048-bit MODP Group", + "identifier": "14", "algorithms": [ { "name": "FFDHE-modp2048", diff --git a/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-tls-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-tls-2.0.json index ce0006c44..ec9ef1220 100644 --- a/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-tls-2.0.json +++ b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-tls-2.0.json @@ -96,7 +96,7 @@ ] }, { - "role": "encryption", + "role": "record-protection", "selection": "one-of", "selectedBy": "negotiation", "selectingParty": "server", @@ -194,7 +194,7 @@ ] }, { - "role": "encryption", + "role": "record-protection", "selection": "one-of", "selectedBy": "build-time", "algorithmSet": [ From c8d0136e1a538350b77df35f6834671ca0f869a8 Mon Sep 17 00:00:00 2001 From: Basil Hess Date: Fri, 20 Nov 2026 10:45:27 +0100 Subject: [PATCH 4/7] Align IKEv2 examples with registered transforms and clarify X.509 usage Signed-off-by: Basil Hess --- schema/cryptography-defs.json | 34 +++++++++++++++++-- schema/cryptography-defs.schema.json | 2 +- tools/src/test/js/schema-v2/package.json | 3 +- .../2.0/valid-cryptography-full-2.0.json | 2 ++ ...graphy-protocol-composition-ipsec-2.0.json | 10 ++---- 5 files changed, 38 insertions(+), 13 deletions(-) diff --git a/schema/cryptography-defs.json b/schema/cryptography-defs.json index 10a0a317d..2d88fa277 100644 --- a/schema/cryptography-defs.json +++ b/schema/cryptography-defs.json @@ -1,6 +1,6 @@ { "$schema": "http://cyclonedx.org/schema/cryptography-defs.schema.json", - "lastUpdated": "2026-11-19T00:00:00Z", + "lastUpdated": "2026-11-20T00:00:00Z", "algorithms": [ { "family": "RSASSA-PKCS1", @@ -5363,6 +5363,14 @@ "name": "RFC7296", "url": "https://doi.org/10.17487/RFC7296" }, + { + "name": "IKEv2 Encryption Algorithm Transform IDs", + "url": "https://www.iana.org/assignments/ikev2-parameters/ikev2-parameters.xhtml#ikev2-parameters-5" + }, + { + "name": "IKEv2 Pseudorandom Function Transform IDs", + "url": "https://www.iana.org/assignments/ikev2-parameters/ikev2-parameters.xhtml#ikev2-parameters-6" + }, { "name": "IKEv2 Key Exchange Method Transform IDs", "url": "https://www.iana.org/assignments/ikev2-parameters/ikev2-parameters.xhtml#ikev2-parameters-8" @@ -5377,6 +5385,20 @@ "algorithmSet": [ "AES-128-GCM", "AES-256-GCM", + { + "name": "ENCR_AES_GCM_16", + "identifier": "20", + "algorithms": [ + "AES-128-GCM-128-96" + ] + }, + { + "name": "ENCR_AES_GCM_16", + "identifier": "20", + "algorithms": [ + "AES-256-GCM-128-96" + ] + }, "AES-256-CBC", "ChaCha20-Poly1305" ] @@ -5387,7 +5409,13 @@ "selectedBy": "negotiation", "selectingParty": "responder", "algorithmSet": [ - "HMAC-SHA-256", + { + "name": "PRF_HMAC_SHA2_256", + "identifier": "5", + "algorithms": [ + "HMAC-SHA-256" + ] + }, "HMAC-SHA-384", "AES-CMAC-PRF-128" ] @@ -5404,7 +5432,7 @@ }, { "role": "key-exchange", - "selection": "any-of", + "selection": "one-of", "selectedBy": "negotiation", "selectingParty": "responder", "algorithmSet": [ diff --git a/schema/cryptography-defs.schema.json b/schema/cryptography-defs.schema.json index 8e7966d59..31705d278 100644 --- a/schema/cryptography-defs.schema.json +++ b/schema/cryptography-defs.schema.json @@ -690,7 +690,7 @@ "sstp": "Secure Socket Tunneling Protocol.", "tls": "Transport Layer Security.", "wpa": "Wi-Fi Protected Access.", - "x509": "X.509 public key certificates, as profiled for the Internet PKI. Its composition describes signature algorithms used by the certificate format. Model an individual certificate as a certificate asset." + "x509": "Use this type to describe the X.509 signature algorithms an implementation supports. For an individual certificate, record its signature algorithm on the certificate asset." } }, "standardRefs": { diff --git a/tools/src/test/js/schema-v2/package.json b/tools/src/test/js/schema-v2/package.json index 059fa3671..63b0b645f 100644 --- a/tools/src/test/js/schema-v2/package.json +++ b/tools/src/test/js/schema-v2/package.json @@ -19,7 +19,6 @@ "test:v2.0": "run-s \"test:v2.0:*\"", "test:v2.0:t1-json-schema-validate": "node -- json-schema-validate-tests.js -v 2.0", "test:v2.0:t2-json-schema-semantic": "node -- json-schema-semantic-tests.js -v 2.0", - "test:v2.0:t3-json-schema-functional": "node -- json-schema-functional-tests.js -v 2.0", - "test:v2.0:t4-protocol-composition": "node --test protocol-composition-tests.js" + "test:v2.0:t3-json-schema-functional": "node -- json-schema-functional-tests.js -v 2.0" } } diff --git a/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json index eeb6ef0ed..a05a88683 100644 --- a/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json +++ b/tools/src/test/resources/2.0/valid-cryptography-full-2.0.json @@ -465,6 +465,7 @@ "algorithmSet": [ { "name": "ENCR_AES_GCM_16", + "identifier": "20", "algorithms": [ { "name": "AES-128-GCM-128-96", @@ -482,6 +483,7 @@ "algorithmSet": [ { "name": "PRF_HMAC_SHA2_256", + "identifier": "5", "algorithms": [ { "name": "HMAC-SHA-256", diff --git a/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ipsec-2.0.json b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ipsec-2.0.json index 83d00f634..a36f76e5c 100644 --- a/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ipsec-2.0.json +++ b/tools/src/test/resources/2.0/valid-cryptography-protocol-composition-ipsec-2.0.json @@ -31,6 +31,7 @@ "algorithmSet": [ { "name": "ENCR_AES_GCM_16", + "identifier": "20", "algorithms": [ "AES-256-GCM-128-96" ] @@ -45,6 +46,7 @@ "algorithmSet": [ { "name": "PRF_HMAC_SHA2_256", + "identifier": "5", "algorithms": [ "HMAC-SHA-256" ] @@ -53,7 +55,7 @@ }, { "role": "key-exchange", - "selection": "any-of", + "selection": "one-of", "selectedBy": "negotiation", "selectingParty": "responder", "algorithmSet": [ @@ -63,12 +65,6 @@ "ECDH-secp256r1" ], "identifier": "19" - }, - { - "name": "ml-kem-768", - "algorithms": [ - "ML-KEM-768" - ] } ] } From 6995030f65e472902cc1a8300c5aad2efdc88ef4 Mon Sep 17 00:00:00 2001 From: Basil Hess Date: Tue, 24 Nov 2026 14:29:16 +0100 Subject: [PATCH 5/7] update ref --- schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json b/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json index 4a995dc33..cbdbf7695 100644 --- a/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json @@ -688,7 +688,7 @@ ] }, "composition": { - "$ref": "../../cryptography-defs.schema.json#/definitions/composition", + "$ref": "http://cyclonedx.org/schema/cryptography-defs.schema.json#/definitions/composition", "title": "Composition", "description": "The composition of the protocol as implemented, configured or observed for the subject of this BOM. A single observed option does not establish the full set of supported options. Algorithm names describe registry variants. Explicit references identify BOM assets. A producer may report an option by its observed identifier alone. A missing protocol version, registry entry or matching slot does not prevent reporting a composition and shall not be interpreted as absence of the capability. A slot matches the registry by role and, where needed, selecting party only when the match is unique. An unmatched slot or option remains unresolved." }, @@ -803,7 +803,7 @@ } }, "relatedCryptographicAsset": { - "$ref": "../../cryptography-defs.schema.json#/definitions/relatedCryptographicAsset" + "$ref": "http://cyclonedx.org/schema/cryptography-defs.schema.json#/definitions/relatedCryptographicAsset" }, "fingerprint": { "title": "Fingerprint", From b01f76569ac8e4c4f44ea04c60c190a144a41151 Mon Sep 17 00:00:00 2001 From: Basil Hess Date: Wed, 25 Nov 2026 09:40:06 +0100 Subject: [PATCH 6/7] fix remaining refs & remove bare AES- entries in IKEv2 (to be completed in a follow up Signed-off-by: Basil Hess --- schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json | 6 +++--- schema/cryptography-defs.json | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json b/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json index cbdbf7695..f1d9ef8be 100644 --- a/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json @@ -77,7 +77,7 @@ } }, "algorithmFamily": { - "$ref": "../../cryptography-defs.schema.json#/definitions/algorithmFamiliesEnum", + "$ref": "http://cyclonedx.org/schema/cryptography-defs.schema.json#/definitions/algorithmFamiliesEnum", "title": "Algorithm Family", "description": "A valid algorithm family identifier. If specified, this value shall be one of the enumeration of valid algorithm Family identifiers defined in the `cryptography-defs.schema.json` subschema.", "examples": [ @@ -92,7 +92,7 @@ "description": "An identifier for the parameter set of the cryptographic algorithm. Examples: in AES128, `\"128\"` identifies the key length in bits, in SHA256, `\"256\"` identifies the digest length, `\"128\"` in SHAKE128 identifies its maximum security level in bits, and `\"SHA2-128s\"` identifies a parameter set used in SLH-DSA (FIPS205)." }, "ellipticCurve": { - "$ref": "../../cryptography-defs.schema.json#/definitions/ellipticCurvesEnum", + "$ref": "http://cyclonedx.org/schema/cryptography-defs.schema.json#/definitions/ellipticCurvesEnum", "title": "Elliptic Curve", "description": "The specific underlying Elliptic Curve (EC) definition employed which is an indicator of the level of security strength, performance and complexity. If specified, this value shall be one of the enumeration of valid elliptic curves identifiers defined in the `cryptography-defs.schema.json` subschema." }, @@ -673,7 +673,7 @@ "additionalProperties": false, "properties": { "type": { - "$ref": "../../cryptography-defs.schema.json#/definitions/protocolFamiliesEnum", + "$ref": "http://cyclonedx.org/schema/cryptography-defs.schema.json#/definitions/protocolFamiliesEnum", "title": "Protocol Type", "description": "The concrete protocol type. If specified, this value shall be one of the enumeration of valid protocol families defined in the `cryptography-defs.schema.json` subschema." }, diff --git a/schema/cryptography-defs.json b/schema/cryptography-defs.json index 2d88fa277..c5d2cb009 100644 --- a/schema/cryptography-defs.json +++ b/schema/cryptography-defs.json @@ -5383,8 +5383,6 @@ "selectedBy": "negotiation", "selectingParty": "responder", "algorithmSet": [ - "AES-128-GCM", - "AES-256-GCM", { "name": "ENCR_AES_GCM_16", "identifier": "20", From d69fca026c1de44cbdb74d9af3b3e438c7b6f04f Mon Sep 17 00:00:00 2001 From: Basil Hess Date: Wed, 25 Nov 2026 15:01:45 +0100 Subject: [PATCH 7/7] revert the ref fixes Signed-off-by: Basil Hess --- .../2.0/modules/cyclonedx-cryptography-2.0.schema.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json b/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json index f1d9ef8be..4a995dc33 100644 --- a/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-cryptography-2.0.schema.json @@ -77,7 +77,7 @@ } }, "algorithmFamily": { - "$ref": "http://cyclonedx.org/schema/cryptography-defs.schema.json#/definitions/algorithmFamiliesEnum", + "$ref": "../../cryptography-defs.schema.json#/definitions/algorithmFamiliesEnum", "title": "Algorithm Family", "description": "A valid algorithm family identifier. If specified, this value shall be one of the enumeration of valid algorithm Family identifiers defined in the `cryptography-defs.schema.json` subschema.", "examples": [ @@ -92,7 +92,7 @@ "description": "An identifier for the parameter set of the cryptographic algorithm. Examples: in AES128, `\"128\"` identifies the key length in bits, in SHA256, `\"256\"` identifies the digest length, `\"128\"` in SHAKE128 identifies its maximum security level in bits, and `\"SHA2-128s\"` identifies a parameter set used in SLH-DSA (FIPS205)." }, "ellipticCurve": { - "$ref": "http://cyclonedx.org/schema/cryptography-defs.schema.json#/definitions/ellipticCurvesEnum", + "$ref": "../../cryptography-defs.schema.json#/definitions/ellipticCurvesEnum", "title": "Elliptic Curve", "description": "The specific underlying Elliptic Curve (EC) definition employed which is an indicator of the level of security strength, performance and complexity. If specified, this value shall be one of the enumeration of valid elliptic curves identifiers defined in the `cryptography-defs.schema.json` subschema." }, @@ -673,7 +673,7 @@ "additionalProperties": false, "properties": { "type": { - "$ref": "http://cyclonedx.org/schema/cryptography-defs.schema.json#/definitions/protocolFamiliesEnum", + "$ref": "../../cryptography-defs.schema.json#/definitions/protocolFamiliesEnum", "title": "Protocol Type", "description": "The concrete protocol type. If specified, this value shall be one of the enumeration of valid protocol families defined in the `cryptography-defs.schema.json` subschema." }, @@ -688,7 +688,7 @@ ] }, "composition": { - "$ref": "http://cyclonedx.org/schema/cryptography-defs.schema.json#/definitions/composition", + "$ref": "../../cryptography-defs.schema.json#/definitions/composition", "title": "Composition", "description": "The composition of the protocol as implemented, configured or observed for the subject of this BOM. A single observed option does not establish the full set of supported options. Algorithm names describe registry variants. Explicit references identify BOM assets. A producer may report an option by its observed identifier alone. A missing protocol version, registry entry or matching slot does not prevent reporting a composition and shall not be interpreted as absence of the capability. A slot matches the registry by role and, where needed, selecting party only when the match is unique. An unmatched slot or option remains unresolved." }, @@ -803,7 +803,7 @@ } }, "relatedCryptographicAsset": { - "$ref": "http://cyclonedx.org/schema/cryptography-defs.schema.json#/definitions/relatedCryptographicAsset" + "$ref": "../../cryptography-defs.schema.json#/definitions/relatedCryptographicAsset" }, "fingerprint": { "title": "Fingerprint",