1*4be8f336SEric Samelson[ 2*4be8f336SEric Samelson { 3*4be8f336SEric Samelson "name": "basic binary", 4*4be8f336SEric Samelson "raw": [":aGVsbG8=:"], 5*4be8f336SEric Samelson "header_type": "item", 6*4be8f336SEric Samelson "expected": [ 7*4be8f336SEric Samelson {"__type": "binary", "value": "NBSWY3DP"}, 8*4be8f336SEric Samelson []] 9*4be8f336SEric Samelson }, 10*4be8f336SEric Samelson { 11*4be8f336SEric Samelson "name": "empty binary", 12*4be8f336SEric Samelson "raw": ["::"], 13*4be8f336SEric Samelson "header_type": "item", 14*4be8f336SEric Samelson "expected": [ 15*4be8f336SEric Samelson {"__type": "binary", "value": ""}, 16*4be8f336SEric Samelson []] 17*4be8f336SEric Samelson }, 18*4be8f336SEric Samelson { 19*4be8f336SEric Samelson "name": "bad paddding", 20*4be8f336SEric Samelson "raw": [":aGVsbG8:"], 21*4be8f336SEric Samelson "header_type": "item", 22*4be8f336SEric Samelson "expected": [ 23*4be8f336SEric Samelson {"__type": "binary", "value": "NBSWY3DP"}, 24*4be8f336SEric Samelson []], 25*4be8f336SEric Samelson "can_fail": true, 26*4be8f336SEric Samelson "canonical": [":aGVsbG8=:"] 27*4be8f336SEric Samelson }, 28*4be8f336SEric Samelson { 29*4be8f336SEric Samelson "name": "bad end delimiter", 30*4be8f336SEric Samelson "raw": [":aGVsbG8="], 31*4be8f336SEric Samelson "header_type": "item", 32*4be8f336SEric Samelson "must_fail": true 33*4be8f336SEric Samelson }, 34*4be8f336SEric Samelson { 35*4be8f336SEric Samelson "name": "extra whitespace", 36*4be8f336SEric Samelson "raw": [":aGVsb G8=:"], 37*4be8f336SEric Samelson "header_type": "item", 38*4be8f336SEric Samelson "must_fail": true 39*4be8f336SEric Samelson }, 40*4be8f336SEric Samelson { 41*4be8f336SEric Samelson "name": "extra chars", 42*4be8f336SEric Samelson "raw": [":aGVsbG!8=:"], 43*4be8f336SEric Samelson "header_type": "item", 44*4be8f336SEric Samelson "must_fail": true 45*4be8f336SEric Samelson }, 46*4be8f336SEric Samelson { 47*4be8f336SEric Samelson "name": "suffix chars", 48*4be8f336SEric Samelson "raw": [":aGVsbG8=!:"], 49*4be8f336SEric Samelson "header_type": "item", 50*4be8f336SEric Samelson "must_fail": true 51*4be8f336SEric Samelson }, 52*4be8f336SEric Samelson { 53*4be8f336SEric Samelson "name": "non-zero pad bits", 54*4be8f336SEric Samelson "raw": [":iZ==:"], 55*4be8f336SEric Samelson "header_type": "item", 56*4be8f336SEric Samelson "expected": [ 57*4be8f336SEric Samelson {"__type": "binary", "value": "RE======"}, 58*4be8f336SEric Samelson []], 59*4be8f336SEric Samelson "can_fail": true, 60*4be8f336SEric Samelson "canonical": [":iQ==:"] 61*4be8f336SEric Samelson }, 62*4be8f336SEric Samelson { 63*4be8f336SEric Samelson "name": "non-ASCII binary", 64*4be8f336SEric Samelson "raw": [":/+Ah:"], 65*4be8f336SEric Samelson "header_type": "item", 66*4be8f336SEric Samelson "expected": [ 67*4be8f336SEric Samelson {"__type": "binary", "value": "77QCC==="}, 68*4be8f336SEric Samelson []] 69*4be8f336SEric Samelson }, 70*4be8f336SEric Samelson { 71*4be8f336SEric Samelson "name": "base64url binary", 72*4be8f336SEric Samelson "raw": [":_-Ah:"], 73*4be8f336SEric Samelson "header_type": "item", 74*4be8f336SEric Samelson "must_fail": true 75*4be8f336SEric Samelson } 76*4be8f336SEric Samelson] 77