2023-01-04 11:56:33 +00:00
|
|
|
#ifndef INC_SRT_CRYSPR_CONFIG_H
|
|
|
|
#define INC_SRT_CRYSPR_CONFIG_H
|
2021-05-16 08:14:00 +00:00
|
|
|
|
|
|
|
// Size of the single block for encryption.
|
|
|
|
// This might need tweaking for particular implementation library.
|
|
|
|
#define CRYSPR_AESBLKSZ 16 /* 128-bit */
|
|
|
|
|
|
|
|
#if defined(USE_OPENSSL)
|
|
|
|
#include "cryspr-openssl.h"
|
|
|
|
#define cryspr4SRT() crysprOpenSSL()
|
2023-01-04 11:56:33 +00:00
|
|
|
#define CRYSPR_IMPL_DESC "OpenSSL-AES"
|
|
|
|
#elif defined(USE_OPENSSL_EVP)
|
|
|
|
#include "cryspr-openssl-evp.h"
|
|
|
|
#define cryspr4SRT() crysprOpenSSL_EVP()
|
|
|
|
#define CRYSPR_IMPL_DESC "OpenSSL-EVP"
|
2021-05-16 08:14:00 +00:00
|
|
|
#elif defined(USE_GNUTLS)
|
|
|
|
#include "cryspr-gnutls.h"
|
|
|
|
#define cryspr4SRT() crysprGnuTLS()
|
2023-01-04 11:56:33 +00:00
|
|
|
#define CRYSPR_IMPL_DESC "GnuTLS"
|
2021-05-16 08:14:00 +00:00
|
|
|
#elif defined(USE_MBEDTLS)
|
|
|
|
#include "cryspr-mbedtls.h"
|
|
|
|
#define cryspr4SRT() crysprMbedtls()
|
2023-01-04 11:56:33 +00:00
|
|
|
#define CRYSPR_IMPL_DESC "MbedTLS"
|
2021-05-16 08:14:00 +00:00
|
|
|
#else
|
|
|
|
#error Cryspr implementation not selected. Please define USE_* + OPENSSL/GNUTLS/MBEDTLS.
|
2023-01-04 11:56:33 +00:00
|
|
|
#define CRYSPR_IMPL_DESC "No Cipher"
|
2021-05-16 08:14:00 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|