~ubuntu-branches/ubuntu/vivid/unrar-nonfree/vivid

« back to all changes in this revision

Viewing changes to crypt.cpp

  • Committer: Package Import Robot
  • Author(s): Martin Meredith
  • Date: 2015-02-03 12:58:01 UTC
  • mfrom: (1.1.18) (5.1.18 sid)
  • Revision ID: package-import@ubuntu.com-20150203125801-od6ev8cqy1er51vz
Tags: 1:5.2.5-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
CryptData::CryptData()
12
12
{
13
13
  Method=CRYPT_NONE;
14
 
  memset(KDFCache,0,sizeof(KDFCache));
15
 
  KDFCachePos=0;
 
14
  memset(KDF3Cache,0,sizeof(KDF3Cache));
 
15
  memset(KDF5Cache,0,sizeof(KDF5Cache));
 
16
  KDF3CachePos=0;
 
17
  KDF5CachePos=0;
16
18
  memset(CRCTab,0,sizeof(CRCTab));
17
19
}
18
20
 
19
21
 
20
22
CryptData::~CryptData()
21
23
{
22
 
  cleandata(KDFCache,sizeof(KDFCache));
 
24
  cleandata(KDF3Cache,sizeof(KDF3Cache));
 
25
  cleandata(KDF5Cache,sizeof(KDF5Cache));
23
26
}
24
27
 
25
28