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

Revision 2945, 1.1 KB 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.h
5//              Purpose: Cryptographic keys for backup store files
6//              Created: 12/1/04
7//
8// --------------------------------------------------------------------------
9
10#ifndef BACKUPSTOREFILECRYPTVAR__H
11#define BACKUPSTOREFILECRYPTVAR__H
12
13#include "CipherContext.h"
14
15// Hide private static variables from the rest of the world by putting them
16// as static variables in a namespace.
17// -- don't put them as static class variables to avoid openssl/evp.h being
18// included all over the project.
19namespace BackupStoreFileCryptVar
20{
21        // Keys for the main file data
22        extern CipherContext sBlowfishEncrypt;
23        extern CipherContext sBlowfishDecrypt;
24        // Use AES when available
25#ifndef HAVE_OLD_SSL
26        extern CipherContext sAESEncrypt;
27        extern CipherContext sAESDecrypt;
28#endif
29        // How encoding will be done
30        extern CipherContext *spEncrypt;
31        extern uint8_t sEncryptCipherType;
32
33        // Keys for the block indicies
34        extern CipherContext sBlowfishEncryptBlockEntry;
35        extern CipherContext sBlowfishDecryptBlockEntry;
36}
37
38#endif // BACKUPSTOREFILECRYPTVAR__H
39
Note: See TracBrowser for help on using the repository browser.