-
Notifications
You must be signed in to change notification settings - Fork 856
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added mbedtls encryption library choice for haicrypt (#748)
* Added mbedtls encryption library choice for haicrypt
- Loading branch information
Showing
9 changed files
with
401 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef INC__CRYSPR_CONFIG_H | ||
#define INC__CRYSPR_CONFIG_H | ||
|
||
// 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() | ||
#elif defined(USE_GNUTLS) | ||
#include "cryspr-gnutls.h" | ||
#define cryspr4SRT() crysprGnuTLS() | ||
#elif defined(USE_MBEDTLS) | ||
#include "cryspr-mbedtls.h" | ||
#define cryspr4SRT() crysprMbedtls() | ||
#else | ||
#error Cryspr implementation not selected. Please define USE_* + OPENSSL/GNUTLS/MBEDTLS. | ||
#endif | ||
|
||
|
||
#endif |
Oops, something went wrong.