]> pd.if.org Git - zpackage/blob - libtomcrypt/src/modes/xts/xts_done.c
remove gmp math descriptor
[zpackage] / libtomcrypt / src / modes / xts / xts_done.c
1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
2  *
3  * LibTomCrypt is a library that provides various cryptographic
4  * algorithms in a highly modular and flexible manner.
5  *
6  * The library is free for all purposes without any express
7  * guarantee it works.
8  */
9 #include "tomcrypt.h"
10
11 /**
12   Source donated by Elliptic Semiconductor Inc (www.ellipticsemi.com) to the LibTom Projects
13 */
14
15 #ifdef LTC_XTS_MODE
16
17 /** Terminate XTS state
18    @param xts    The state to terminate
19 */
20 void xts_done(symmetric_xts *xts)
21 {
22    LTC_ARGCHKVD(xts != NULL);
23    cipher_descriptor[xts->cipher].done(&xts->key1);
24    cipher_descriptor[xts->cipher].done(&xts->key2);
25 }
26
27 #endif
28
29 /* ref:         $Format:%D$ */
30 /* git commit:  $Format:%H$ */
31 /* commit time: $Format:%ai$ */