Skip to content

Commit 070e355

Browse files
committed
streamline docs
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent d673e8e commit 070e355

File tree

3 files changed

+25
-24
lines changed

3 files changed

+25
-24
lines changed

schema/bom-1.7.proto

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,8 +2195,9 @@ message CryptoProperties {
21952195
optional string algorithmFamily = 2;
21962196
// 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).
21972197
optional string parameterSetIdentifier = 3;
2198-
// [DEPRECATED] The specific underlying Elliptic Curve (EC) definition employed which is an indicator of the level of security strength, performance and complexity. Absent an authoritative source of curve names, CycloneDX recommends use of curve names as defined at [https://neuromancer.sk/std/](https://neuromancer.sk/std/), the source from which can be found at [https://github.com/J08nY/std-curves](https://github.com/J08nY/std-curves).
2199-
optional string curve = 4;
2198+
// DEPRECATED - DO NOT USE - This will be removed in a future version - Use `.ellipticCurve` Instead.
2199+
// The specific underlying Elliptic Curve (EC) definition employed which is an indicator of the level of security strength, performance and complexity. Absent an authoritative source of curve names, CycloneDX recommends use of curve names as defined at [https://neuromancer.sk/std/](https://neuromancer.sk/std/), the source from which can be found at [https://github.com/J08nY/std-curves](https://github.com/J08nY/std-curves).
2200+
optional string curve = 4 [deprecated = true];
22002201
// The specific underlying Elliptic Curve (EC) definition employed which is an indicator
22012202
// of the level of security strength, performance and complexity. Curves are defined in
22022203
// the cryptography-defs.json subschema. A corresponding schema for ProtoBuf is not available.
@@ -2264,14 +2265,16 @@ message CryptoProperties {
22642265
optional google.protobuf.Timestamp notValidBefore = 3;
22652266
// The date and time according to ISO-8601 standard from which the certificate is not valid anymore
22662267
optional google.protobuf.Timestamp notValidAfter = 4;
2267-
// [DEPRECATED] Use relatedCryptographicAssets instead. The bom-ref to signature algorithm used by the certificate
2268-
optional string signatureAlgorithmRef = 5;
2269-
// [DEPRECATED] Use relatedCryptographicAssets instead. The bom-ref to the public key of the subject
2270-
optional string subjectPublicKeyRef = 6;
2268+
// DEPRECATED - DO NOT USE - This will be removed in a future version - Use `.relatedCryptographicAssets` instead. The bom-ref to signature algorithm used by the certificate
2269+
optional string signatureAlgorithmRef = 5 [deprecated = true];
2270+
// DEPRECATED - DO NOT USE - This will be removed in a future version - Use `.relatedCryptographicAssets` instead. The bom-ref to the public key of the subject
2271+
optional string subjectPublicKeyRef = 6 [deprecated = true];
22712272
// The format of the certificate. Examples include X.509, PEM, DER, and CVC.
22722273
optional string certificateFormat = 7;
2273-
// [DEPRECATED] Use certificateFileExtension instead. The file extension of the certificate. Examples include crt, pem, cer, der, and p12.
2274-
optional string certificateExtension = 8;
2274+
// DEPRECATED - DO NOT USE - This will be removed in a future version - Use `.certificateFileExtension` instead. The file extension of the certificate. Examples include crt, pem, cer, der, and p12.
2275+
optional string certificateExtension = 8 [deprecated = true];
2276+
// A certificate extension is an optional field that provides additional information about the certificate or its use. Extensions are used to convey additional information beyond the standard fields.
2277+
optional CertificateExtensions certificateExtensions = 18;
22752278
// The serial number is a unique identifier for the certificate issued by a CA.
22762279
optional string serialNumber = 9;
22772280
// The file extension of the certificate. Examples include crt, pem, cer, der, and p12.
@@ -2290,8 +2293,6 @@ message CryptoProperties {
22902293
optional google.protobuf.Timestamp revocationDate = 16;
22912294
// The date and time (timestamp) when the certificate was destroyed.
22922295
optional google.protobuf.Timestamp destructionDate = 17;
2293-
// A certificate extension is an optional field that provides additional information about the certificate or its use. Extensions are used to convey additional information beyond the standard fields.
2294-
optional CertificateExtensions certificateExtensions = 18;
22952296
// A list of cryptographic assets related to this component.
22962297
optional RelatedCryptographicAssets relatedCryptographicAssets = 19;
22972298
} // end of CertificateProperties
@@ -2414,8 +2415,8 @@ message CryptoProperties {
24142415
optional string id = 2;
24152416
// The key state as defined by NIST SP 800-57.
24162417
optional CryptoRelatedState state = 3;
2417-
// [DEPRECATED] Use relatedCryptographicAssets instead. The bom-ref to the algorithm used to generate the related cryptographic material.
2418-
optional string algorithmRef = 4;
2418+
// DEPRECATED - DO NOT USE - This will be removed in a future version - Use `.relatedCryptographicAssets` instead. The bom-ref to the algorithm used to generate the related cryptographic material.
2419+
optional string algorithmRef = 4 [deprecated = true];
24192420
// The date and time (timestamp) when the related cryptographic material was created.
24202421
optional google.protobuf.Timestamp creationDate = 5;
24212422
// The date and time (timestamp) when the related cryptographic material was activated.

schema/bom-1.7.schema.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5126,10 +5126,10 @@
51265126
"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)."
51275127
},
51285128
"curve": {
5129+
"deprecated": true,
51295130
"type": "string",
51305131
"title": "Elliptic Curve",
5131-
"description": "[Deprecated] The specific underlying Elliptic Curve (EC) definition employed which is an indicator of the level of security strength, performance and complexity. Absent an authoritative source of curve names, CycloneDX recommends using curve names as defined at [https://neuromancer.sk/std/](https://neuromancer.sk/std/), the source of which can be found at [https://github.com/J08nY/std-curves](https://github.com/J08nY/std-curves).",
5132-
"deprecated": true
5132+
"description": "[Deprecated] This will be removed in a future version. Use `@.ellipticCurve` instead.\nThe specific underlying Elliptic Curve (EC) definition employed which is an indicator of the level of security strength, performance and complexity. Absent an authoritative source of curve names, CycloneDX recommends using curve names as defined at [https://neuromancer.sk/std/](https://neuromancer.sk/std/), the source of which can be found at [https://github.com/J08nY/std-curves](https://github.com/J08nY/std-curves)."
51335133
},
51345134
"ellipticCurve": {
51355135
"$ref": "cryptography-defs.schema.json#/definitions/ellipticCurvesEnum",
@@ -5373,13 +5373,13 @@
53735373
"deprecated": true,
53745374
"$ref": "#/definitions/refType",
53755375
"title": "Algorithm Reference",
5376-
"description": "[DEPRECATED] Use relatedCryptographicAssets instead. The bom-ref to signature algorithm used by the certificate"
5376+
"description": "[DEPRECATED] This will be removed in a future version. Use `@.relatedCryptographicAssets` instead.\nThe bom-ref to signature algorithm used by the certificate"
53775377
},
53785378
"subjectPublicKeyRef": {
53795379
"deprecated": true,
53805380
"$ref": "#/definitions/refType",
53815381
"title": "Key reference",
5382-
"description": "[DEPRECATED] Use relatedCryptographicAssets instead. The bom-ref to the public key of the subject"
5382+
"description": "[DEPRECATED] This will be removed in a future version. Use `@.relatedCryptographicAssets` instead. The bom-ref to the public key of the subject"
53835383
},
53845384
"certificateFormat": {
53855385
"type": "string",
@@ -5396,7 +5396,7 @@
53965396
"deprecated": true,
53975397
"type": "string",
53985398
"title": "Certificate File Extension",
5399-
"description": "[DEPRECATED] Use certificateFileExtension instead. The file extension of the certificate",
5399+
"description": "[DEPRECATED] This will be removed in a future version. Use `@.certificateFileExtension` instead.\nThe file extension of the certificate",
54005400
"examples": [
54015401
"crt",
54025402
"pem",
@@ -5682,7 +5682,7 @@
56825682
"deprecated": true,
56835683
"$ref": "#/definitions/refType",
56845684
"title": "Algorithm Reference",
5685-
"description": "[DEPRECATED] Use relatedCryptographicAssets instead. The bom-ref to the algorithm used to generate the related cryptographic material."
5685+
"description": "[DEPRECATED] Use `relatedCryptographicAssets` instead.\nThe bom-ref to the algorithm used to generate the related cryptographic material."
56865686
},
56875687
"creationDate": {
56885688
"type": "string",
@@ -5819,7 +5819,7 @@
58195819
"$ref": "#/definitions/ikeV2Enc",
58205820
"title": "Encryption Algorithm (ENCR)"
58215821
}
5822-
},
5822+
},
58235823
"prf": {
58245824
"type": "array",
58255825
"title": "Pseudorandom Functions (PRF)",
@@ -5867,7 +5867,7 @@
58675867
"deprecated": true,
58685868
"$ref": "#/definitions/cryptoRefArray",
58695869
"title": "Cryptographic References",
5870-
"description": "[DEPRECATED] Use relatedCryptographicAssets instead. A list of protocol-related cryptographic assets"
5870+
"description": "[DEPRECATED] Use `r`elatedCryptographicAssets` instead. A list of protocol-related cryptographic assets"
58715871
},
58725872
"relatedCryptographicAssets": {
58735873
"$ref": "#/definitions/relatedCryptographicAssets",

schema/bom-1.7.xsd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6546,7 +6546,7 @@ limitations under the License.
65466546
<xs:element name="curve" type="xs:string" minOccurs="0" maxOccurs="1">
65476547
<xs:annotation>
65486548
<xs:documentation>
6549-
DEPRECATED. Use ellipticCurve instead.
6549+
DEPRECATED - DO NOT USE. This will be removed in a future version. Use `./ellipticCurve` instead.
65506550
The specific underlying Elliptic Curve (EC) definition employed which is an indicator
65516551
of the level of security strength, performance and complexity. Absent an
65526552
authoritative source of curve names, CycloneDX recommends use of curve names as
@@ -7095,15 +7095,15 @@ limitations under the License.
70957095
<xs:element name="signatureAlgorithmRef" type="bom:refType" minOccurs="0" maxOccurs="1">
70967096
<xs:annotation>
70977097
<xs:documentation>
7098-
DEPRECATED] Use relatedCryptographicAssets instead.
7098+
DEPRECATED - DO NOT USE. This will be removed in a future version. Use `./relatedCryptographicAssets` instead.
70997099
The bom-ref to signature algorithm used by the certificate
71007100
</xs:documentation>
71017101
</xs:annotation>
71027102
</xs:element>
71037103
<xs:element name="subjectPublicKeyRef" type="bom:refType" minOccurs="0" maxOccurs="1">
71047104
<xs:annotation>
71057105
<xs:documentation>
7106-
DEPRECATED] Use relatedCryptographicAssets instead.
7106+
DEPRECATED - DO NOT USE. This will be removed in a future version. Use `./relatedCryptographicAssets` instead.
71077107
The bom-ref to the public key of the subject
71087108
</xs:documentation>
71097109
</xs:annotation>
@@ -7118,7 +7118,7 @@ limitations under the License.
71187118
<xs:element name="certificateExtension" type="xs:string" minOccurs="0" maxOccurs="1">
71197119
<xs:annotation>
71207120
<xs:documentation>
7121-
[DEPRECATED] Use certificateFileExtension instead.
7121+
DEPRECATED - DO NOT USE. This will be removed in a future version. Use `./certificateFileExtension` instead.
71227122
The file extension of the certificate. Examples include crt, pem, cer, der, and p12.
71237123
</xs:documentation>
71247124
</xs:annotation>

0 commit comments

Comments
 (0)