Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/tomcrypt/src/modes/xts/xts_done.c
5972 views
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