source: box/trunk/lib/backupstore/BackupStoreFileCryptVar.cpp @ 2945

Revision 2945, 990 bytes checked in by chris, 13 months ago (diff)

Major refactoring to make lib/backupclient depend on lib/backupstore rather
than the other way around. This is needed to allow clients to have all the
code that they'd need to implement local backups (using the Local protocol)
in subsequent commits.

  • Property svn:eol-style set to native
Line 
1// --------------------------------------------------------------------------
2//
3// File
4//              Name:    BackupStoreFileCryptVar.cpp
5//              Purpose: Cryptographic keys for backup store files
6//              Created: 12/1/04
7//
8// --------------------------------------------------------------------------
9
10#include "Box.h"
11
12#include "BackupStoreFileCryptVar.h"
13#include "BackupStoreFileWire.h"
14
15#include "MemLeakFindOn.h"
16
17CipherContext BackupStoreFileCryptVar::sBlowfishEncrypt;
18CipherContext BackupStoreFileCryptVar::sBlowfishDecrypt;
19
20#ifndef HAVE_OLD_SSL
21        CipherContext BackupStoreFileCryptVar::sAESEncrypt;
22        CipherContext BackupStoreFileCryptVar::sAESDecrypt;
23#endif
24
25// Default to blowfish
26CipherContext *BackupStoreFileCryptVar::spEncrypt = &BackupStoreFileCryptVar::sBlowfishEncrypt;
27uint8_t BackupStoreFileCryptVar::sEncryptCipherType = HEADER_BLOWFISH_ENCODING;
28
29CipherContext BackupStoreFileCryptVar::sBlowfishEncryptBlockEntry;
30CipherContext BackupStoreFileCryptVar::sBlowfishDecryptBlockEntry;
31
Note: See TracBrowser for help on using the repository browser.