Skip to content

Commit 42a5133

Browse files
mdcornutkanteck
authored andcommitted
include: [AES-XTS] add compatibility mapping for old definitions
Signed-off-by: Marcel Cornu <[email protected]>
1 parent b1952c6 commit 42a5133

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

include/aes_xts.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,17 @@
103103
extern "C" {
104104
#endif
105105

106+
/*
107+
* Define enums from API v2.24, so applications that were using this version
108+
* will still be compiled successfully.
109+
* This list does not need to be extended for new definitions.
110+
*/
111+
#ifndef NO_COMPAT_ISAL_CRYPTO_API_2_24
112+
/***** Previous hash constants and typedefs *****/
113+
#define AES_XTS_MIN_LEN ISAL_AES_XTS_MIN_LEN
114+
#define AES_XTS_MAX_LEN ISAL_AES_XTS_MAX_LEN
115+
#endif /* !NO_COMPAT_ISAL_CRYPTO_API_2_24 */
116+
106117
#define ISAL_AES_XTS_MIN_LEN 16
107118
#define ISAL_AES_XTS_MAX_LEN (1 << 24)
108119

0 commit comments

Comments
 (0)