]> Dogcows Code - chaz/p5-File-KDBX-XS/blobdiff - XS.xs
set a version in repo Makefile.PL
[chaz/p5-File-KDBX-XS] / XS.xs
diff --git a/XS.xs b/XS.xs
index 4d0e6e64d193bce2e0410488796b77a219b3a7e8..48f3077be972f7cb20ae84028f74780d6e74c51b 100644 (file)
--- a/XS.xs
+++ b/XS.xs
@@ -6,10 +6,22 @@
 
 #include "tomcrypt.h"
 
-MODULE = File::KDBX::XS  PACKAGE = File::KDBX::KDF::AES
+MODULE = File::KDBX::XS  PACKAGE = File::KDBX::XS
+
+PROTOTYPES: DISABLE
 
 SV*
-_transform_half_xs(const char* key, const char* seed, unsigned int rounds)
+CowREFCNT(SV* sv)
+    CODE:
+#ifdef SV_COW_REFCNT_MAX
+        if (SvIsCOW(sv)) XSRETURN_IV(0 < SvLEN(sv) ? CowREFCNT(sv) : 0);
+#endif
+        XSRETURN_UNDEF;
+    OUTPUT:
+        RETVAL
+
+SV*
+kdf_aes_transform_half(const char* key, const char* seed, unsigned int rounds)
     CODE:
         symmetric_key skey;
 
@@ -29,4 +41,3 @@ _transform_half_xs(const char* key, const char* seed, unsigned int rounds)
         RETVAL = result;
     OUTPUT:
         RETVAL
-
This page took 0.021047 seconds and 4 git commands to generate.