feat: CoseAlgorithm enum with RFC 9864 fully-specified identifiers#9
Merged
mingweishih merged 1 commit intoAzure:mainfrom Apr 17, 2026
Merged
feat: CoseAlgorithm enum with RFC 9864 fully-specified identifiers#9mingweishih merged 1 commit intoAzure:mainfrom
mingweishih merged 1 commit intoAzure:mainfrom
Conversation
Add typed CoseAlgorithm enum replacing raw i64 for the COSE alg field in ProtectedCorimHeaderMap and SignedCorimBuilder. New fully-specified algorithms per RFC 9864: - ESP256 (-9), ESP384 (-51), ESP512 (-52) replace ES256/ES384/ES512 - Ed25519 (-19), Ed448 (-53) replace EdDSA Deprecated polymorphic algorithms retained for decode interop: - ES256 (-7), ES384 (-35), ES512 (-36), EdDSA (-8) - is_deprecated() method identifies these PS256/PS384/PS512 unchanged (not deprecated per RFC 9864 s6.1). Unknown(i64) variant for forward compatibility. SignedCorimBuilder::new() accepts impl Into<CoseAlgorithm>. CLI: uses CoseAlgorithm::Display, removed duplicate cose_alg_name. RFC_REFERENCES.md: added RFC 9864 section. 631 tests, 0 clippy warnings.
vtikoo
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add typed CoseAlgorithm enum replacing raw i64 for the COSE alg field in ProtectedCorimHeaderMap and SignedCorimBuilder.
New fully-specified algorithms per RFC 9864:
Deprecated polymorphic algorithms retained for decode interop:
PS256/PS384/PS512 unchanged (not deprecated per RFC 9864 s6.1). Unknown(i64) variant for forward compatibility.
SignedCorimBuilder::new() accepts impl Into.
CLI: uses CoseAlgorithm::Display, removed duplicate cose_alg_name.
RFC_REFERENCES.md: added RFC 9864 section.
631 tests, 0 clippy warnings.
Description
Related Issues
Checklist
cargo test --allpassescargo fmt --all -- --checkpassescargo clippy --all -- -D warningspasses