projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
AES-XTS block limit.
[openssl.git]
/
crypto
/
modes
/
modes_lcl.h
diff --git
a/crypto/modes/modes_lcl.h
b/crypto/modes/modes_lcl.h
index 0517808faf00f35e329a7fd2a545666a16d5cf65..aed79ffb4f9cf449615f226dd8a6b7f752fd6583 100644
(file)
--- a/
crypto/modes/modes_lcl.h
+++ b/
crypto/modes/modes_lcl.h
@@
-133,6
+133,12
@@
struct gcm128_context {
#endif
};
+/*
+ * The maximum permitted number of cipher blocks per data unit in XTS mode.
+ * Reference IEEE Std 1619-2018.
+ */
+#define XTS_MAX_BLOCKS_PER_DATA_UNIT (1<<20)
+
struct xts128_context {
void *key1, *key2;
block128_f block1, block2;