evpkdf_pbkdf2.txt 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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 = PBKDF2 tests
  13. KDF = PBKDF2
  14. Ctrl.pkcs5 = pkcs5:1
  15. Ctrl.pass = pass:password
  16. Ctrl.salt = salt:salt
  17. Ctrl.iter = iter:1
  18. Ctrl.digest = digest:sha1
  19. Output = 0c60c80f961f0e71f3a9b524af6012062fe037a6
  20. KDF = PBKDF2
  21. Ctrl.pkcs5 = pkcs5:1
  22. Ctrl.pass = pass:password
  23. Ctrl.salt = salt:salt
  24. Ctrl.iter = iter:1
  25. Ctrl.digest = digest:sha256
  26. Output = 120fb6cffcf8b32c43e7225256c4f837a86548c92ccc35480805987cb70be17b
  27. KDF = PBKDF2
  28. Ctrl.pkcs5 = pkcs5:1
  29. Ctrl.pass = pass:password
  30. Ctrl.salt = salt:salt
  31. Ctrl.iter = iter:1
  32. Ctrl.digest = digest:sha512
  33. Output = 867f70cf1ade02cff3752599a3a53dc4af34c7a669815ae5d513554e1c8cf252c02d470a285a0501bad999bfe943c08f050235d7d68b1da55e63f73b60a57fce
  34. KDF = PBKDF2
  35. Ctrl.pkcs5 = pkcs5:1
  36. Ctrl.pass = pass:password
  37. Ctrl.salt = salt:salt
  38. Ctrl.iter = iter:2
  39. Ctrl.digest = digest:sha1
  40. Output = ea6c014dc72d6f8ccd1ed92ace1d41f0d8de8957
  41. KDF = PBKDF2
  42. Ctrl.pkcs5 = pkcs5:1
  43. Ctrl.pass = pass:password
  44. Ctrl.salt = salt:salt
  45. Ctrl.iter = iter:2
  46. Ctrl.digest = digest:sha256
  47. Output = ae4d0c95af6b46d32d0adff928f06dd02a303f8ef3c251dfd6e2d85a95474c43
  48. KDF = PBKDF2
  49. Ctrl.pkcs5 = pkcs5:1
  50. Ctrl.pass = pass:password
  51. Ctrl.salt = salt:salt
  52. Ctrl.iter = iter:2
  53. Ctrl.digest = digest:sha512
  54. Output = e1d9c16aa681708a45f5c7c4e215ceb66e011a2e9f0040713f18aefdb866d53cf76cab2868a39b9f7840edce4fef5a82be67335c77a6068e04112754f27ccf4e
  55. KDF = PBKDF2
  56. Ctrl.pkcs5 = pkcs5:1
  57. Ctrl.pass = pass:password
  58. Ctrl.salt = salt:salt
  59. Ctrl.iter = iter:4096
  60. Ctrl.digest = digest:sha1
  61. Output = 4b007901b765489abead49d926f721d065a429c1
  62. KDF = PBKDF2
  63. Ctrl.pkcs5 = pkcs5:1
  64. Ctrl.pass = pass:password
  65. Ctrl.salt = salt:salt
  66. Ctrl.iter = iter:4096
  67. Ctrl.digest = digest:sha256
  68. Output = c5e478d59288c841aa530db6845c4c8d962893a001ce4e11a4963873aa98134a
  69. KDF = PBKDF2
  70. Ctrl.pkcs5 = pkcs5:1
  71. Ctrl.pass = pass:password
  72. Ctrl.salt = salt:salt
  73. Ctrl.iter = iter:4096
  74. Ctrl.digest = digest:sha512
  75. Output = d197b1b33db0143e018b12f3d1d1479e6cdebdcc97c5c0f87f6902e072f457b5143f30602641b3d55cd335988cb36b84376060ecd532e039b742a239434af2d5
  76. KDF = PBKDF2
  77. Ctrl.pass = pass:passwordPASSWORDpassword
  78. Ctrl.salt = salt:saltSALTsaltSALTsaltSALTsaltSALTsalt
  79. Ctrl.iter = iter:4096
  80. Ctrl.digest = digest:sha1
  81. Output = 3d2eec4fe41c849b80c8d83662c0e44a8b291a964cf2f07038
  82. KDF = PBKDF2
  83. Ctrl.pass = pass:passwordPASSWORDpassword
  84. Ctrl.salt = salt:saltSALTsaltSALTsaltSALTsaltSALTsalt
  85. Ctrl.iter = iter:4096
  86. Ctrl.digest = digest:sha256
  87. Output = 348c89dbcbd32b2f32d814b8116e84cf2b17347ebc1800181c4e2a1fb8dd53e1c635518c7dac47e9
  88. KDF = PBKDF2
  89. Ctrl.pass = pass:passwordPASSWORDpassword
  90. Ctrl.salt = salt:saltSALTsaltSALTsaltSALTsaltSALTsalt
  91. Ctrl.iter = iter:4096
  92. Ctrl.digest = digest:sha512
  93. Output = 8c0511f4c6e597c6ac6315d8f0362e225f3c501495ba23b868c005174dc4ee71115b59f9e60cd9532fa33e0f75aefe30225c583a186cd82bd4daea9724a3d3b8
  94. KDF = PBKDF2
  95. Ctrl.pkcs5 = pkcs5:1
  96. Ctrl.hexpass = hexpass:7061737300776f7264
  97. Ctrl.hexsalt = hexsalt:7361006c74
  98. Ctrl.iter = iter:4096
  99. Ctrl.digest = digest:sha1
  100. Output = 56fa6aa75548099dcc37d7f03425e0c3
  101. KDF = PBKDF2
  102. Ctrl.pkcs5 = pkcs5:1
  103. Ctrl.hexpass = hexpass:7061737300776f7264
  104. Ctrl.hexsalt = hexsalt:7361006c74
  105. Ctrl.iter = iter:4096
  106. Ctrl.digest = digest:sha256
  107. Output = 89b69d0516f829893c696226650a8687
  108. KDF = PBKDF2
  109. Ctrl.pkcs5 = pkcs5:1
  110. Ctrl.hexpass = hexpass:7061737300776f7264
  111. Ctrl.hexsalt = hexsalt:7361006c74
  112. Ctrl.iter = iter:4096
  113. Ctrl.digest = digest:sha512
  114. Output = 9d9e9c4cd21fe4be24d5b8244c759665
  115. KDF = PBKDF2
  116. Ctrl.pkcs5 = pkcs5:1
  117. Ctrl.pass = pass:password
  118. Ctrl.salt = salt:salt
  119. Ctrl.iter = iter:4096
  120. Ctrl.digest = digest:sha3-224
  121. Output = 691292bc3683d7d41ea2910f5b3eed23
  122. KDF = PBKDF2
  123. Ctrl.pkcs5 = pkcs5:1
  124. Ctrl.pass = pass:password
  125. Ctrl.salt = salt:salt
  126. Ctrl.iter = iter:4096
  127. Ctrl.digest = digest:sha3-256
  128. Output = 778b6e237a0f49621549ff70d218d208
  129. KDF = PBKDF2
  130. Ctrl.pkcs5 = pkcs5:1
  131. Ctrl.pass = pass:password
  132. Ctrl.salt = salt:salt
  133. Ctrl.iter = iter:4096
  134. Ctrl.digest = digest:sha3-384
  135. Output = 9a5f1e45e8b83f1b259ba72d11c59087
  136. KDF = PBKDF2
  137. Ctrl.pkcs5 = pkcs5:1
  138. Ctrl.pass = pass:password
  139. Ctrl.salt = salt:salt
  140. Ctrl.iter = iter:4096
  141. Ctrl.digest = digest:sha3-512
  142. Output = 2bfaf2d5ceb6d10f5e262cd902488cfd
  143. Title = PBKDF2 tests for empty inputs
  144. KDF = PBKDF2
  145. Ctrl.pkcs5 = pkcs5:1
  146. Ctrl.pass = pass:
  147. Ctrl.salt = salt:salt
  148. Ctrl.iter = iter:1
  149. Ctrl.digest = digest:sha1
  150. Output = a33dddc30478185515311f8752895d36ea4363a2
  151. KDF = PBKDF2
  152. Ctrl.pkcs5 = pkcs5:1
  153. Ctrl.pass = pass:
  154. Ctrl.salt = salt:salt
  155. Ctrl.iter = iter:1
  156. Ctrl.digest = digest:sha256
  157. Output = f135c27993baf98773c5cdb40a5706ce6a345cde
  158. KDF = PBKDF2
  159. Ctrl.pkcs5 = pkcs5:1
  160. Ctrl.pass = pass:
  161. Ctrl.salt = salt:salt
  162. Ctrl.iter = iter:1
  163. Ctrl.digest = digest:sha512
  164. Output = 00ef42cdbfc98d29db20976608e455567fdddf14