Skip to content

Conversation

@cpu
Copy link
Member

@cpu cpu commented Jul 31, 2025

Updates #151
Resolves #89

Additionally, model the "Notes" field of the v1 schema format as part of schemas/common.json, converting all v1 test vectors to reference the common schema. This captures the textual description from doc/formats.md.

cpu added 5 commits July 31, 2025 11:29
First, import the existing v0 schema and vectordata. We'll need to make
some changes to better match existing v1 RSA vectors, but for now the
only change made is to update the schema name and import the schema/data
as it exists in v0.
@cpu cpu self-assigned this Jul 31, 2025
cpu added 4 commits August 18, 2025 10:35
Use the pre-existing string values as the description field of the note,
and then match the bug type to what the other V1 RSA vectors use for the
same note key.
In v0 the notes field was only a dictionary of keys to string
description values.

In v1 this is a dictionary where each key's value is an object that
may contain additional metadata (CVEs, references, etc). Each note
object has a bugType required property.
Reference the common notes schema from all v1 schemas.

Some v1 vectors were sharing a schema with v0, however the notes field
structure is not compatible between the two. This worked previously
because the schema definition didn't cover the individual note objects.

Now that we've tightened the definition, we need to split those shared
schemas. Soon we will delete the v0 vectors and associated schema files,
so the duplication is temporary.
@cpu cpu changed the title Convert v0 RSA PKCS1 sig gen vectors/schema to v1 format Convert v0 RSA PKCS1 sig gen to v1, improve v1 notes schema Aug 18, 2025
@cpu cpu merged commit 9c25998 into C2SP:main Aug 19, 2025
1 check passed
@cpu cpu deleted the cpu-151-pt1 branch August 19, 2025 12:11
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.

No RsassaPkcs1Generate tests in testvectors_v1

2 participants