1 module jwtd.test; 2 3 version (unittest) { 4 5 version(UseBotan) { 6 string private256 = q"EOS 7 -----BEGIN PRIVATE KEY----- 8 MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCr5790wT0yuSWn 9 yG+HOqgCr4JYLI4dCuygyHK6qJ5OvdB9RG1Rj531VXQ2F+BJGtvOxgah05X6y6jm 10 Ov/OL/NMN8S8MWMhXPYd9/NPOuJD+ricXalmp9pL5y2qrrAhrkTTlptbiYrq/PVe 11 e6qLXC7wp9RmMQDlTxlrkykzgTo/rbjMzP43wL2TovI2ATc+v15T63uhtk1mdAIs 12 EXiDljFhD6alW8+tHlZmF9EJERPfCE8LSRHHLt/V0HGnGr3Pq519Q/lL9TJSqWJ4 13 x4Lpjz715qDsN//8aEdvwyVRSACVNeceE4t/WVQSqVZZwfElz2y1uAyw8I6W+S6t 14 AJXfoc5JAgMBAAECggEAW2TjwlQ2kDAlV/XVbcT+rCbZmr1ddQ1ozvajIKAjQmPi 15 Y6cso69CYLvlBBlfkh5ofJ+FySWv2F3M11LIy7tsk7oWq6NqO8OryjUYM6hvwYqb 16 +e5F8SEOi0pGWjdzxwRa7U9mG52dsN96KJiBDISfJC1mXEpzWnbaYfokbpCnAlEf 17 mJrFoJwBj7PFcN/U0lyou2UJB8/JwtPx89Y4VVSu1SdQbwMSbxXyvWgeHpSwJCyt 18 BsHbSpYl2JDGv1bauLDp478Scr2+xdepEbOtfK5oTbNl7OBRG2GBViI+l746sPJ5 19 RZ2mfVSiHQ+sXM+0tUSNikyZPlOkGRuEoFL/it7TnQKBgQDgmY7A5eD32R526zLl 20 yCGwRcjd8399RoCPad8/euMlosSIw5Kb+Y3wIMZ2g4peaGTvDW6ne/YAwATIpsh2 21 swBVz+b0aIo0+6I42Udlb/FAYGKX0xjzg2FZSzCDR+DvS7g6el/JiduucM+34Gko 22 g7SflbpPMOziIWiBOVqTLkHvtwKBgQDD8D+NkEjHJhQmB7G3tqiH9Zjd3+AeYDKK 23 aTSBrBCzMhAXjbjwcY+bdlMvwWhcAwI0UQC3Tew25siHJtLpsfP6CLY/+81QYavD 24 dt1dbiB5ahpkbB8OYqDQH+rvI4fcyEnWhKGaEibI3VAY+nd9y11prHvwmcZOblpc 25 gEBzV34x/wKBgEBurQ5XpEdWCTBSXwKefFOmYW6S+UMGI8GAvOPoLBvS6xDVEk0e 26 tYJq1KSRLfPRfQs7TkBMBpHGhFjPx/iNd44mm3oIN4Xlnm8ynhHSoGI4hHBLxf+t 27 9BJ6yIsQ5s2falWUX8BghR4xDNYSUfimd/3EJXOsdHiW3vUbcAmDHrVXAoGBAKtp 28 IOACSnjWSige8Q0r4XHXnFz1/oX0WCKX+NQ8J/vsHwHL/O90GVLCh/GuPFLKWwJT 29 ntG9fJlm+iSqBTdmc27Ycj+1VB8u4unDsdKLhiNRfDdAE0ctZ0vLsGZ2aePu4BGn 30 xAwaNw3f9rNzYleNMnJA78hDbqWsiqaDmF6POxoXAoGAEsj9YmS8/kgoJITjNII6 31 04wowxcMS/eUffQ7bPizLDYRPQQ0CKhAPC+vVz+wWzJSgHCcuYmHBjG6940Ethg1 32 +AsWwkm893VF6r6eLjt7byoqfaJEbsZm9y2mQi353PHIChq7CynEQSI+kaPP3V28 33 FIb2otyo1D4EXhfhvIH2K1A= 34 -----END PRIVATE KEY----- 35 EOS"; 36 } else { 37 string private256 = q"EOS 38 -----BEGIN RSA PRIVATE KEY----- 39 MIIEowIBAAKCAQEAq+e/dME9Mrklp8hvhzqoAq+CWCyOHQrsoMhyuqieTr3QfURt 40 UY+d9VV0NhfgSRrbzsYGodOV+suo5jr/zi/zTDfEvDFjIVz2HffzTzriQ/q4nF2p 41 ZqfaS+ctqq6wIa5E05abW4mK6vz1Xnuqi1wu8KfUZjEA5U8Za5MpM4E6P624zMz+ 42 N8C9k6LyNgE3Pr9eU+t7obZNZnQCLBF4g5YxYQ+mpVvPrR5WZhfRCRET3whPC0kR 43 xy7f1dBxpxq9z6udfUP5S/UyUqlieMe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U3ZnNu2HI/tVQfLuLpw7HS 60 i4YjUXw3QBNHLWdLy7Bmdmnj7uARp8QMGjcN3/azc2JXjTJyQO/IQ26lrIqmg5he 61 jzsaFwKBgBLI/WJkvP5IKCSE4zSCOtOMKMMXDEv3lH30O2z4syw2ET0ENAioQDwv 62 r1c/sFsyUoBwnLmJhwYxuveNBLYYNfgLFsJJvPd1Req+ni47e28qKn2iRG7GZvct 63 pkIt+dzxyAoauwspxEEiPpGjz91dvBSG9qLcqNQ+BF4X4byB9itQ 64 -----END RSA PRIVATE KEY----- 65 EOS"; 66 } 67 68 string public256 = q"EOS 69 -----BEGIN PUBLIC KEY----- 70 MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq+e/dME9Mrklp8hvhzqo 71 Aq+CWCyOHQrsoMhyuqieTr3QfURtUY+d9VV0NhfgSRrbzsYGodOV+suo5jr/zi/z 72 TDfEvDFjIVz2HffzTzriQ/q4nF2pZqfaS+ctqq6wIa5E05abW4mK6vz1Xnuqi1wu 73 8KfUZjEA5U8Za5MpM4E6P624zMz+N8C9k6LyNgE3Pr9eU+t7obZNZnQCLBF4g5Yx 74 YQ+mpVvPrR5WZhfRCRET3whPC0kRxy7f1dBxpxq9z6udfUP5S/UyUqlieMeC6Y8+ 75 9eag7Df//GhHb8MlUUgAlTXnHhOLf1lUEqlWWcHxJc9stbgMsPCOlvkurQCV36HO 76 SQIDAQAB 77 -----END PUBLIC KEY----- 78 EOS"; 79 80 string private384 = q"EOS 81 EOS"; 82 83 string public384 = q"EOS 84 EOS"; 85 86 string private512 = q"EOS 87 EOS"; 88 89 string public512 = q"EOS 90 EOS"; 91 92 version(UseBotan) { 93 string es256_private = q"EOS 94 -----BEGIN PRIVATE KEY----- 95 MIGEAgEAMBAGByqGSM49AgEGBSuBBAAKBG0wawIBAQQgHxxA+0sQXmE4myibmhVT 96 l0ymANRHZBi4lNd22/F7NCWhRANCAAQy5KexZuIg/J8UAgC+VuWI85SdCWJtvrvI 97 TolSpdVp69vxmisrYd/F8WD2kZWGDdIa4EJsdwnzhYo5fcZIwTBw 98 -----END PRIVATE KEY----- 99 EOS"; 100 } else { 101 string es256_private = q"EOS 102 -----BEGIN EC PRIVATE KEY----- 103 MHcCAQEEIOUuU0jdhhRUF3nEynzaNKBO25kgQyyqfRiuHQ8Nw13zoAoGCCqGSM49 104 AwEHoUQDQgAEGw69bqf76zQSCryAj/lUYSFSpNb8YvC9pkhAhgopO+xlcO1VgmRJ 105 p980n8c+gbvtpbbaPpHUKNDcMQKASi/czw== 106 -----END EC PRIVATE KEY----- 107 EOS"; 108 } 109 110 string es256_public = q"EOS 111 -----BEGIN PUBLIC KEY----- 112 MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEGw69bqf76zQSCryAj/lUYSFSpNb8 113 YvC9pkhAhgopO+xlcO1VgmRJp980n8c+gbvtpbbaPpHUKNDcMQKASi/czw== 114 -----END PUBLIC KEY----- 115 EOS"; 116 117 string es384_private = q"EOS 118 -----BEGIN EC PRIVATE KEY----- 119 MIGkAgEBBDAmGm9VDiSRyJsd51uD6zFK0gvTyLEcoSkYBcUl/pPdkMD/vo41bWNG 120 F2sFigYLcuigBwYFK4EEACKhZANiAATp/2wbbOdcM1uhzikBtjfMZ7EINbGNsbg0 121 BIYCjkw8mLInTADXG5JkickFlzX7gNJBsSX1Lmo/sy9o+hqbh8m9jvgpCeS6ySI6 122 ZGXVYliVoZeryBvHod2okqKamKY0bg0= 123 -----END EC PRIVATE KEY----- 124 EOS"; 125 126 string es384_public = q"EOS 127 -----BEGIN PUBLIC KEY----- 128 MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE6f9sG2znXDNboc4pAbY3zGexCDWxjbG4 129 NASGAo5MPJiyJ0wA1xuSZInJBZc1+4DSQbEl9S5qP7MvaPoam4fJvY74KQnkuski 130 OmRl1WJYlaGXq8gbx6HdqJKimpimNG4N 131 -----END PUBLIC KEY----- 132 EOS"; 133 134 string es512_private = q"EOS 135 -----BEGIN EC PRIVATE KEY----- 136 MIHcAgEBBEIAwpRKaINqELw34fWnXu9fzsKVTXKcuEfbZX2RXJmAExnJMay14VjQ 137 +tXASWvE5/CcyeQciJGlvQNW6Z3XBljmnQmgBwYFK4EEACOhgYkDgYYABAA5czxA 138 R1DG+4zYiAcHJX5ktiW2XTgDUAb3h4ned4YFOnA68prdPM8H8OsKTspWxhdUHQ68 139 OiCA0uR1LoLlRrSu2wA7zCDJBx/8nwSW0KpsphPR0fmokWVzpYpAhE2az0M1GFmY 140 A8JsVWBwsK9cyDpf2uYczqrjQkoOTkXVO1U2Pnp1ag== 141 -----END EC PRIVATE KEY----- 142 EOS"; 143 144 string es512_public = q"EOS 145 -----BEGIN PUBLIC KEY----- 146 MIGbMBAGByqGSM49AgEGBSuBBAAjA4GGAAQAOXM8QEdQxvuM2IgHByV+ZLYltl04 147 A1AG94eJ3neGBTpwOvKa3TzPB/DrCk7KVsYXVB0OvDoggNLkdS6C5Ua0rtsAO8wg 148 yQcf/J8EltCqbKYT0dH5qJFlc6WKQIRNms9DNRhZmAPCbFVgcLCvXMg6X9rmHM6q 149 40JKDk5F1TtVNj56dWo= 150 -----END PUBLIC KEY----- 151 EOS"; 152 153 } // version (unittest)