diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-06-27 11:49:13 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-06-27 11:49:13 +0200 |
commit | 5d7fe15fdd637c6872e22c47764103ed93344529 (patch) | |
tree | a034762fc0f14f5483a92138b83bf405f6824b72 /libpiano/src | |
parent | 9dc48e886648549c0ab5c5c0181006349ef3d24c (diff) | |
download | pianobar-5d7fe15fdd637c6872e22c47764103ed93344529.tar.gz pianobar-5d7fe15fdd637c6872e22c47764103ed93344529.tar.bz2 pianobar-5d7fe15fdd637c6872e22c47764103ed93344529.zip |
piano: Use uint32_t instead of unsigned long
Diffstat (limited to 'libpiano/src')
-rw-r--r-- | libpiano/src/crypt_key_input.h | 6 | ||||
-rw-r--r-- | libpiano/src/crypt_key_output.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/libpiano/src/crypt_key_input.h b/libpiano/src/crypt_key_input.h index 96750d4..691afcb 100644 --- a/libpiano/src/crypt_key_input.h +++ b/libpiano/src/crypt_key_input.h @@ -24,13 +24,15 @@ THE SOFTWARE. #ifndef _CRYPT_KEY_INPUT_H #define _CRYPT_KEY_INPUT_H +#include <stdint.h> + /* decryption key for last 48 bytes of audio urls * search for rpc.input in the decompiled pandora actionscript */ const unsigned int in_key_n = 16; -static const unsigned long in_key_p [16 + 2] = { +static const uint32_t in_key_p [16 + 2] = { 0x50E2A8D4L, 0x103290CCL, 0x2BCFDB20L, 0xEC665FF6L, 0xA6521A84L, 0x536F33BFL, 0xA2229197L, 0x1B797EF7L, 0x646C1CB4L, 0xCDDE464AL, 0xCA864B25L, 0x20D6E3F7L, @@ -38,7 +40,7 @@ static const unsigned long in_key_p [16 + 2] = { 0xCCEE1164L, 0xF7A94CE1L, }; -static const unsigned long in_key_s [4][256] = {{ +static const uint32_t in_key_s [4][256] = {{ 0x6741D820L, 0x61599D6DL, 0x8513F3BFL, 0xF7A30985L, 0x88DC9FFFL, 0xECB90622L, 0x48C3CEC2L, 0xB1C96B9FL, 0x5E0CAD63L, 0x49BD8C2DL, 0x8875BA79L, 0x5C91F805L, diff --git a/libpiano/src/crypt_key_output.h b/libpiano/src/crypt_key_output.h index db00b7a..7a32bfa 100644 --- a/libpiano/src/crypt_key_output.h +++ b/libpiano/src/crypt_key_output.h @@ -26,9 +26,11 @@ THE SOFTWARE. #ifndef _CRYPT_KEY_OUTPUT_H #define _CRYPT_KEY_OUTPUT_H +#include <stdint.h> + const unsigned int out_key_n = 16; -static const unsigned long out_key_p [16 + 2] = { +static const uint32_t out_key_p [16 + 2] = { 0xC10590ECL, 0xBA979EE1L, 0x04EEE520L, 0x759C8C59L, 0x22804BA7L, 0x7C46EB7AL, 0x21ACF684L, 0xB9A7B8E7L, 0xBEED610AL, 0xDB325139L, 0xDF84AD90L, 0x31FB85C8L, @@ -36,7 +38,7 @@ static const unsigned long out_key_p [16 + 2] = { 0x223BF5EFL, 0xEDA2CDB5L, }; -static const unsigned long out_key_s [4][256] = {{ +static const uint32_t out_key_s [4][256] = {{ 0x9654C859L, 0x909BC929L, 0x6C13EA8EL, 0xFB78C4F8L, 0xA1DD8C99L, 0x9C04168AL, 0x2A43D4A9L, 0x52BE439BL, 0x10040365L, 0x422C267DL, 0x5210312EL, 0x0AD6D8ECL, |