1DES check weak key #1
2des_check_weak:"0101010101010101":1
3
4DES check weak key #2
5des_check_weak:"FEE0FEE0FEF1FEF1":1
6
7DES check weak key #3
8des_check_weak:"0101010101010100":0
9
10DES check weak key #4
11des_check_weak:"EEE0FEE0FEF1FEF1":0
12
13DES Encrypt OpenSSL Test Vector #1
14des_encrypt_ecb:"0000000000000000":"0000000000000000":"8CA64DE9C1B123A7"
15
16DES Encrypt OpenSSL Test Vector #2
17des_encrypt_ecb:"FFFFFFFFFFFFFFFF":"FFFFFFFFFFFFFFFF":"7359B2163E4EDC58"
18
19DES Encrypt OpenSSL Test Vector #3
20des_encrypt_ecb:"3000000000000000":"1000000000000001":"958E6E627A05557B"
21
22DES Encrypt OpenSSL Test Vector #4
23des_encrypt_ecb:"1111111111111111":"1111111111111111":"F40379AB9E0EC533"
24
25DES Encrypt OpenSSL Test Vector #5
26des_encrypt_ecb:"0123456789ABCDEF":"1111111111111111":"17668DFC7292532D"
27
28DES Encrypt OpenSSL Test Vector #6
29des_encrypt_ecb:"1111111111111111":"0123456789ABCDEF":"8A5AE1F81AB8F2DD"
30
31DES Encrypt OpenSSL Test Vector #7
32des_encrypt_ecb:"0000000000000000":"0000000000000000":"8CA64DE9C1B123A7"
33
34DES Encrypt OpenSSL Test Vector #8
35des_encrypt_ecb:"FEDCBA9876543210":"0123456789ABCDEF":"ED39D950FA74BCC4"
36
37DES Encrypt OpenSSL Test Vector #9
38des_encrypt_ecb:"7CA110454A1A6E57":"01A1D6D039776742":"690F5B0D9A26939B"
39
40DES Encrypt OpenSSL Test Vector #10
41des_encrypt_ecb:"0131D9619DC1376E":"5CD54CA83DEF57DA":"7A389D10354BD271"
42
43DES Encrypt OpenSSL Test Vector #11
44des_encrypt_ecb:"07A1133E4A0B2686":"0248D43806F67172":"868EBB51CAB4599A"
45
46DES Encrypt OpenSSL Test Vector #12
47des_encrypt_ecb:"3849674C2602319E":"51454B582DDF440A":"7178876E01F19B2A"
48
49DES Encrypt OpenSSL Test Vector #13
50des_encrypt_ecb:"04B915BA43FEB5B6":"42FD443059577FA2":"AF37FB421F8C4095"
51
52DES Encrypt OpenSSL Test Vector #14
53des_encrypt_ecb:"0113B970FD34F2CE":"059B5E0851CF143A":"86A560F10EC6D85B"
54
55DES Encrypt OpenSSL Test Vector #15
56des_encrypt_ecb:"0170F175468FB5E6":"0756D8E0774761D2":"0CD3DA020021DC09"
57
58DES Encrypt OpenSSL Test Vector #16
59des_encrypt_ecb:"43297FAD38E373FE":"762514B829BF486A":"EA676B2CB7DB2B7A"
60
61DES Encrypt OpenSSL Test Vector #17
62des_encrypt_ecb:"07A7137045DA2A16":"3BDD119049372802":"DFD64A815CAF1A0F"
63
64DES Encrypt OpenSSL Test Vector #18
65des_encrypt_ecb:"04689104C2FD3B2F":"26955F6835AF609A":"5C513C9C4886C088"
66
67DES Encrypt OpenSSL Test Vector #19
68des_encrypt_ecb:"37D06BB516CB7546":"164D5E404F275232":"0A2AEEAE3FF4AB77"
69
70DES Encrypt OpenSSL Test Vector #20
71des_encrypt_ecb:"1F08260D1AC2465E":"6B056E18759F5CCA":"EF1BF03E5DFA575A"
72
73DES Encrypt OpenSSL Test Vector #21
74des_encrypt_ecb:"584023641ABA6176":"004BD6EF09176062":"88BF0DB6D70DEE56"
75
76DES Encrypt OpenSSL Test Vector #22
77des_encrypt_ecb:"025816164629B007":"480D39006EE762F2":"A1F9915541020B56"
78
79DES Encrypt OpenSSL Test Vector #23
80des_encrypt_ecb:"49793EBC79B3258F":"437540C8698F3CFA":"6FBF1CAFCFFD0556"
81
82DES Encrypt OpenSSL Test Vector #24
83des_encrypt_ecb:"4FB05E1515AB73A7":"072D43A077075292":"2F22E49BAB7CA1AC"
84
85DES Encrypt OpenSSL Test Vector #25
86des_encrypt_ecb:"49E95D6D4CA229BF":"02FE55778117F12A":"5A6B612CC26CCE4A"
87
88DES Encrypt OpenSSL Test Vector #26
89des_encrypt_ecb:"018310DC409B26D6":"1D9D5C5018F728C2":"5F4C038ED12B2E41"
90
91DES Encrypt OpenSSL Test Vector #27
92des_encrypt_ecb:"1C587F1C13924FEF":"305532286D6F295A":"63FAC0D034D9F793"
93
94DES Encrypt OpenSSL Test Vector #28
95des_encrypt_ecb:"0101010101010101":"0123456789ABCDEF":"617B3A0CE8F07100"
96
97DES Encrypt OpenSSL Test Vector #29
98des_encrypt_ecb:"1F1F1F1F0E0E0E0E":"0123456789ABCDEF":"DB958605F8C8C606"
99
100DES Encrypt OpenSSL Test Vector #30
101des_encrypt_ecb:"E0FEE0FEF1FEF1FE":"0123456789ABCDEF":"EDBFD1C66C29CCC7"
102
103DES Encrypt OpenSSL Test Vector #31
104des_encrypt_ecb:"0000000000000000":"FFFFFFFFFFFFFFFF":"355550B2150E2451"
105
106DES Encrypt OpenSSL Test Vector #32
107des_encrypt_ecb:"FFFFFFFFFFFFFFFF":"0000000000000000":"CAAAAF4DEAF1DBAE"
108
109DES Encrypt OpenSSL Test Vector #33
110des_encrypt_ecb:"0123456789ABCDEF":"0000000000000000":"D5D44FF720683D0D"
111
112DES Encrypt OpenSSL Test Vector #34
113des_encrypt_ecb:"FEDCBA9876543210":"FFFFFFFFFFFFFFFF":"2A2BB008DF97C2F2"
114
115DES Decrypt OpenSSL Test Vector #1
116des_decrypt_ecb:"0000000000000000":"8CA64DE9C1B123A7":"0000000000000000"
117
118DES Decrypt OpenSSL Test Vector #2
119des_decrypt_ecb:"FFFFFFFFFFFFFFFF":"7359B2163E4EDC58":"FFFFFFFFFFFFFFFF"
120
121DES Decrypt OpenSSL Test Vector #3
122des_decrypt_ecb:"3000000000000000":"958E6E627A05557B":"1000000000000001"
123
124DES Decrypt OpenSSL Test Vector #4
125des_decrypt_ecb:"1111111111111111":"F40379AB9E0EC533":"1111111111111111"
126
127DES Decrypt OpenSSL Test Vector #5
128des_decrypt_ecb:"0123456789ABCDEF":"17668DFC7292532D":"1111111111111111"
129
130DES Decrypt OpenSSL Test Vector #6
131des_decrypt_ecb:"1111111111111111":"8A5AE1F81AB8F2DD":"0123456789ABCDEF"
132
133DES Decrypt OpenSSL Test Vector #7
134des_decrypt_ecb:"0000000000000000":"8CA64DE9C1B123A7":"0000000000000000"
135
136DES Decrypt OpenSSL Test Vector #8
137des_decrypt_ecb:"FEDCBA9876543210":"ED39D950FA74BCC4":"0123456789ABCDEF"
138
139DES Decrypt OpenSSL Test Vector #9
140des_decrypt_ecb:"7CA110454A1A6E57":"690F5B0D9A26939B":"01A1D6D039776742"
141
142DES Decrypt OpenSSL Test Vector #10
143des_decrypt_ecb:"0131D9619DC1376E":"7A389D10354BD271":"5CD54CA83DEF57DA"
144
145DES Decrypt OpenSSL Test Vector #11
146des_decrypt_ecb:"07A1133E4A0B2686":"868EBB51CAB4599A":"0248D43806F67172"
147
148DES Decrypt OpenSSL Test Vector #12
149des_decrypt_ecb:"3849674C2602319E":"7178876E01F19B2A":"51454B582DDF440A"
150
151DES Decrypt OpenSSL Test Vector #13
152des_decrypt_ecb:"04B915BA43FEB5B6":"AF37FB421F8C4095":"42FD443059577FA2"
153
154DES Decrypt OpenSSL Test Vector #14
155des_decrypt_ecb:"0113B970FD34F2CE":"86A560F10EC6D85B":"059B5E0851CF143A"
156
157DES Decrypt OpenSSL Test Vector #15
158des_decrypt_ecb:"0170F175468FB5E6":"0CD3DA020021DC09":"0756D8E0774761D2"
159
160DES Decrypt OpenSSL Test Vector #16
161des_decrypt_ecb:"43297FAD38E373FE":"EA676B2CB7DB2B7A":"762514B829BF486A"
162
163DES Decrypt OpenSSL Test Vector #17
164des_decrypt_ecb:"07A7137045DA2A16":"DFD64A815CAF1A0F":"3BDD119049372802"
165
166DES Decrypt OpenSSL Test Vector #18
167des_decrypt_ecb:"04689104C2FD3B2F":"5C513C9C4886C088":"26955F6835AF609A"
168
169DES Decrypt OpenSSL Test Vector #19
170des_decrypt_ecb:"37D06BB516CB7546":"0A2AEEAE3FF4AB77":"164D5E404F275232"
171
172DES Decrypt OpenSSL Test Vector #20
173des_decrypt_ecb:"1F08260D1AC2465E":"EF1BF03E5DFA575A":"6B056E18759F5CCA"
174
175DES Decrypt OpenSSL Test Vector #21
176des_decrypt_ecb:"584023641ABA6176":"88BF0DB6D70DEE56":"004BD6EF09176062"
177
178DES Decrypt OpenSSL Test Vector #22
179des_decrypt_ecb:"025816164629B007":"A1F9915541020B56":"480D39006EE762F2"
180
181DES Decrypt OpenSSL Test Vector #23
182des_decrypt_ecb:"49793EBC79B3258F":"6FBF1CAFCFFD0556":"437540C8698F3CFA"
183
184DES Decrypt OpenSSL Test Vector #24
185des_decrypt_ecb:"4FB05E1515AB73A7":"2F22E49BAB7CA1AC":"072D43A077075292"
186
187DES Decrypt OpenSSL Test Vector #25
188des_decrypt_ecb:"49E95D6D4CA229BF":"5A6B612CC26CCE4A":"02FE55778117F12A"
189
190DES Decrypt OpenSSL Test Vector #26
191des_decrypt_ecb:"018310DC409B26D6":"5F4C038ED12B2E41":"1D9D5C5018F728C2"
192
193DES Decrypt OpenSSL Test Vector #27
194des_decrypt_ecb:"1C587F1C13924FEF":"63FAC0D034D9F793":"305532286D6F295A"
195
196DES Decrypt OpenSSL Test Vector #28
197des_decrypt_ecb:"0101010101010101":"617B3A0CE8F07100":"0123456789ABCDEF"
198
199DES Decrypt OpenSSL Test Vector #29
200des_decrypt_ecb:"1F1F1F1F0E0E0E0E":"DB958605F8C8C606":"0123456789ABCDEF"
201
202DES Decrypt OpenSSL Test Vector #30
203des_decrypt_ecb:"E0FEE0FEF1FEF1FE":"EDBFD1C66C29CCC7":"0123456789ABCDEF"
204
205DES Decrypt OpenSSL Test Vector #31
206des_decrypt_ecb:"0000000000000000":"355550B2150E2451":"FFFFFFFFFFFFFFFF"
207
208DES Decrypt OpenSSL Test Vector #32
209des_decrypt_ecb:"FFFFFFFFFFFFFFFF":"CAAAAF4DEAF1DBAE":"0000000000000000"
210
211DES Decrypt OpenSSL Test Vector #33
212des_decrypt_ecb:"0123456789ABCDEF":"D5D44FF720683D0D":"0000000000000000"
213
214DES Decrypt OpenSSL Test Vector #34
215des_decrypt_ecb:"FEDCBA9876543210":"2A2BB008DF97C2F2":"FFFFFFFFFFFFFFFF"
216
217DES-CBC Encrypt OpenSSL Test Vector #1
218des_encrypt_cbc:"0123456789abcdef":"fedcba9876543210":"37363534333231204E6F77206973207468652074696D6520":"ccd173ffab2039f4acd8aefddfd8a1eb468e91157888ba68":0
219
220DES-CBC Decrypt OpenSSL Test Vector #1
221des_decrypt_cbc:"0123456789abcdef":"fedcba9876543210":"ccd173ffab2039f4acd8aefddfd8a1eb468e91157888ba68":"37363534333231204E6F77206973207468652074696D6520":0
222
2233DES-ECB 2Key Encrypt OpenSSL Test Vector #1
224des3_encrypt_ecb:2:"0000000000000000FFFFFFFFFFFFFFFF":"0000000000000000":"9295B59BB384736E"
225
2263DES-ECB 2Key Encrypt OpenSSL Test Vector #2
227des3_encrypt_ecb:2:"FFFFFFFFFFFFFFFF3000000000000000":"FFFFFFFFFFFFFFFF":"199E9D6DF39AA816"
228
2293DES-ECB 2Key Decrypt OpenSSL Test Vector #1
230des3_decrypt_ecb:2:"0000000000000000FFFFFFFFFFFFFFFF":"9295B59BB384736E":"0000000000000000"
231
2323DES-ECB 2Key Decrypt OpenSSL Test Vector #2
233des3_decrypt_ecb:2:"FFFFFFFFFFFFFFFF3000000000000000":"199E9D6DF39AA816":"FFFFFFFFFFFFFFFF"
234
2353DES-CBC 3Key Encrypt OpenSSL Test Vector #1
236des3_encrypt_cbc:3:"0123456789abcdeff1e0d3c2b5a49786fedcba9876543210":"fedcba9876543210":"37363534333231204E6F77206973207468652074696D6520":"3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D4":0
237
2383DES-CBC 3Key Decrypt OpenSSL Test Vector #1
239des3_decrypt_cbc:3:"0123456789abcdeff1e0d3c2b5a49786fedcba9876543210":"fedcba9876543210":"3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D4":"37363534333231204E6F77206973207468652074696D6520":0
240
241DES-CBC Encrypt (Invalid input length)
242des_encrypt_cbc:"0123456789abcdef":"fedcba9876543210":"37363534333231204E6F77206973207468652074696D65":"":MBEDTLS_ERR_DES_INVALID_INPUT_LENGTH
243
2443DES-CBC 3Key Encrypt (Invalid input length)
245des3_encrypt_cbc:3:"0123456789abcdeff1e0d3c2b5a49786fedcba9876543210":"fedcba9876543210":"37363534333231204E6F77206973207468652074696D65":"":MBEDTLS_ERR_DES_INVALID_INPUT_LENGTH
246
247Run through parity bit tests
248des_key_parity_run:
249
250DES Selftest
251des_selftest:
252