summaryrefslogtreecommitdiff
path: root/src/share/keytrans
diff options
context:
space:
mode:
authorMatt Goins <mjgoins@openflows.com>2009-04-08 00:43:05 -0400
committerMatt Goins <mjgoins@openflows.com>2009-04-08 00:43:05 -0400
commitdfd67a14003fbfb4b1ba2269e7d47f4d0c44fcf8 (patch)
tree3372902f39b0995a39b62851671fe33e4ceeb56e /src/share/keytrans
parentf77a5d79b4a9b4b44cb3786237931458265e49ed (diff)
parentee3872232ffc40ab0ae7ea823059806f839f2700 (diff)
Merge commit 'dkg/master'
Diffstat (limited to 'src/share/keytrans')
-rwxr-xr-xsrc/share/keytrans6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/share/keytrans b/src/share/keytrans
index 8b2e2ea..f9288fa 100755
--- a/src/share/keytrans
+++ b/src/share/keytrans
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w -T
+#!/usr/bin/perl -T
# keytrans: this is an RSA key translation utility; it is capable of
# transforming RSA keys (both public keys and secret keys) between
@@ -195,11 +195,11 @@ my $keyserver_prefs = { nomodify => 0x80
########### Math/Utility Functions ##############
-# see the bottom of page 43 of RFC 4880
+# see the bottom of page 44 of RFC 4880 (http://tools.ietf.org/html/rfc4880#page-44)
sub simple_checksum {
my $bytes = shift;
- return unpack("%32W*",$bytes) % 65536;
+ return unpack("%16C*",$bytes);
}
# calculate the multiplicative inverse of a mod b this is euclid's