1e1051a39Sopenharmony_ci#
2e1051a39Sopenharmony_ci# Copyright 2001-2020 The OpenSSL Project Authors. All Rights Reserved.
3e1051a39Sopenharmony_ci#
4e1051a39Sopenharmony_ci# Licensed under the Apache License 2.0 (the "License").  You may not use
5e1051a39Sopenharmony_ci# this file except in compliance with the License.  You can obtain a copy
6e1051a39Sopenharmony_ci# in the file LICENSE in the source distribution or at
7e1051a39Sopenharmony_ci# https://www.openssl.org/source/license.html
8e1051a39Sopenharmony_ci
9e1051a39Sopenharmony_ci# Tests start with one of these keywords
10e1051a39Sopenharmony_ci#       Cipher Decrypt Derive Digest Encoding KDF MAC PBE
11e1051a39Sopenharmony_ci#       PrivPubKeyPair Sign Verify VerifyRecover
12e1051a39Sopenharmony_ci# and continue until a blank line. Lines starting with a pound sign are ignored.
13e1051a39Sopenharmony_ci
14e1051a39Sopenharmony_ciTitle = KRB5KDF tests (from RFC 3961 test vectors and krb5 sources)
15e1051a39Sopenharmony_ci
16e1051a39Sopenharmony_ci#RFC3961
17e1051a39Sopenharmony_ciKDF = KRB5KDF
18e1051a39Sopenharmony_ciCtrl.cipher = cipher:DES-EDE3-CBC
19e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:dce06b1f64c857a11c3db57c51899b2cc1791008ce973b92
20e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:0000000155
21e1051a39Sopenharmony_ciOutput = 925179d04591a79b5d3192c4a7e9c289b049c71f6ee604cd
22e1051a39Sopenharmony_ci
23e1051a39Sopenharmony_ciKDF = KRB5KDF
24e1051a39Sopenharmony_ciCtrl.cipher = cipher:DES-EDE3-CBC
25e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:5e13d31c70ef765746578531cb51c15bf11ca82c97cee9f2
26e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:00000001aa
27e1051a39Sopenharmony_ciOutput = 9e58e5a146d9942a101c469845d67a20e3c4259ed913f207
28e1051a39Sopenharmony_ci
29e1051a39Sopenharmony_ciKDF = KRB5KDF
30e1051a39Sopenharmony_ciCtrl.cipher = cipher:DES-EDE3-CBC
31e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:98e6fd8a04a4b6859b75a176540b9752bad3ecd610a252bc
32e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:0000000155
33e1051a39Sopenharmony_ciOutput = 13fef80d763e94ec6d13fd2ca1d085070249dad39808eabf
34e1051a39Sopenharmony_ci
35e1051a39Sopenharmony_ciKDF = KRB5KDF
36e1051a39Sopenharmony_ciCtrl.cipher = cipher:DES-EDE3-CBC
37e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:622aec25a2fe2cad7094680b7c64940280084c1a7cec92b5
38e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:00000001aa
39e1051a39Sopenharmony_ciOutput = f8dfbf04b097e6d9dc0702686bcb3489d91fd9a4516b703e
40e1051a39Sopenharmony_ci
41e1051a39Sopenharmony_ciKDF = KRB5KDF
42e1051a39Sopenharmony_ciCtrl.cipher = cipher:DES-EDE3-CBC
43e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:d3f8298ccb166438dcb9b93ee5a7629286a491f838f802fb
44e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:6b65726265726f73
45e1051a39Sopenharmony_ciOutput = 2370da575d2a3da864cebfdc5204d56df779a7df43d9da43
46e1051a39Sopenharmony_ci
47e1051a39Sopenharmony_ciKDF = KRB5KDF
48e1051a39Sopenharmony_ciCtrl.cipher = cipher:DES-EDE3-CBC
49e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:c1081649ada74362e6a1459d01dfd30d67c2234c940704da
50e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:0000000155
51e1051a39Sopenharmony_ciOutput = 348057ec98fdc48016161c2a4c7a943e92ae492c989175f7
52e1051a39Sopenharmony_ci
53e1051a39Sopenharmony_ciKDF = KRB5KDF
54e1051a39Sopenharmony_ciCtrl.cipher = cipher:DES-EDE3-CBC
55e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:5d154af238f46713155719d55e2f1f790dd661f279a7917c
56e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:00000001aa
57e1051a39Sopenharmony_ciOutput = a8808ac267dada3dcbe9a7c84626fbc761c294b01315e5c1
58e1051a39Sopenharmony_ci
59e1051a39Sopenharmony_ciKDF = KRB5KDF
60e1051a39Sopenharmony_ciCtrl.cipher = cipher:DES-EDE3-CBC
61e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:798562e049852f57dc8c343ba17f2ca1d97394efc8adc443
62e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:0000000155
63e1051a39Sopenharmony_ciOutput = c813f88a3be3b334f75425ce9175fbe3c8493b89c8703b49
64e1051a39Sopenharmony_ci
65e1051a39Sopenharmony_ciKDF = KRB5KDF
66e1051a39Sopenharmony_ciCtrl.cipher = cipher:DES-EDE3-CBC
67e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:26dce334b545292f2feab9a8701a89a4b99eb9942cecd016
68e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:00000001aa
69e1051a39Sopenharmony_ciOutput = f48ffd6e83f83e7354e694fd252cf83bfe58f7d5ba37ec5d
70e1051a39Sopenharmony_ci
71e1051a39Sopenharmony_ci#Krb5 sources
72e1051a39Sopenharmony_ciKDF = KRB5KDF
73e1051a39Sopenharmony_ciCtrl.cipher = cipher:DES-EDE3-CBC
74e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:850BB51358548CD05E86768C313E3BFEF7511937DCF72C3E
75e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:0000000299
76e1051a39Sopenharmony_ciOutput = F78C496D16E6C2DAE0E0B6C24057A84C0426AEEF26FD6DCE
77e1051a39Sopenharmony_ci
78e1051a39Sopenharmony_ciKDF = KRB5KDF
79e1051a39Sopenharmony_ciCtrl.cipher = cipher:DES-EDE3-CBC
80e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:850BB51358548CD05E86768C313E3BFEF7511937DCF72C3E
81e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:00000002AA
82e1051a39Sopenharmony_ciOutput = 5B5723D0B634CB684C3EBA5264E9A70D52E683231AD3C4CE
83e1051a39Sopenharmony_ci
84e1051a39Sopenharmony_ciKDF = KRB5KDF
85e1051a39Sopenharmony_ciCtrl.cipher = cipher:DES-EDE3-CBC
86e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:850BB51358548CD05E86768C313E3BFEF7511937DCF72C3E
87e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:0000000255
88e1051a39Sopenharmony_ciOutput = A77C94980E9B7345A81525C423A737CE67F4CD91B6B3DA45
89e1051a39Sopenharmony_ci
90e1051a39Sopenharmony_ciKDF = KRB5KDF
91e1051a39Sopenharmony_ciCtrl.cipher = cipher:AES-128-CBC
92e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:42263C6E89F4FC28B8DF68EE09799F15
93e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:0000000299
94e1051a39Sopenharmony_ciOutput = 34280A382BC92769B2DA2F9EF066854B
95e1051a39Sopenharmony_ci
96e1051a39Sopenharmony_ciKDF = KRB5KDF
97e1051a39Sopenharmony_ciCtrl.cipher = cipher:AES-128-CBC
98e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:42263C6E89F4FC28B8DF68EE09799F15
99e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:00000002AA
100e1051a39Sopenharmony_ciOutput = 5B14FC4E250E14DDF9DCCF1AF6674F53
101e1051a39Sopenharmony_ci
102e1051a39Sopenharmony_ciKDF = KRB5KDF
103e1051a39Sopenharmony_ciCtrl.cipher = cipher:AES-128-CBC
104e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:42263C6E89F4FC28B8DF68EE09799F15
105e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:0000000255
106e1051a39Sopenharmony_ciOutput = 4ED31063621684F09AE8D89991AF3E8F
107e1051a39Sopenharmony_ci
108e1051a39Sopenharmony_ciKDF = KRB5KDF
109e1051a39Sopenharmony_ciCtrl.cipher = cipher:AES-256-CBC
110e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:FE697B52BC0D3CE14432BA036A92E65BBB52280990A2FA27883998D72AF30161
111e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:0000000299
112e1051a39Sopenharmony_ciOutput = BFAB388BDCB238E9F9C98D6A878304F04D30C82556375AC507A7A852790F4674
113e1051a39Sopenharmony_ci
114e1051a39Sopenharmony_ciKDF = KRB5KDF
115e1051a39Sopenharmony_ciCtrl.cipher = cipher:AES-256-CBC
116e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:FE697B52BC0D3CE14432BA036A92E65BBB52280990A2FA27883998D72AF30161
117e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:00000002AA
118e1051a39Sopenharmony_ciOutput = C7CFD9CD75FE793A586A542D87E0D1396F1134A104BB1A9190B8C90ADA3DDF37
119e1051a39Sopenharmony_ci
120e1051a39Sopenharmony_ciKDF = KRB5KDF
121e1051a39Sopenharmony_ciCtrl.cipher = cipher:AES-256-CBC
122e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:FE697B52BC0D3CE14432BA036A92E65BBB52280990A2FA27883998D72AF30161
123e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:0000000255
124e1051a39Sopenharmony_ciOutput = 97151B4C76945063E2EB0529DC067D97D7BBA90776D8126D91F34F3101AEA8BA
125e1051a39Sopenharmony_ci
126e1051a39Sopenharmony_ci#Same as the first but with no "fixup"
127e1051a39Sopenharmony_ciKDF = KRB5KDF
128e1051a39Sopenharmony_ciCtrl.cipher = cipher:DES-EDE3-CBC
129e1051a39Sopenharmony_ciCtrl.hexkey = hexkey:dce06b1f64c857a11c3db57c51899b2cc1791008ce973b92
130e1051a39Sopenharmony_ciCtrl.hexconstant = hexconstant:0000000155
131e1051a39Sopenharmony_ciOutput = 935079d14490a75c3093c4a6e8c3b049c71e6ee705
132