Skip to content

Add c2sp.org/chunked-encryption (Cobblestone) test vectors#265

Open
FiloSottile wants to merge 1 commit into
mainfrom
push-nkskznqqunmy
Open

Add c2sp.org/chunked-encryption (Cobblestone) test vectors#265
FiloSottile wants to merge 1 commit into
mainfrom
push-nkskznqqunmy

Conversation

@FiloSottile

Copy link
Copy Markdown
Member

@alex

alex commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Perfect, thanks! Our current PR uses the ones from your impl.

@FiloSottile

Copy link
Copy Markdown
Member Author

These are ported from those, and the Go implementation (now renamed to filippo.io/cobblestone) now uses these.

@cpu cpu left a comment

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.

Here's some initial feedback mainly focused on the new schema.

}
},
"additionalProperties": false,
"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.

I think source should also be a required field.

},
"sha": {
"type": "string",
"format": "MdName",

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.

There's no validator registered for MdName in vectorlint so this is fairly decorative.

I think unless you plan to convert other schemas to use a defined+linted MdName format maybe this should just be an enum with some variants listed? Or should it be fixed to "SHA-512" since there are no chunked vectors using a different digest at this point.

},
"properties": {
"algorithm": {
"type": "string",

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.

Can this be an enum with fixed values, something like: "enum": ["Cobblestone-128", "Cobblestone-256"]

"description": "The derived base nonce, for testing raw mode directly (absent for invalid vectors that exercise key derivation or the commitment check)"
},
"msgLength": {
"type": "integer",

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.

worth adding a "minimum": 0 here?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants