pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/p5-String-Compare-ConstantTime Adding package...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f537fa0b9e0f
branches:  trunk
changeset: 620997:f537fa0b9e0f
user:      sno <sno%pkgsrc.org@localhost>
date:      Wed Jul 03 16:13:38 2013 +0000

description:
Adding package for CPAN distribution String-Compare-ConstantTime version
0.300 into textproc/p5-String-Compare-ConstantTime.

This module provides one function, equals (not exported by default).

You should pass this function two strings of the same length. It will
return true if they are string-wise identical and false otherwise, just
like eq. However, comparing any two differing strings will take a fixed
amount of time, unlike eq.

NOTE: If the lengths of the strings are different, equals will return
false right away. Also, comparing two identical strings will take a
different amount of time than comparing two differing strings.

diffstat:

 textproc/p5-String-Compare-ConstantTime/DESCR    |  10 ++++++++++
 textproc/p5-String-Compare-ConstantTime/Makefile |  19 +++++++++++++++++++
 textproc/p5-String-Compare-ConstantTime/distinfo |   5 +++++
 3 files changed, 34 insertions(+), 0 deletions(-)

diffs (46 lines):

diff -r cc3ee7a01bbe -r f537fa0b9e0f textproc/p5-String-Compare-ConstantTime/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-String-Compare-ConstantTime/DESCR     Wed Jul 03 16:13:38 2013 +0000
@@ -0,0 +1,10 @@
+This module provides one function, equals (not exported by default).
+
+You should pass this function two strings of the same length. It will
+return true if they are string-wise identical and false otherwise, just
+like eq. However, comparing any two differing strings will take a fixed
+amount of time, unlike eq.
+
+NOTE: If the lengths of the strings are different, equals will return
+false right away. Also, comparing two identical strings will take a
+different amount of time than comparing two differing strings.
diff -r cc3ee7a01bbe -r f537fa0b9e0f textproc/p5-String-Compare-ConstantTime/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-String-Compare-ConstantTime/Makefile  Wed Jul 03 16:13:38 2013 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2013/07/03 16:13:38 sno Exp $
+
+DISTNAME=      String-Compare-ConstantTime-0.300
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    textproc perl5
+MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=String/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://search.cpan.org/dist/String-Compare-ConstantTime/
+COMMENT=       Perl5 module for timing side-channel protected string compare
+LICENSE=       ${PERL5_LICENSE}
+
+# EU::MM 6.31 is in core as well as Test::More 0.96 (we have 0.98)
+
+USE_LANGUAGES= c
+PERL5_PACKLIST=        auto/String/Compare/ConstantTime/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r cc3ee7a01bbe -r f537fa0b9e0f textproc/p5-String-Compare-ConstantTime/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-String-Compare-ConstantTime/distinfo  Wed Jul 03 16:13:38 2013 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2013/07/03 16:13:38 sno Exp $
+
+SHA1 (String-Compare-ConstantTime-0.300.tar.gz) = fcc96a6f87067ac1e2ada686018d3ea54ed19bb0
+RMD160 (String-Compare-ConstantTime-0.300.tar.gz) = 0f4f37bce2ba0b2bc821d09eb76247d673586715
+Size (String-Compare-ConstantTime-0.300.tar.gz) = 5210 bytes



Home | Main Index | Thread Index | Old Index