comparison libtomcrypt/src/modes/xts/xts_done.c @ 1471:6dba84798cd5

Update to libtomcrypt 1.18.1, merged with Dropbear changes
author Matt Johnston <matt@ucc.asn.au>
date Fri, 09 Feb 2018 21:44:05 +0800
parents f849a5ca2efc
children
comparison
equal deleted inserted replaced
1470:8bba51a55704 1471:6dba84798cd5
3 * LibTomCrypt is a library that provides various cryptographic 3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner. 4 * algorithms in a highly modular and flexible manner.
5 * 5 *
6 * The library is free for all purposes without any express 6 * The library is free for all purposes without any express
7 * guarantee it works. 7 * guarantee it works.
8 *
9 * Tom St Denis, [email protected], http://libtom.org
10 */ 8 */
11 #include "tomcrypt.h" 9 #include "tomcrypt.h"
12 10
13 /** 11 /**
14 Source donated by Elliptic Semiconductor Inc (www.ellipticsemi.com) to the LibTom Projects 12 Source donated by Elliptic Semiconductor Inc (www.ellipticsemi.com) to the LibTom Projects
15 */ 13 */
16 14
17 #ifdef LTC_XTS_MODE 15 #ifdef LTC_XTS_MODE
18 16
19 /** Terminate XTS state 17 /** Terminate XTS state
20 @param XTS The state to terminate 18 @param xts The state to terminate
21 */ 19 */
22 void xts_done(symmetric_xts *xts) 20 void xts_done(symmetric_xts *xts)
23 { 21 {
24 LTC_ARGCHKVD(xts != NULL); 22 LTC_ARGCHKVD(xts != NULL);
25 cipher_descriptor[xts->cipher].done(&xts->key1); 23 cipher_descriptor[xts->cipher].done(&xts->key1);
26 cipher_descriptor[xts->cipher].done(&xts->key2); 24 cipher_descriptor[xts->cipher].done(&xts->key2);
27 } 25 }
28 26
29 #endif 27 #endif
30 28
31 /* $Source$ */ 29 /* ref: $Format:%D$ */
32 /* $Revision$ */ 30 /* git commit: $Format:%H$ */
33 /* $Date$ */ 31 /* commit time: $Format:%ai$ */
34