summaryrefslogtreecommitdiff
path: root/indra/llmessage/llnullcipher.h
blob: bc8c2f2fa3a0db3724980670242619b252dcaa04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/** 
 * @file llnullcipher.h
 *
 * Copyright (c) 2003-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

#ifndef LLNULLCIPHER_H
#define LLNULLCIPHER_H

#include "llcipher.h"

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Class LLNullCipher
//
// A class which implements LLCipher, but does not transform src
// during encryption.
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

class LLNullCipher : public LLCipher
{
public:
	LLNullCipher() {}
	virtual ~LLNullCipher() {}
	virtual U32 encrypt(const U8* src, U32 src_len, U8* dst, U32 dst_len);
	virtual U32 decrypt(const U8* src, U32 src_len, U8* dst, U32 dst_len);
	virtual U32 requiredEncryptionSpace(U32 src_len) const;
};

#endif