Skip to content

Feature: Encrypted Container Updates#172

Open
sephynox wants to merge 5 commits intomainfrom
feat/encrypted-container-v3
Open

Feature: Encrypted Container Updates#172
sephynox wants to merge 5 commits intomainfrom
feat/encrypted-container-v3

Conversation

@sephynox
Copy link
Contributor

@sephynox sephynox commented Feb 2, 2026

Summary

This PR introduces enhancements to the EncryptedContainer class, adding RFC 5652-compatible signing support (v3 containers), structured error handling, and improved algorithm validation.

@sephynox sephynox self-assigned this Feb 2, 2026
@sephynox sephynox added the enhancement New feature or request label Feb 2, 2026
@sephynox sephynox requested review from Srayman and rkeene and removed request for Srayman February 2, 2026 21:05
@sephynox sephynox requested a review from Copilot February 2, 2026 21:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds RFC 5652-compatible signing support to the EncryptedContainer class (v3 containers), implements structured error handling via EncryptedContainerError, and enhances algorithm validation with OID normalization.

Changes:

  • Introduced EncryptedContainerError class with specific error codes for better error handling
  • Added v3 container format with RFC 5652 SignerInfo support for cryptographic signing
  • Implemented signature verification with OID-based algorithm validation

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/lib/utils/signing.ts Added VerifyOptions interface to make timestamp skew validation configurable
src/lib/utils/signing.test.ts Added comprehensive tests for VerifyOptions parameters (maxSkewMs, referenceTime)
src/lib/encrypted-container.ts Implemented v3 container format with SignerInfo, added EncryptedContainerError class, and OID validation infrastructure
src/lib/encrypted-container.test.ts Added tests for EncryptedContainerError and v3 signing functionality

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 3, 2026

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant