The unified diff between revisions [92f17752..] and [11a5f681..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'src/adler32.cpp'
#
#
# patch "src/adler32.cpp"
# from [fc7a132ca903c4372de684ca6c1dbb8a9a33ef97]
# to [1900c072822feeed9ad2d5f0272021fccfced218]
#
============================================================
--- src/adler32.cpp fc7a132ca903c4372de684ca6c1dbb8a9a33ef97
+++ src/adler32.cpp 1900c072822feeed9ad2d5f0272021fccfced218
@@ -1,10 +1,10 @@
/*************************************************
* Adler32 Source File *
-* (C) 1999-2006 The Botan Project *
+* (C) 1999-2007 Jack Lloyd *
*************************************************/
#include <botan/adler32.h>
-#include <botan/bit_ops.h>
+#include <botan/loadstor.h>
namespace Botan {
@@ -65,10 +65,7 @@ void Adler32::final_result(byte output[]
*************************************************/
void Adler32::final_result(byte output[])
{
- output[0] = get_byte(2, S2);
- output[1] = get_byte(3, S2);
- output[2] = get_byte(2, S1);
- output[3] = get_byte(3, S1);
+ store_be(output, S2, S1);
clear();
}