Skip to content

fix: name the length placeholders of the DSA and CMAC registry patterns - #1236

Open
cvas22 wants to merge 1 commit into
CycloneDX:masterfrom
cvas22:fix/782-registry-length-placeholders
Open

cvas22 wants to merge 1 commit into
CycloneDX:masterfrom
cvas22:fix/782-registry-length-placeholders

Conversation

@cvas22

@cvas22 cvas22 commented Nov 20, 2026 •

Copy link
Copy Markdown

DSA and CMAC were the only registry patterns with a bare {length}, which doesn't say what is measured. I renamed them to match how the rest of the registry names things: {keyLength} for DSA (same as RSA and ElGamal) and {tagLength} for CMAC (same as HMAC). That's two lines, the schema still validates.

For CMAC I assumed the length is the MAC tag length, since the cipher algorithm part already carries the key size. If it was meant to be something else, say so and I'll change it.

DSA used a bare {length} and CMAC the same. Use keyLength for DSA like the other public key entries, and tagLength for CMAC like HMAC.

Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
@cvas22
cvas22 requested a review from a team as a code owner November 20, 2026 10:09
@jkowalleck jkowalleck added the cap: cryptography-registry Capability: Cryptography Registry label Nov 20, 2026
@jkowalleck
jkowalleck requested a review from bhess November 20, 2026 10:35

@bhess bhess left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks for the improvement!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cap: cryptography-registry Capability: Cryptography Registry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Defect]: Missing definition of length variable for CMAC and DSA algorithm family in Cryptography registry

3 participants