From: Daniel Kahn Gillmor Date: Wed, 7 Jan 2009 20:02:05 +0000 (-0500) Subject: clarifying make_rsa_key_body() to make_rsa_pub_key_body() X-Git-Tag: monkeysphere_0.23~164^2~2 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=c71c0212bc36ed18d6df60c7a1dc0c3f6c541339;p=monkeysphere.git clarifying make_rsa_key_body() to make_rsa_pub_key_body() --- diff --git a/src/keytrans/pem2openpgp b/src/keytrans/pem2openpgp index 3fdc469..c5277cd 100755 --- a/src/keytrans/pem2openpgp +++ b/src/keytrans/pem2openpgp @@ -78,7 +78,7 @@ sub mpi_pack { } # FIXME: genericize this to accept either RSA or DSA keys: -sub make_rsa_key_body { +sub make_rsa_pub_key_body { my $key = shift; my $timestamp = shift; @@ -97,7 +97,7 @@ sub fingerprint { my $key = shift; my $timestamp = shift; - my $rsabody = make_rsa_key_body($key, $timestamp); + my $rsabody = make_rsa_pub_key_body($key, $timestamp); return Digest::SHA1::sha1_hex(pack('Cn', 0x99, length($rsabody)).$rsabody); } @@ -176,7 +176,7 @@ my $sig_data_to_be_hashed = $subpacket_octets. $subpackets_to_be_hashed; -my $pubkey = make_rsa_key_body($rsa, $timestamp); +my $pubkey = make_rsa_pub_key_body($rsa, $timestamp); #open(KEYFILE, "