evpkdf_krb5.txt 4.7 KB

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