cipher_wrap.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /**
  2. * \file cipher_wrap.h
  3. *
  4. * \brief Cipher wrappers.
  5. *
  6. * \author Adriaan de Jong <dejong@fox-it.com>
  7. *
  8. * Copyright (C) 2006-2010, Brainspark B.V.
  9. *
  10. * This file is part of PolarSSL (http://www.polarssl.org)
  11. * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
  12. *
  13. * All rights reserved.
  14. *
  15. * This program is free software; you can redistribute it and/or modify
  16. * it under the terms of the GNU General Public License as published by
  17. * the Free Software Foundation; either version 2 of the License, or
  18. * (at your option) any later version.
  19. *
  20. * This program is distributed in the hope that it will be useful,
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. * GNU General Public License for more details.
  24. *
  25. * You should have received a copy of the GNU General Public License along
  26. * with this program; if not, write to the Free Software Foundation, Inc.,
  27. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  28. */
  29. #include "config.h"
  30. #include "polarssl/cipher.h"
  31. #ifndef POLARSSL_CIPHER_WRAP_H
  32. #define POLARSSL_CIPHER_WRAP_H
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. #if defined(POLARSSL_AES_C)
  37. extern const cipher_info_t aes_128_cbc_info;
  38. extern const cipher_info_t aes_192_cbc_info;
  39. extern const cipher_info_t aes_256_cbc_info;
  40. #if defined(POLARSSL_CIPHER_MODE_CFB)
  41. extern const cipher_info_t aes_128_cfb128_info;
  42. extern const cipher_info_t aes_192_cfb128_info;
  43. extern const cipher_info_t aes_256_cfb128_info;
  44. #endif /* POLARSSL_CIPHER_MODE_CFB */
  45. #if defined(POLARSSL_CIPHER_MODE_CTR)
  46. extern const cipher_info_t aes_128_ctr_info;
  47. extern const cipher_info_t aes_192_ctr_info;
  48. extern const cipher_info_t aes_256_ctr_info;
  49. #endif /* POLARSSL_CIPHER_MODE_CTR */
  50. #endif /* defined(POLARSSL_AES_C) */
  51. #if defined(POLARSSL_CAMELLIA_C)
  52. extern const cipher_info_t camellia_128_cbc_info;
  53. extern const cipher_info_t camellia_192_cbc_info;
  54. extern const cipher_info_t camellia_256_cbc_info;
  55. #if defined(POLARSSL_CIPHER_MODE_CFB)
  56. extern const cipher_info_t camellia_128_cfb128_info;
  57. extern const cipher_info_t camellia_192_cfb128_info;
  58. extern const cipher_info_t camellia_256_cfb128_info;
  59. #endif /* POLARSSL_CIPHER_MODE_CFB */
  60. #if defined(POLARSSL_CIPHER_MODE_CTR)
  61. extern const cipher_info_t camellia_128_ctr_info;
  62. extern const cipher_info_t camellia_192_ctr_info;
  63. extern const cipher_info_t camellia_256_ctr_info;
  64. #endif /* POLARSSL_CIPHER_MODE_CTR */
  65. #endif /* defined(POLARSSL_CAMELLIA_C) */
  66. #if defined(POLARSSL_DES_C)
  67. extern const cipher_info_t des_cbc_info;
  68. extern const cipher_info_t des_ede_cbc_info;
  69. extern const cipher_info_t des_ede3_cbc_info;
  70. #endif /* defined(POLARSSL_DES_C) */
  71. #ifdef __cplusplus
  72. }
  73. #endif
  74. #endif /* POLARSSL_CIPHER_WRAP_H */