1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis */ 2 /* SPDX-License-Identifier: Unlicense */ 3 #include "tomcrypt_private.h" 4 5 /** 6 Source donated by Elliptic Semiconductor Inc (www.ellipticsemi.com) to the LibTom Projects 7 */ 8 9 #ifdef LTC_XTS_MODE 10 11 /** Terminate XTS state 12 @param xts The state to terminate 13 */ xts_done(symmetric_xts * xts)14void xts_done(symmetric_xts *xts) 15 { 16 LTC_ARGCHKVD(xts != NULL); 17 cipher_descriptor[xts->cipher]->done(&xts->key1); 18 cipher_descriptor[xts->cipher]->done(&xts->key2); 19 } 20 21 #endif 22