Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions schemas/mldsa_sign_common.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,74 @@
},
"additionalProperties": false,
"required": ["tcId", "comment", "msg", "sig", "result", "flags"]
},
"CompletePureMlDsaSignTestVector": {
"type": "object",
"properties": {
"tcId": {
"type": "integer",
"description": "Identifier of the test case"
},
"comment": {
"type": "string",
"description": "A brief description of the test case"
},
"privateSeed": {
"type": "string",
"format": "HexBytes",
"description": "The private key (seed format: 32-byte ξ (Xi) value)"
},
"publicKey": {
"type": "string",
"format": "HexBytes",
"description": "The public key"
},
"privateKey": {
"type": "string",
"format": "HexBytes",
"description": "The expanded private key"
},
"randomness": {
"type": "string",
"format": "HexBytes",
"description": "The 32-byte randomness to use for the hedged signature"
},
"msg": {
"type": "string",
"format": "HexBytes",
"description": "The message to sign"
},
"ctx": {
"type": "string",
"format": "HexBytes",
"description": "[optional] The additional context string (empty if not provided)"
},
"mu": {
"type": "string",
"format": "HexBytes",
"description": "The µ (Mu) value that was signed"
},
"sig": {
"type": "string",
"format": "HexBytes",
"description": "The encoded signature (empty in case of expected failure)"
},
"result": {
"type": "string",
"description": "Test result",
"enum": ["valid", "invalid"]
},
"flags": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of flags"
}
},
"additionalProperties": false,
"required": ["tcId", "comment", "privateSeed", "privateKey", "publicKey", "randomness", "msg", "ctx", "mu", "sig", "result", "flags"
]
}
}
}
70 changes: 70 additions & 0 deletions schemas/mldsa_sign_mu_seed_hedged_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"type": "object",
"definitions": {
"MlDsaSignTestGroup": {
"type": "object",
"properties": {
"type": {
"enum": [
"MlDsaSign"
]
},
"tests": {
"type": "array",
"items": {
"$ref": "mldsa_sign_common.json#/definitions/CompletePureMlDsaSignTestVector"
}
},
"source": {
"$ref": "common.json#/definitions/Source"
}
},
"additionalProperties": false,
"required": [
"type",
"tests",
"source"
]
}
},
"properties": {
"algorithm": {
"type": "string",
"description": "the primitive tested in the test file"
},
"header": {
"type": "array",
"items": {
"type": "string"
},
"description": "additional documentation"
},
"notes": {
"$ref": "common.json#/definitions/Notes"
},
"numberOfTests": {
"type": "integer",
"description": "the number of test vectors in this test"
},
"schema": {
"enum": [
"mldsa_sign_mu_seed_hedged_schema.json"
]
},
"testGroups": {
"type": "array",
"items": {
"$ref": "#/definitions/MlDsaSignTestGroup"
}
}
},
"additionalProperties": false,
"required": [
"algorithm",
"header",
"notes",
"numberOfTests",
"schema",
"testGroups"
]
}
Loading