Skip to content

Commit

Permalink
include: [AES-XTS] add compatibility mapping for old definitions
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Cornu <marcel.d.cornu@intel.com>
  • Loading branch information
mdcornu authored and tkanteck committed May 20, 2024
1 parent b1952c6 commit 42a5133
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/aes_xts.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@
extern "C" {
#endif

/*
* Define enums from API v2.24, so applications that were using this version
* will still be compiled successfully.
* This list does not need to be extended for new definitions.
*/
#ifndef NO_COMPAT_ISAL_CRYPTO_API_2_24
/***** Previous hash constants and typedefs *****/
#define AES_XTS_MIN_LEN ISAL_AES_XTS_MIN_LEN
#define AES_XTS_MAX_LEN ISAL_AES_XTS_MAX_LEN
#endif /* !NO_COMPAT_ISAL_CRYPTO_API_2_24 */

#define ISAL_AES_XTS_MIN_LEN 16
#define ISAL_AES_XTS_MAX_LEN (1 << 24)

Expand Down

0 comments on commit 42a5133

Please sign in to comment.