| 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. |
|---|
| 19 | namespace 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 | |
|---|