Home | History | Annotate | Download | only in libtomcrypt

Lines Matching refs:lrw

941 the salted IV, and is only meant to allow seeking within a session.  In LRW, it changes the tweak, forcing a computation of the tweak pad, allowing for
1032 \subsection{LRW Mode}
1033 LRW mode is a cipher mode which is meant for indexed encryption like used to handle storage media. It is meant to have efficient seeking and overcome the
1039 To initialize LRW mode use:
1041 \index{lrw\_start()}
1049 symmetric_LRW *lrw);
1052 This will initialize the LRW context with the given (16 octet) \textit{IV}, cipher $K_1$ \textit{key} of length \textit{keylen} octets and the (16 octet) $K_2$ \textit{tweak}.
1053 While LRW was specified to be used only with AES, LibTomCrypt will allow any 128--bit block cipher to be specified as indexed by \textit{cipher}. The
1058 \index{lrw\_encrypt()} \index{lrw\_decrypt()}
1063 symmetric_LRW *lrw);
1068 symmetric_LRW *lrw);
1072 of 16. The LRW code uses a fast tweak update such that consecutive blocks are encrypted faster than if random seeking where used.
1076 \index{lrw\_getiv()} \index{lrw\_setiv()}
1080 symmetric_LRW *lrw);
1084 symmetric_LRW *lrw);
1089 To terminate the LRW state use the following:
1091 \index{lrw\_done()}
1093 int lrw_done(symmetric_LRW *lrw);
5503 /** Accelerated LRW
5508 @param tweak The LRW tweak
5519 /** Accelerated LRW
5524 @param tweak The LRW tweak
5706 \subsubsection{Accelerated LRW}
5707 These functions are meant for accelerated LRW. They process blocks of input in lengths of multiples of 16 octets. They must accept the \textit{IV} and \textit{tweak}
5708 state variables and updated them prior to returning. Note that you may want to disable \textbf{LRW\_TABLES} in \textit{tomcrypt\_custom.h} if you intend
5709 to use accelerators for LRW.
5711 While both encrypt and decrypt accelerators are not required it is suggested as it makes lrw\_setiv() more efficient.
5713 Note that calling lrw\_done() will only invoke the cipher\_descriptor[].done() function on the \textit{symmetric\_key} parameter of the LRW state. That means
5714 if your device requires any (LRW specific) resources you should free them in your ciphers() done function. The simplest way to think of it is to write
5715 the plugin solely to do LRW with the cipher. That way cipher\_descriptor[].setup() means to init LRW resources and cipher\_descriptor[].done() means to