Crypt-OpenSSL-Blowfish
view release on metacpan or search on metacpan
Blowfish.xs view on Meta::CPAN
/* Matthew Newton @mcnewton */
/* See hexdump.xs for LICENSE information */
/*==========================================================*/
#ifdef INCLUDE_HEXDUMP
#include "hexdump.xs"
#endif
/*==================================================*/
/* */
/* Macro to swap from little endian to big endian */
/* */
/*==================================================*/
# undef n2l
# define n2l(c,l) (l =((unsigned long)(*((c)++)))<<24L, \
l|=((unsigned long)(*((c)++)))<<16L, \
l|=((unsigned long)(*((c)++)))<< 8L, \
l|=((unsigned long)(*((c)++))))
/*==================================================*/
/* */
/* Macro to swap from big endian to little endian */
/* */
/*==================================================*/
# undef l2n
# define l2n(l,c) (*((c)++)=(unsigned char)(((l)>>24L)&0xff), \
*((c)++)=(unsigned char)(((l)>>16L)&0xff), \
*((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
*((c)++)=(unsigned char)(((l) )&0xff))
/*============================================*/
/* */
( run in 0.495 second using v1.01-cache-2.11-cpan-0d8aa00de5b )