Skip to content

Commit 31042b8

Browse files
committed
PB: fixes and reverts
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 3db7d68 commit 31042b8

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

schema/bom-1.7.proto

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2044,6 +2044,7 @@ message CryptoProperties {
20442044

20452045
// Algorithm Propertie
20462046
message AlgorithmProperties {
2047+
20472048
// Primitive
20482049
enum CryptoPrimitive {
20492050
// ProtoBuff's default value -- it differs from "unknown"
@@ -2192,36 +2193,37 @@ message CryptoProperties {
21922193
// A valid algorithm family identifier. If specified, this value must be one of the
21932194
// enumeration of valid algorithm Family identifiers defined in the
21942195
// cryptography-defs.json subschema. A corresponding schema for ProtoBuf is not available.
2195-
optional string algorithmFamily = 2;
2196+
optional string algorithmFamily = 12;
21962197
// 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).
2197-
optional string parameterSetIdentifier = 3;
2198+
optional string parameterSetIdentifier = 2;
21982199
// DEPRECATED - DO NOT USE - This will be removed in a future version - Use `.ellipticCurve` Instead.
21992200
// 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];
2201+
optional string curve = 3 [deprecated = true];
22012202
// The specific underlying Elliptic Curve (EC) definition employed which is an indicator
22022203
// of the level of security strength, performance and complexity. Curves are defined in
22032204
// the cryptography-defs.json subschema. A corresponding schema for ProtoBuf is not available.
22042205
optional string ellipticCurve = 13;
22052206
// The target and execution environment in which the algorithm is implemented in.
2206-
optional CryptoExecutionEnvironment executionEnvironment = 5;
2207+
optional CryptoExecutionEnvironment executionEnvironment = 4;
22072208
// The target platform for which the algorithm is implemented. The implementation can be 'generic', running on any platform or for a specific platform.
2208-
optional CryptoImplementationPlatform implementationPlatform = 6;
2209+
optional CryptoImplementationPlatform implementationPlatform = 5;
22092210
// The certification that the implementation of the cryptographic algorithm has received, if any. Certifications include revisions and levels of FIPS 140 or Common Criteria of different Extended Assurance Levels (CC-EAL).
2210-
repeated string certificationLevel = 7;
2211+
repeated string certificationLevel = 6;
22112212
// The mode of operation in which the cryptographic algorithm (block cipher) is used.
2212-
optional CryptoAlgorithmMode mode = 8;
2213+
optional CryptoAlgorithmMode mode = 7;
22132214
// The padding scheme that is used for the cryptographic algorithm.
2214-
optional CryptoAlgorithmPadding padding = 9;
2215+
optional CryptoAlgorithmPadding padding = 8;
22152216
// The cryptographic functions implemented by the cryptographic algorithm.
2216-
repeated CryptoAlgorithmFunction cryptoFunctions = 10;
2217+
repeated CryptoAlgorithmFunction cryptoFunctions = 9;
22172218
// The classical security level that a cryptographic algorithm provides (in bits).
2218-
optional int32 classicalSecurityLevel = 11;
2219+
optional int32 classicalSecurityLevel = 10;
22192220
// The NIST security strength category as defined in https://csrc.nist.gov/projects/post-quantum-cryptography/post-quantum-cryptography-standardization/evaluation-criteria/security-(evaluation-criteria). A value of 0 indicates that none of the categories are met.
2220-
optional int32 nistQuantumSecurityLevel = 12;
2221+
optional int32 nistQuantumSecurityLevel = 11;
22212222
} // end of AlgorithmProperties
22222223

22232224
// Certificate State
22242225
message CertificateState {
2226+
22252227
// Pre-defined certificate states
22262228
enum PredefinedState {
22272229
// ProtoBuff's default value
@@ -2242,18 +2244,16 @@ message CryptoProperties {
22422244

22432245
// A reason for the certificate being in this state.
22442246
optional string reason = 1;
2245-
22462247
// The state can be either a predefined state or a custom state
22472248
oneof state {
22482249
// A pre-defined state in the certificate lifecycle.
22492250
PredefinedState predefined_state = 2;
22502251
// The name of the certificate lifecycle state for custom states.
22512252
string name = 3;
22522253
}
2253-
22542254
// The description of the certificate lifecycle state (only used with custom states).
22552255
optional string description = 4;
2256-
}
2256+
} // end of CertificateState
22572257

22582258
// Certificate Properties
22592259
message CertificateProperties {

0 commit comments

Comments
 (0)