wycheproof_mac_test_schema.json (2486B)
1 { 2 "type": "object", 3 "definitions": { 4 "MacTestGroup": { 5 "type": "object", 6 "properties": { 7 "type": { 8 "enum": [ 9 "MacTest" 10 ] 11 }, 12 "keySize": { 13 "type": "integer", 14 "description": "the keySize in bits" 15 }, 16 "tagSize": { 17 "type": "integer", 18 "description": "the expected size of the tag in bits" 19 }, 20 "tests": { 21 "type": "array", 22 "items": { 23 "$ref": "#/definitions/MacTestVector" 24 } 25 } 26 } 27 }, 28 "MacTestVector": { 29 "type": "object", 30 "properties": { 31 "tcId": { 32 "type": "integer", 33 "description": "Identifier of the test case" 34 }, 35 "comment": { 36 "type": "string", 37 "description": "A brief description of the test case" 38 }, 39 "key": { 40 "type": "string", 41 "format": "HexBytes", 42 "description": "the key" 43 }, 44 "msg": { 45 "type": "string", 46 "format": "HexBytes", 47 "description": "the plaintext" 48 }, 49 "tag": { 50 "type": "string", 51 "format": "HexBytes", 52 "description": "the authentication tag" 53 }, 54 "result": { 55 "type": "string", 56 "description": "Test result", 57 "enum": [ 58 "valid", 59 "invalid", 60 "acceptable" 61 ] 62 }, 63 "flags": { 64 "type": "array", 65 "items": { 66 "type": "string" 67 }, 68 "description": "A list of flags" 69 } 70 } 71 } 72 }, 73 "properties": { 74 "algorithm": { 75 "type": "string", 76 "description": "the primitive tested in the test file" 77 }, 78 "generatorVersion": { 79 "type": "string", 80 "description": "the version of the test vectors." 81 }, 82 "header": { 83 "type": "array", 84 "items": { 85 "type": "string" 86 }, 87 "description": "additional documentation" 88 }, 89 "notes": { 90 "type": "object", 91 "description": "a description of the labels used in the test vectors" 92 }, 93 "numberOfTests": { 94 "type": "integer", 95 "description": "the number of test vectors in this test" 96 }, 97 "schema": { 98 "enum": [ 99 "mac_test_schema.json" 100 ] 101 }, 102 "testGroups": { 103 "type": "array", 104 "items": { 105 "$ref": "#/definitions/MacTestGroup" 106 } 107 } 108 } 109 }