ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Crypt-Spritz/Spritz.xs
(Generate patch)

Comparing Crypt-Spritz/Spritz.xs (file contents):
Revision 1.2 by root, Sat Jan 10 04:14:17 2015 UTC vs.
Revision 1.3 by root, Sat Jan 10 04:56:38 2015 UTC

125 RETVAL 125 RETVAL
126 126
127void 127void
128crypt_inplace (Crypt::Spritz self, SV *I) 128crypt_inplace (Crypt::Spritz self, SV *I)
129 CODE: 129 CODE:
130 sv_force_normal (I);
130{ 131{
131 STRLEN len; char *ptr = SvPVbyte (I, len); 132 STRLEN len; char *ptr = SvPVbyte (I, len);
132 spritz_cipher_xor_crypt (self, ptr, ptr, len); 133 spritz_cipher_xor_crypt (self, ptr, ptr, len);
133} 134}
134 135
180 RETVAL 181 RETVAL
181 182
182void 183void
183crypt_inplace (Crypt::Spritz self, SV *I) 184crypt_inplace (Crypt::Spritz self, SV *I)
184 CODE: 185 CODE:
186 sv_force_normal (I);
185{ 187{
186 STRLEN len; char *ptr = SvPVbyte (I, len); 188 STRLEN len; char *ptr = SvPVbyte (I, len);
187 spritz_aead_xor_crypt (self, ptr, ptr, len); 189 spritz_aead_xor_crypt (self, ptr, ptr, len);
188} 190}
189 191

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines