Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions schema/2.0/model/cyclonedx-cryptography-2.0.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,38 @@
"$ref": "#/$defs/cryptographicFunction"
}
},
"outputLength": {
"title": "Output length",
"description": "The output length provided by the cryptographic algorithm (in bits). For example: XOF output length, MAC tag length, derived key length for KDF.",
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "object",
"required": [

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are both required, always?
not have a atleast one of them required?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently both are required for simplicity. If there's any strong opinions one way or another, I can change it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd love to see it as "at least one of them properties is required"

"min",
"max"
],
"additionalProperties": false,
"properties": {
"min": {
"type": "integer",
"title": "Minimum output length",
"description": "The minimum output length provided by the cryptographic algorithm (in bits).",
"minimum": 0
},
"max": {
"type": "integer",
"title": "Maximum output length",
"description": "The maximum output length provided by the cryptographic algorithm (in bits).",
"minimum": 0
}
}
}
]
},
"classicalSecurityLevel": {
"type": "integer",
"title": "classical security level",
Expand Down