
A PGP packet visualizer
pgpdump は、OpenPGP(RFC 4880)および PGP バージョン 2(RFC 1991)のパケット形式を表示する PGP パケット可視化ツールです。
以下に例を示します:
% pgpdump test/sig1
Old: Marker Packet(tag 10)(3 bytes)
String - ...
New: One-Pass Signature Packet(tag 4)(13 bytes)
New version(3)
Sig type - Signature of a binary document(0x00).
Hash alg - SHA1(hash 2)
Pub alg - DSA Digital Signature Algorithm(pub 17)
Key ID - 0xA79778E247B63037
Next packet - other than one pass signature
New: Signature Packet(tag 2)(63 bytes)
Ver 3 - old
Hash material(5 bytes):
Sig type - Signature of a binary document(0x00).
Creation time - Fri Nov 27 22:35:02 JST 1998
Key ID - 0xA79778E247B63037
Pub alg - DSA Digital Signature Algorithm(pub 17)
Hash alg - SHA1(hash 2)
Hash left 2 bytes - 8f 82
DSA r(160 bits) - ...
DSA s(157 bits) - ...
-> hash(DSA q bits)
リリース tarball から pgpdump をインストールするには、次の手順を実行します:
% ./configure
% make
% su
# make install
Git からビルドするには、上記のコマンドを実行する前に autoreconf -fviW all を実行してください。
Mac OS X 向けのバイナリは Homebrew から入手できます:
% brew install pgpdump
pgpdump の使い方を知るには、pgpdump -h と入力してください。
いくつかの例は test ディレクトリに格納されています。また、自分の pubring と secring を可視化することもできます。
pgpdump の公式ホームページは次のとおりです:
すべてのテストを実行するには:
% make check
または:
% make
% ./test/test
特定のテストを実行するには:
% make check TESTS="test/pub.res test/sig.res"
または:
% make
% ./test/test test/pub.res test/sig.res