diff options
author | Chris Wilson <chris+github@qwirx.com> | 2011-04-26 18:44:26 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2011-04-26 18:44:26 +0000 |
commit | 1fe4e9308b8f50dbe70cc69bd500eb829a11b460 (patch) | |
tree | 738a016038b1bfbca588f688938d0d34fc55c06a /lib/backupstore/BackupStoreFileCryptVar.cpp | |
parent | 848ec8ab81adfa1c8d10e87c047c9db3ec6654b4 (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.
Diffstat (limited to 'lib/backupstore/BackupStoreFileCryptVar.cpp')
-rw-r--r-- | lib/backupstore/BackupStoreFileCryptVar.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/backupstore/BackupStoreFileCryptVar.cpp b/lib/backupstore/BackupStoreFileCryptVar.cpp new file mode 100644 index 00000000..e826de4e --- /dev/null +++ b/lib/backupstore/BackupStoreFileCryptVar.cpp @@ -0,0 +1,31 @@ +// -------------------------------------------------------------------------- +// +// File +// Name: BackupStoreFileCryptVar.cpp +// Purpose: Cryptographic keys for backup store files +// Created: 12/1/04 +// +// -------------------------------------------------------------------------- + +#include "Box.h" + +#include "BackupStoreFileCryptVar.h" +#include "BackupStoreFileWire.h" + +#include "MemLeakFindOn.h" + +CipherContext BackupStoreFileCryptVar::sBlowfishEncrypt; +CipherContext BackupStoreFileCryptVar::sBlowfishDecrypt; + +#ifndef HAVE_OLD_SSL + CipherContext BackupStoreFileCryptVar::sAESEncrypt; + CipherContext BackupStoreFileCryptVar::sAESDecrypt; +#endif + +// Default to blowfish +CipherContext *BackupStoreFileCryptVar::spEncrypt = &BackupStoreFileCryptVar::sBlowfishEncrypt; +uint8_t BackupStoreFileCryptVar::sEncryptCipherType = HEADER_BLOWFISH_ENCODING; + +CipherContext BackupStoreFileCryptVar::sBlowfishEncryptBlockEntry; +CipherContext BackupStoreFileCryptVar::sBlowfishDecryptBlockEntry; + |