Commit dd06849
authored
CBOM: add custom fingerprints (#903)
Extend the `fingerprint` definition in
`cyclonedx-cryptography-2.0.schema.json` to support custom fingerprint
algorithms alongside standard hash algorithms.
### Changes
- Replace the flat `$ref: hash` on `certificateProperties.fingerprint`
and `relatedCryptoMaterialProperties.fingerprint` with a single central
`$defs/fingerprint` definition
- `$defs/fingerprint` uses `oneOf` with two branches:
- **Standard Hash** — `alg` + `content` (refs to existing
`hashAlgorithm` / `hashValue`); fully backward compatible
- **Custom Fingerprint** — `customAlg` + `customContent` for
non-standard algorithms
### Backward Compatibility
Existing documents with `{"alg": "SHA-256", "content": "..."}` satisfy
the Standard Hash branch unchanged.2 files changed
Lines changed: 47 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
721 | | - | |
722 | | - | |
723 | | - | |
| 721 | + | |
724 | 722 | | |
725 | 723 | | |
726 | 724 | | |
| |||
1119 | 1117 | | |
1120 | 1118 | | |
1121 | 1119 | | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
1122 | 1159 | | |
1123 | 1160 | | |
1124 | 1161 | | |
| |||
0 commit comments