Skip to content

Commit cc53195

Browse files
committed
Update docs.
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 1192988 commit cc53195

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

doc/crypt.tex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9124,6 +9124,12 @@ \subsection{LTC\_SMALL\_CODE}
91249124
When this is defined some of the code such as the Rijndael and SAFER+ ciphers are replaced with smaller code variants.
91259125
These variants are slower but can save quite a bit of code space.
91269126

9127+
\subsection{LTC\_SMALL\_STACK}
9128+
When this is defined some of the code uses a variant which results in smaller stack sizes.
9129+
Depending on the architecture and other configuration options the results of execution speeed can vary.
9130+
Therefore we try to enable this automatically where it brings an advantage in speed.
9131+
In case you always want smaller stack usage, no matter if it makes the execution slower, you should enable this.
9132+
91279133
\subsection{LTC\_PTHREAD}
91289134
When this is activated all of the descriptor table functions will use pthread locking to ensure thread safe updates to the tables. Note that
91299135
it doesn't prevent a thread that is passively using a table from being messed up by another thread that updates the table.

src/headers/tomcrypt_custom.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@
146146
/* Use small code where possible */
147147
/* #define LTC_SMALL_CODE */
148148

149+
/* Always use small stack sizes where possible */
150+
/* #define LTC_SMALL_STACK */
151+
149152
/* clean the stack of functions which put private information on stack */
150153
/* #define LTC_CLEAN_STACK */
151154

0 commit comments

Comments
 (0)