Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumblekit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Krautz <mikkel@krautz.dk>2011-11-18 01:18:01 +0400
committerMikkel Krautz <mikkel@krautz.dk>2011-11-18 01:18:01 +0400
commite0f397a271208273a85b889833e7e248bb093986 (patch)
tree85d9ea66864fd26cb95451e323ecaf0667c904e1 /src/CryptState.h
parentad76a3b985eb7f9214332a059624f0e1ef8bda0e (diff)
Convert tabs to 4 spaces, to be in sync with Xcode 4 defaults.
Diffstat (limited to 'src/CryptState.h')
-rw-r--r--src/CryptState.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/CryptState.h b/src/CryptState.h
index 40e3cb7..7fb0915 100644
--- a/src/CryptState.h
+++ b/src/CryptState.h
@@ -36,39 +36,39 @@
namespace MumbleClient {
class CryptState {
- private:
- unsigned char raw_key[AES_BLOCK_SIZE];
- unsigned char encrypt_iv[AES_BLOCK_SIZE];
- unsigned char decrypt_iv[AES_BLOCK_SIZE];
- unsigned char decrypt_history[0x100];
-
- unsigned int uiGood;
- unsigned int uiLate;
- unsigned int uiLost;
- unsigned int uiResync;
-
- unsigned int uiRemoteGood;
- unsigned int uiRemoteLate;
- unsigned int uiRemoteLost;
- unsigned int uiRemoteResync;
-
- AES_KEY encrypt_key;
- AES_KEY decrypt_key;
- bool bInit;
-
- public:
- CryptState();
-
- bool isValid() const;
- void genKey();
- void setKey(const unsigned char* rkey, const unsigned char* eiv, const unsigned char* div);
- void setDecryptIV(const unsigned char* iv);
-
- void ocb_encrypt(const unsigned char* plain, unsigned char* encrypted, unsigned int len, const unsigned char* nonce, unsigned char* tag);
- void ocb_decrypt(const unsigned char* encrypted, unsigned char* plain, unsigned int len, const unsigned char* nonce, unsigned char* tag);
-
- bool decrypt(const unsigned char* source, unsigned char* dst, unsigned int crypted_length);
- void encrypt(const unsigned char* source, unsigned char* dst, unsigned int plain_length);
+ private:
+ unsigned char raw_key[AES_BLOCK_SIZE];
+ unsigned char encrypt_iv[AES_BLOCK_SIZE];
+ unsigned char decrypt_iv[AES_BLOCK_SIZE];
+ unsigned char decrypt_history[0x100];
+
+ unsigned int uiGood;
+ unsigned int uiLate;
+ unsigned int uiLost;
+ unsigned int uiResync;
+
+ unsigned int uiRemoteGood;
+ unsigned int uiRemoteLate;
+ unsigned int uiRemoteLost;
+ unsigned int uiRemoteResync;
+
+ AES_KEY encrypt_key;
+ AES_KEY decrypt_key;
+ bool bInit;
+
+ public:
+ CryptState();
+
+ bool isValid() const;
+ void genKey();
+ void setKey(const unsigned char* rkey, const unsigned char* eiv, const unsigned char* div);
+ void setDecryptIV(const unsigned char* iv);
+
+ void ocb_encrypt(const unsigned char* plain, unsigned char* encrypted, unsigned int len, const unsigned char* nonce, unsigned char* tag);
+ void ocb_decrypt(const unsigned char* encrypted, unsigned char* plain, unsigned int len, const unsigned char* nonce, unsigned char* tag);
+
+ bool decrypt(const unsigned char* source, unsigned char* dst, unsigned int crypted_length);
+ void encrypt(const unsigned char* source, unsigned char* dst, unsigned int plain_length);
};
} // end namespace MumbleClient