Pol  Revision:4b29d2b
cryptbase.cpp File Reference
#include <string.h>
#include "cryptbase.h"

Go to the source code of this file.

Namespaces

 Pol
 
 Pol::Crypt
 

Macros

#define L2N(LL, C)
 
#define N2L(C, LL)
 
#define ROUND(LL, R, S, P)
 

Macro Definition Documentation

#define L2N (   LL,
 
)
Value:
*( ( C )++ ) = (unsigned char)( ( ( LL ) >> 24 ) & 0xff ), \
*( ( C )++ ) = (unsigned char)( ( ( LL ) >> 16 ) & 0xff ), \
*( ( C )++ ) = (unsigned char)( ( ( LL ) >> 8 ) & 0xff ), \
*( ( C )++ ) = (unsigned char)( ( ( LL ) ) & 0xff )

Definition at line 61 of file cryptbase.cpp.

Referenced by Pol::Crypt::BlowFish::Decrypt().

#define N2L (   C,
  LL 
)
Value:
LL = ( (unsigned int)( *( ( C )++ ) ) ) << 24, LL |= ( (unsigned int)( *( ( C )++ ) ) ) << 16, \
LL |= ( (unsigned int)( *( ( C )++ ) ) ) << 8, LL |= ( (unsigned int)( *( ( C )++ ) ) )

Definition at line 58 of file cryptbase.cpp.

Referenced by Pol::Crypt::BlowFish::Decrypt().

#define ROUND (   LL,
  R,
  S,
 
)
Value:
LL ^= P; \
LL ^= ( ( S[( R >> 24 )] + S[0x0100 + ( ( R >> 16 ) & 0xff )] ) ^ \
S[0x0200 + ( ( R >> 8 ) & 0xff )] ) + \
S[0x0300 + ( (R)&0xff )]

Definition at line 66 of file cryptbase.cpp.

Referenced by Pol::Crypt::BlowFish::RawDecrypt().