cryspr-config.h 904 B

123456789101112131415161718192021222324252627282930
  1. #ifndef INC_SRT_CRYSPR_CONFIG_H
  2. #define INC_SRT_CRYSPR_CONFIG_H
  3. // Size of the single block for encryption.
  4. // This might need tweaking for particular implementation library.
  5. #define CRYSPR_AESBLKSZ 16 /* 128-bit */
  6. #if defined(USE_OPENSSL)
  7. #include "cryspr-openssl.h"
  8. #define cryspr4SRT() crysprOpenSSL()
  9. #define CRYSPR_IMPL_DESC "OpenSSL-AES"
  10. #elif defined(USE_OPENSSL_EVP)
  11. #include "cryspr-openssl-evp.h"
  12. #define cryspr4SRT() crysprOpenSSL_EVP()
  13. #define CRYSPR_IMPL_DESC "OpenSSL-EVP"
  14. #elif defined(USE_GNUTLS)
  15. #include "cryspr-gnutls.h"
  16. #define cryspr4SRT() crysprGnuTLS()
  17. #define CRYSPR_IMPL_DESC "GnuTLS"
  18. #elif defined(USE_MBEDTLS)
  19. #include "cryspr-mbedtls.h"
  20. #define cryspr4SRT() crysprMbedtls()
  21. #define CRYSPR_IMPL_DESC "MbedTLS"
  22. #else
  23. #error Cryspr implementation not selected. Please define USE_* + OPENSSL/GNUTLS/MBEDTLS.
  24. #define CRYSPR_IMPL_DESC "No Cipher"
  25. #endif
  26. #endif