diff options
Diffstat (limited to 'linden/indra/llmessage/llnullcipher.cpp')
-rw-r--r-- | linden/indra/llmessage/llnullcipher.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/llmessage/llnullcipher.cpp b/linden/indra/llmessage/llnullcipher.cpp index 1b60e44..ad2b25f 100644 --- a/linden/indra/llmessage/llnullcipher.cpp +++ b/linden/indra/llmessage/llnullcipher.cpp | |||
@@ -27,33 +27,33 @@ | |||
27 | 27 | ||
28 | #include "linden_common.h" | 28 | #include "linden_common.h" |
29 | 29 | ||
30 | #include "llcrypto.h" | 30 | #include "llnullcipher.h" |
31 | 31 | ||
32 | ///---------------------------------------------------------------------------- | 32 | ///---------------------------------------------------------------------------- |
33 | /// Class LLNullCipher | 33 | /// Class LLNullCipher |
34 | ///---------------------------------------------------------------------------- | 34 | ///---------------------------------------------------------------------------- |
35 | 35 | ||
36 | BOOL LLNullCipher::encrypt(const U8* src, U32 src_len, U8* dst, U32 dst_len) | 36 | U32 LLNullCipher::encrypt(const U8* src, U32 src_len, U8* dst, U32 dst_len) |
37 | { | 37 | { |
38 | if((src_len == dst_len) && src && dst) | 38 | if((src_len == dst_len) && src && dst) |
39 | { | 39 | { |
40 | memmove(dst, src, src_len); | 40 | memmove(dst, src, src_len); |
41 | return TRUE; | 41 | return src_len; |
42 | } | 42 | } |
43 | return FALSE; | 43 | return 0; |
44 | } | 44 | } |
45 | 45 | ||
46 | BOOL LLNullCipher::decrypt(const U8* src, U32 src_len, U8* dst, U32 dst_len) | 46 | U32 LLNullCipher::decrypt(const U8* src, U32 src_len, U8* dst, U32 dst_len) |
47 | { | 47 | { |
48 | if((src_len == dst_len) && src && dst) | 48 | if((src_len == dst_len) && src && dst) |
49 | { | 49 | { |
50 | memmove(dst, src, src_len); | 50 | memmove(dst, src, src_len); |
51 | return TRUE; | 51 | return src_len; |
52 | } | 52 | } |
53 | return FALSE; | 53 | return 0; |
54 | } | 54 | } |
55 | 55 | ||
56 | U32 LLNullCipher::requiredEncryptionSpace(U32 len) | 56 | U32 LLNullCipher::requiredEncryptionSpace(U32 len) const |
57 | { | 57 | { |
58 | return len; | 58 | return len; |
59 | } | 59 | } |