| 1 |
TYPEMAP |
| 2 |
Crypt::Eksblowfish::Subkeyed T_PTROBJ |
| 3 |
Crypt::Eksblowfish T_PTROBJ |
| 4 |
Crypt::Eksblowfish::Blowfish T_PTROBJ |
| 5 |
Crypt::Eksblowfish::Uklblowfish T_PTROBJ |
| 6 |
BF_block T_BF_BLOCK |
| 7 |
|
| 8 |
INPUT |
| 9 |
T_BF_BLOCK |
| 10 |
{ |
| 11 |
STRLEN bfb_len; |
| 12 |
U8 *bfb_octets; |
| 13 |
bool bfb_tofree; |
| 14 |
sv_to_octets(&bfb_octets, &bfb_len, &bfb_tofree, $arg); |
| 15 |
if(bfb_len != 8) { |
| 16 |
if(bfb_tofree) Safefree(bfb_octets); |
| 17 |
croak(\"block must be exactly eight octets long\"); |
| 18 |
} |
| 19 |
$var = import_block(bfb_octets); |
| 20 |
if(bfb_tofree) Safefree(bfb_octets); |
| 21 |
} |
| 22 |
|
| 23 |
OUTPUT |
| 24 |
T_BF_BLOCK |
| 25 |
{ |
| 26 |
U8 bfb_octets[8]; |
| 27 |
export_block($var, (unsigned char *)bfb_octets); |
| 28 |
sv_setpvn($arg, (char*)bfb_octets, 8); |
| 29 |
SvUTF8_off($arg); |
| 30 |
} |