blob: adde6987ffcaf6e18acdac1f885027b7d1de4f18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include "uint32_unpack.h"
crypto_uint32 uint32_unpack(const unsigned char *x)
{
crypto_uint32 result;
result = x[3];
result <<= 8; result |= x[2];
result <<= 8; result |= x[1];
result <<= 8; result |= x[0];
return result;
}
|