36 #define RC2_BLOCK_SIZE (8) 40 #ifdef __ENABLE_ARC2_CIPHERS__ 57 MOC_EXTERN
void rc2_keyschedule(ubyte2 xkey[64],
const ubyte *key, ubyte4 len, ubyte4 bits);
73 MOC_EXTERN
void rc2_encrypt(
const ubyte2 xkey[64],
const ubyte *plain, ubyte *cipher);
89 MOC_EXTERN
void rc2_decrypt(
const ubyte2 xkey[64], ubyte *plain,
const ubyte *cipher);
MOC_EXTERN void rc2_decrypt(const ubyte2 xkey[64], ubyte *plain, const ubyte *cipher)
Decrypts a 64 bit block of data.
MOC_EXTERN void rc2_keyschedule(ubyte2 xkey[64], const ubyte *key, ubyte4 len, ubyte4 bits)
Computes the rc2 key schedule.
MOC_EXTERN void rc2_encrypt(const ubyte2 xkey[64], const ubyte *plain, ubyte *cipher)
Encrypts a 64 bit block of data.