evp_fips.c 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. /* crypto/evp/evp_fips.c */
  2. /*
  3. * Written by Dr Stephen N Henson ([email protected]) for the OpenSSL
  4. * project.
  5. */
  6. /* ====================================================================
  7. * Copyright (c) 2011 The OpenSSL Project. All rights reserved.
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions
  11. * are met:
  12. *
  13. * 1. Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions and the following disclaimer.
  15. *
  16. * 2. Redistributions in binary form must reproduce the above copyright
  17. * notice, this list of conditions and the following disclaimer in
  18. * the documentation and/or other materials provided with the
  19. * distribution.
  20. *
  21. * 3. All advertising materials mentioning features or use of this
  22. * software must display the following acknowledgment:
  23. * "This product includes software developed by the OpenSSL Project
  24. * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
  25. *
  26. * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
  27. * endorse or promote products derived from this software without
  28. * prior written permission. For written permission, please contact
  29. * [email protected].
  30. *
  31. * 5. Products derived from this software may not be called "OpenSSL"
  32. * nor may "OpenSSL" appear in their names without prior written
  33. * permission of the OpenSSL Project.
  34. *
  35. * 6. Redistributions of any form whatsoever must retain the following
  36. * acknowledgment:
  37. * "This product includes software developed by the OpenSSL Project
  38. * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
  39. *
  40. * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
  41. * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  42. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  43. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
  44. * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  45. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  46. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  47. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  48. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  49. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  50. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  51. * OF THE POSSIBILITY OF SUCH DAMAGE.
  52. * ====================================================================
  53. */
  54. #include <openssl/evp.h>
  55. #ifdef OPENSSL_FIPS
  56. # include <openssl/fips.h>
  57. const EVP_CIPHER *EVP_aes_128_cbc(void)
  58. {
  59. return FIPS_evp_aes_128_cbc();
  60. }
  61. const EVP_CIPHER *EVP_aes_128_ccm(void)
  62. {
  63. return FIPS_evp_aes_128_ccm();
  64. }
  65. const EVP_CIPHER *EVP_aes_128_cfb1(void)
  66. {
  67. return FIPS_evp_aes_128_cfb1();
  68. }
  69. const EVP_CIPHER *EVP_aes_128_cfb128(void)
  70. {
  71. return FIPS_evp_aes_128_cfb128();
  72. }
  73. const EVP_CIPHER *EVP_aes_128_cfb8(void)
  74. {
  75. return FIPS_evp_aes_128_cfb8();
  76. }
  77. const EVP_CIPHER *EVP_aes_128_ctr(void)
  78. {
  79. return FIPS_evp_aes_128_ctr();
  80. }
  81. const EVP_CIPHER *EVP_aes_128_ecb(void)
  82. {
  83. return FIPS_evp_aes_128_ecb();
  84. }
  85. const EVP_CIPHER *EVP_aes_128_gcm(void)
  86. {
  87. return FIPS_evp_aes_128_gcm();
  88. }
  89. const EVP_CIPHER *EVP_aes_128_ofb(void)
  90. {
  91. return FIPS_evp_aes_128_ofb();
  92. }
  93. const EVP_CIPHER *EVP_aes_128_xts(void)
  94. {
  95. return FIPS_evp_aes_128_xts();
  96. }
  97. const EVP_CIPHER *EVP_aes_192_cbc(void)
  98. {
  99. return FIPS_evp_aes_192_cbc();
  100. }
  101. const EVP_CIPHER *EVP_aes_192_ccm(void)
  102. {
  103. return FIPS_evp_aes_192_ccm();
  104. }
  105. const EVP_CIPHER *EVP_aes_192_cfb1(void)
  106. {
  107. return FIPS_evp_aes_192_cfb1();
  108. }
  109. const EVP_CIPHER *EVP_aes_192_cfb128(void)
  110. {
  111. return FIPS_evp_aes_192_cfb128();
  112. }
  113. const EVP_CIPHER *EVP_aes_192_cfb8(void)
  114. {
  115. return FIPS_evp_aes_192_cfb8();
  116. }
  117. const EVP_CIPHER *EVP_aes_192_ctr(void)
  118. {
  119. return FIPS_evp_aes_192_ctr();
  120. }
  121. const EVP_CIPHER *EVP_aes_192_ecb(void)
  122. {
  123. return FIPS_evp_aes_192_ecb();
  124. }
  125. const EVP_CIPHER *EVP_aes_192_gcm(void)
  126. {
  127. return FIPS_evp_aes_192_gcm();
  128. }
  129. const EVP_CIPHER *EVP_aes_192_ofb(void)
  130. {
  131. return FIPS_evp_aes_192_ofb();
  132. }
  133. const EVP_CIPHER *EVP_aes_256_cbc(void)
  134. {
  135. return FIPS_evp_aes_256_cbc();
  136. }
  137. const EVP_CIPHER *EVP_aes_256_ccm(void)
  138. {
  139. return FIPS_evp_aes_256_ccm();
  140. }
  141. const EVP_CIPHER *EVP_aes_256_cfb1(void)
  142. {
  143. return FIPS_evp_aes_256_cfb1();
  144. }
  145. const EVP_CIPHER *EVP_aes_256_cfb128(void)
  146. {
  147. return FIPS_evp_aes_256_cfb128();
  148. }
  149. const EVP_CIPHER *EVP_aes_256_cfb8(void)
  150. {
  151. return FIPS_evp_aes_256_cfb8();
  152. }
  153. const EVP_CIPHER *EVP_aes_256_ctr(void)
  154. {
  155. return FIPS_evp_aes_256_ctr();
  156. }
  157. const EVP_CIPHER *EVP_aes_256_ecb(void)
  158. {
  159. return FIPS_evp_aes_256_ecb();
  160. }
  161. const EVP_CIPHER *EVP_aes_256_gcm(void)
  162. {
  163. return FIPS_evp_aes_256_gcm();
  164. }
  165. const EVP_CIPHER *EVP_aes_256_ofb(void)
  166. {
  167. return FIPS_evp_aes_256_ofb();
  168. }
  169. const EVP_CIPHER *EVP_aes_256_xts(void)
  170. {
  171. return FIPS_evp_aes_256_xts();
  172. }
  173. const EVP_CIPHER *EVP_des_ede(void)
  174. {
  175. return FIPS_evp_des_ede();
  176. }
  177. const EVP_CIPHER *EVP_des_ede3(void)
  178. {
  179. return FIPS_evp_des_ede3();
  180. }
  181. const EVP_CIPHER *EVP_des_ede3_cbc(void)
  182. {
  183. return FIPS_evp_des_ede3_cbc();
  184. }
  185. const EVP_CIPHER *EVP_des_ede3_cfb1(void)
  186. {
  187. return FIPS_evp_des_ede3_cfb1();
  188. }
  189. const EVP_CIPHER *EVP_des_ede3_cfb64(void)
  190. {
  191. return FIPS_evp_des_ede3_cfb64();
  192. }
  193. const EVP_CIPHER *EVP_des_ede3_cfb8(void)
  194. {
  195. return FIPS_evp_des_ede3_cfb8();
  196. }
  197. const EVP_CIPHER *EVP_des_ede3_ecb(void)
  198. {
  199. return FIPS_evp_des_ede3_ecb();
  200. }
  201. const EVP_CIPHER *EVP_des_ede3_ofb(void)
  202. {
  203. return FIPS_evp_des_ede3_ofb();
  204. }
  205. const EVP_CIPHER *EVP_des_ede_cbc(void)
  206. {
  207. return FIPS_evp_des_ede_cbc();
  208. }
  209. const EVP_CIPHER *EVP_des_ede_cfb64(void)
  210. {
  211. return FIPS_evp_des_ede_cfb64();
  212. }
  213. const EVP_CIPHER *EVP_des_ede_ecb(void)
  214. {
  215. return FIPS_evp_des_ede_ecb();
  216. }
  217. const EVP_CIPHER *EVP_des_ede_ofb(void)
  218. {
  219. return FIPS_evp_des_ede_ofb();
  220. }
  221. const EVP_CIPHER *EVP_enc_null(void)
  222. {
  223. return FIPS_evp_enc_null();
  224. }
  225. const EVP_MD *EVP_sha1(void)
  226. {
  227. return FIPS_evp_sha1();
  228. }
  229. const EVP_MD *EVP_sha224(void)
  230. {
  231. return FIPS_evp_sha224();
  232. }
  233. const EVP_MD *EVP_sha256(void)
  234. {
  235. return FIPS_evp_sha256();
  236. }
  237. const EVP_MD *EVP_sha384(void)
  238. {
  239. return FIPS_evp_sha384();
  240. }
  241. const EVP_MD *EVP_sha512(void)
  242. {
  243. return FIPS_evp_sha512();
  244. }
  245. const EVP_MD *EVP_dss(void)
  246. {
  247. return FIPS_evp_dss();
  248. }
  249. const EVP_MD *EVP_dss1(void)
  250. {
  251. return FIPS_evp_dss1();
  252. }
  253. const EVP_MD *EVP_ecdsa(void)
  254. {
  255. return FIPS_evp_ecdsa();
  256. }
  257. #endif