Permalink
Browse files

* Clean up the "data" directory.

* Linux's mktemp(3) requires 6 "X"s.
* Replace "uncompress.c" with "uncomp.c" due to the file length
  limitation of MS-DOS.
  • Loading branch information...
1 parent 0e639f7 commit ebf621de07736e41837a918ba1db81b7f789b0b9 @kazu-yamamoto committed Feb 19, 2010
Showing with 305 additions and 4 deletions.
  1. +12 −0 CHANGES
  2. +2 −2 Makefile
  3. +3 −2 armor.c
  4. +11 −0 data/enc.res
  5. +9 −0 data/enc1.res
  6. +11 −0 data/enc2.res
  7. +15 −0 data/enc3.res
  8. +13 −0 data/gpg1.res
  9. +25 −0 data/gpg2.res
  10. +8 −0 data/gpg3.res
  11. +65 −0 data/pub.res
  12. +56 −0 data/pub1.res
  13. +17 −0 data/sig.res
  14. +21 −0 data/sig1.res
  15. +16 −0 data/sig2.res
  16. +21 −0 data/sig3.res
  17. 0 uncompress.c → uncomp.c
View
12 CHANGES
@@ -0,0 +1,12 @@
+ Change Log
+
+0.02 1998/12/25
+
+* Clean up the "data" directory.
+* Linux's mktemp(3) requires 6 "X"s.
+* Replace "uncompress.c" with "uncomp.c" due to the file length
+limitation of MS-DOS.
+
+0.01 1998/12/04
+
+* The first release
View
@@ -1,8 +1,8 @@
INCS = pgpdump.h
SRCS = pgpdump.c types.c tagfuncs.c packet.c subfunc.c signature.c keys.c \
- armor.c uncompress.c
+ armor.c uncomp.c
OBJS = pgpdump.o types.o tagfuncs.o packet.o subfunc.o signature.o keys.o \
- armor.o uncompress.o
+ armor.o uncomp.o
PROG = pgpdump
#LIBS = -lz
View
@@ -3,6 +3,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#include "pgpdump.h"
@@ -102,10 +103,10 @@ armor_decode(void)
FILE *output;
char buffer[BUFSIZ], outfile[BUFSIZ];
- strcpy(outfile, "/tmp/pgpdump.XXXX");
+ strcpy(outfile, "/tmp/pgpdump.XXXXXX");
if (mktemp(outfile) == NULL)
- error("can't open null stream.");
+ error("can't open a temporary file.");
output = fopen(outfile, "w");
if (output == NULL)
error("can't open the file.");
View
@@ -0,0 +1,11 @@
+Old: Marker Packet(tag 10)(3 bytes)
+ String - ...
+New: Public-Key Encrypted Session Key Packet(tag 1)(526 bytes)
+ New version(3)
+ Key ID - f6 70 5a bf 6e d9 54 e8
+ Pub alg - ElGamal Encrypt-Only(pub 16)
+ DSA g^k mod p(2048 bits) - ...
+ DSA m * y^k mod p(2048 bits) - ...
+ -> m = sym alg(1) + checksum(2) + PKCS-1 block type 02
+New: Symmetrically Encrypted Data Packet(tag 9)(56 bytes)
+ Encrypted data [if pub/sym session key not present, sym alg - IDEA]
View
@@ -0,0 +1,9 @@
+Old: Marker Packet(tag 10)(3 bytes)
+ String - ...
+New: Symmetric-Key Encrypted Session Key Packet(tag 3)(4 bytes)
+ New version(4)
+ Sym alg - CAST5(sym 3)
+ String-to-key(s2k 0):
+ Hash alg - MD5(hash 1)
+New: Symmetrically Encrypted Data Packet(tag 9)(56 bytes)
+ Encrypted data [if pub/sym session key not present, sym alg - IDEA]
View
@@ -0,0 +1,11 @@
+Old: Marker Packet(tag 10)(3 bytes)
+ String - ...
+New: Public-Key Encrypted Session Key Packet(tag 1)(525 bytes)
+ New version(3)
+ Key ID - f6 70 5a bf 6e d9 54 e8
+ Pub alg - ElGamal Encrypt-Only(pub 16)
+ DSA g^k mod p(2037 bits) - ...
+ DSA m * y^k mod p(2048 bits) - ...
+ -> m = sym alg(1) + checksum(2) + PKCS-1 block type 02
+New: Symmetrically Encrypted Data Packet(tag 9)(56 bytes)
+ Encrypted data [if pub/sym session key not present, sym alg - IDEA]
View
@@ -0,0 +1,15 @@
+Old: Public-Key Encrypted Session Key Packet(tag 1)(140 bytes)
+ New version(3)
+ Key ID - 0f 64 8a 1c 9e 4f 74 4d
+ Pub alg - RSA Encrypt or Sign(pub 1)
+ RSA m^e mod n(1021 bits) - ...
+ -> m = sym alg(1) + checksum(2) + PKCS-1 block type 02
+Old: Public-Key Encrypted Session Key Packet(tag 1)(526 bytes)
+ New version(3)
+ Key ID - f6 70 5a bf 6e d9 54 e8
+ Pub alg - ElGamal Encrypt-Only(pub 16)
+ DSA g^k mod p(2048 bits) - ...
+ DSA m * y^k mod p(2047 bits) - ...
+ -> m = sym alg(1) + checksum(2) + PKCS-1 block type 02
+Old: Symmetrically Encrypted Data Packet(tag 9)(26 bytes)
+ Encrypted data [if pub/sym session key not present, sym alg - IDEA]
View
@@ -0,0 +1,13 @@
+Old: Signature Packet(tag 2)(70 bytes)
+ Ver 4 - new
+ Sig type - Signature of a binary document(0x00).
+ Pub alg - DSA Digital Signature Standard(pub 17)
+ Hash alg - SHA1(hash 2)
+ Hashed Sub: signature creation time(sub 2)(4 bytes)
+ Time - Sat Nov 28 00:59:17 1998
+ Sub: issuer key ID(sub 16)(8 bytes)
+ Key ID - fd 90 da 97 32 d8 eb d2
+ Hash left 2 bytes - 84 a8
+ DSA r(160 bits) - ...
+ DSA s(160 bits) - ...
+ -> hash(160 bits)
View
@@ -0,0 +1,25 @@
+Old: 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 Standard(pub 17)
+ Key ID - fd 90 da 97 32 d8 eb d2
+ Next packet - other than one pass signature
+Old: Literal Data Packet(tag 11)(45 bytes)
+ Format - binary
+ Filename - hoge
+ File modified time - Sat Nov 28 01:11:39 1998
+ Literal - ...
+Old: Signature Packet(tag 2)(70 bytes)
+ Ver 4 - new
+ Sig type - Signature of a binary document(0x00).
+ Pub alg - DSA Digital Signature Standard(pub 17)
+ Hash alg - SHA1(hash 2)
+ Hashed Sub: signature creation time(sub 2)(4 bytes)
+ Time - Sat Nov 28 01:11:39 1998
+ Sub: issuer key ID(sub 16)(8 bytes)
+ Key ID - fd 90 da 97 32 d8 eb d2
+ Hash left 2 bytes - 0a 7d
+ DSA r(160 bits) - ...
+ DSA s(159 bits) - ...
+ -> hash(160 bits)
View
@@ -0,0 +1,8 @@
+Old: Symmetric-Key Encrypted Session Key Packet(tag 3)(12 bytes)
+ New version(4)
+ Sym alg - Blowfish(sym 4)
+ String-to-key(s2k 1):
+ Hash alg - RIPEMD160(hash 3)
+ Salt - ab 2b b0 87 b4 1d 43 48
+New: Symmetrically Encrypted Data Packet(tag 9)(62 bytes)
+ Encrypted data [if pub/sym session key not present, sym alg - IDEA]
View
@@ -0,0 +1,65 @@
+Old: Public Key Packet(tag 6)(418 bytes)
+ Ver 4 - new
+ Public key creation time - Thu Nov 26 22:49:00 1998
+ Pub alg - DSA Digital Signature Standard(pub 17)
+ DSA p(1024 bits) - ...
+ DSA q(160 bits) - ...
+ DSA g(1024 bits) - ...
+ DSA y(1021 bits) - ...
+Old: User ID Packet(tag 13)(31 bytes)
+ User ID - Kazu Yamamoto <kazu@iijlab.net>
+Old: Signature Packet(tag 2)(75 bytes)
+ Ver 4 - new
+ Sig type - Generic certification of a User ID and Public Key packet(0x10).
+ Pub alg - DSA Digital Signature Standard(pub 17)
+ Hash alg - SHA1(hash 2)
+ Hashed Sub: signature creation time(sub 2)(4 bytes)
+ Time - Thu Nov 26 22:49:00 1998
+ Hashed Sub: preferred symmetric algorithms(sub 11)(3 bytes)
+ Sym alg - CAST5(sym 3)
+ Sym alg - IDEA(sym 1)
+ Sym alg - Triple-DES(sym 2)
+ Sub: issuer key ID(sub 16)(8 bytes)
+ Key ID - a7 97 78 e2 47 b6 30 37
+ Hash left 2 bytes - 7e 87
+ DSA r(160 bits) - ...
+ DSA s(154 bits) - ...
+ -> hash(160 bits)
+Old: User ID Packet(tag 13)(20 bytes)
+ User ID - robby@dd.iij4u.or.jp
+Old: Signature Packet(tag 2)(75 bytes)
+ Ver 4 - new
+ Sig type - Generic certification of a User ID and Public Key packet(0x10).
+ Pub alg - DSA Digital Signature Standard(pub 17)
+ Hash alg - SHA1(hash 2)
+ Hashed Sub: signature creation time(sub 2)(4 bytes)
+ Time - Fri Nov 27 02:18:58 1998
+ Hashed Sub: preferred symmetric algorithms(sub 11)(3 bytes)
+ Sym alg - CAST5(sym 3)
+ Sym alg - IDEA(sym 1)
+ Sym alg - Triple-DES(sym 2)
+ Sub: issuer key ID(sub 16)(8 bytes)
+ Key ID - a7 97 78 e2 47 b6 30 37
+ Hash left 2 bytes - ba ef
+ DSA r(160 bits) - ...
+ DSA s(160 bits) - ...
+ -> hash(160 bits)
+Old: Public Subkey Packet(tag 14)(525 bytes)
+ Ver 4 - new
+ Public key creation time - Thu Nov 26 22:49:00 1998
+ Pub alg - ElGamal Encrypt-Only(pub 16)
+ ElGamal p(2048 bits) - ...
+ ElGamal g(2 bits) - ...
+ ElGamal y(2048 bits) - ...
+Old: Signature Packet(tag 2)(63 bytes)
+ Ver 3 - old
+ Hash material(5 bytes):
+ Sig type - Subkey Binding Signature(0x18).
+ Creation time - Thu Nov 26 22:49:00 1998
+ Key ID - a7 97 78 e2 47 b6 30 37
+ Pub alg - DSA Digital Signature Standard(pub 17)
+ Hash alg - SHA1(hash 2)
+ Hash left 2 bytes - e8 41
+ DSA r(160 bits) - ...
+ DSA s(160 bits) - ...
+ -> hash(160 bits)
View
@@ -0,0 +1,56 @@
+Old: Public Key Packet(tag 6)(418 bytes)
+ Ver 4 - new
+ Public key creation time - Sun Oct 11 23:27:53 1998
+ Pub alg - DSA Digital Signature Standard(pub 17)
+ DSA p(1024 bits) - ...
+ DSA q(160 bits) - ...
+ DSA g(1023 bits) - ...
+ DSA y(1023 bits) - ...
+Old: User ID Packet(tag 13)(35 bytes)
+ User ID - Kazuhiko Yamamoto <kazu@iijlab.net>
+Old: Signature Packet(tag 2)(87 bytes)
+ Ver 4 - new
+ Sig type - Positive certification of a User ID and Public Key packet(0x13).
+ Pub alg - DSA Digital Signature Standard(pub 17)
+ Hash alg - SHA1(hash 2)
+ Hashed Sub: signature creation time(sub 2)(4 bytes)
+ Time - Sun Oct 11 23:27:53 1998
+ Hashed Sub: preferred symmetric algorithms(sub 11)(2 bytes)
+ Sym alg - Blowfish(sym 4)
+ Sym alg - CAST5(sym 3)
+ Hashed Sub: preferred hash algorithms(sub 21)(4 bytes)
+ Hash alg - RIPEMD160(hash 3)
+ Hash alg - SHA1(hash 2)
+ Hash alg - TIGER192(hash 6)
+ Hash alg - MD5(hash 1)
+ Hashed Sub: preferred compression algorithms(sub 22)(2 bytes)
+ Comp alg - ZLIB <RFC1950>(comp 2)
+ Comp alg - ZIP DEFLATE 13 <RFC1951>(comp 1)
+ Hashed Sub: key server preferences(sub 23)(1 bytes)
+ Flag - No-modify
+ Sub: issuer key ID(sub 16)(8 bytes)
+ Key ID - fd 90 da 97 32 d8 eb d2
+ Hash left 2 bytes - e2 cb
+ DSA r(158 bits) - ...
+ DSA s(158 bits) - ...
+ -> hash(160 bits)
+Old: Public Subkey Packet(tag 14)(269 bytes)
+ Ver 4 - new
+ Public key creation time - Sun Oct 11 23:29:23 1998
+ Pub alg - ElGamal Encrypt-Only(pub 16)
+ ElGamal p(1024 bits) - ...
+ ElGamal g(3 bits) - ...
+ ElGamal y(1024 bits) - ...
+Old: Signature Packet(tag 2)(70 bytes)
+ Ver 4 - new
+ Sig type - Subkey Binding Signature(0x18).
+ Pub alg - DSA Digital Signature Standard(pub 17)
+ Hash alg - SHA1(hash 2)
+ Hashed Sub: signature creation time(sub 2)(4 bytes)
+ Time - Sun Oct 11 23:29:23 1998
+ Sub: issuer key ID(sub 16)(8 bytes)
+ Key ID - fd 90 da 97 32 d8 eb d2
+ Hash left 2 bytes - 42 66
+ DSA r(160 bits) - ...
+ DSA s(160 bits) - ...
+ -> hash(160 bits)
View
@@ -0,0 +1,17 @@
+Old: 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 18:35:42 1998
+ Key ID - a7 97 78 e2 47 b6 30 37
+ Pub alg - DSA Digital Signature Standard(pub 17)
+ Hash alg - SHA1(hash 2)
+ Hash left 2 bytes - 27 ae
+ DSA r(159 bits) - ...
+ DSA s(159 bits) - ...
+ -> hash(160 bits)
+Old: Literal Data Packet(tag 11)(45 bytes)
+ Format - binary
+ Filename - hoge
+ File modified time - Sun Apr 27 04:41:04 1975
+ Literal - ...
View
@@ -0,0 +1,21 @@
+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 Standard(pub 17)
+ Key ID - a7 97 78 e2 47 b6 30 37
+ 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 1998
+ Key ID - a7 97 78 e2 47 b6 30 37
+ Pub alg - DSA Digital Signature Standard(pub 17)
+ Hash alg - SHA1(hash 2)
+ Hash left 2 bytes - 8f 82
+ DSA r(160 bits) - ...
+ DSA s(157 bits) - ...
+ -> hash(160 bits)
View
@@ -0,0 +1,16 @@
+Old: Signature Packet(tag 2)(149 bytes)
+ Ver 3 - old
+ Hash material(5 bytes):
+ Sig type - Signature of a binary document(0x00).
+ Creation time - Fri Nov 27 23:42:12 1998
+ Key ID - 0f 64 8a 1c 9e 4f 74 4d
+ Pub alg - RSA Encrypt or Sign(pub 1)
+ Hash alg - MD5(hash 1)
+ Hash left 2 bytes - 66 36
+ RSA m^d mod n(1024 bits) - ...
+ -> PKCS-1
+Old: Literal Data Packet(tag 11)(45 bytes)
+ Format - binary
+ Filename - hoge
+ File modified time - Sun Apr 27 04:41:04 1975
+ Literal - ...
View
@@ -0,0 +1,21 @@
+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 Standard(pub 17)
+ Key ID - a7 97 78 e2 47 b6 30 37
+ 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 - Sat Nov 28 00:36:59 1998
+ Key ID - a7 97 78 e2 47 b6 30 37
+ Pub alg - DSA Digital Signature Standard(pub 17)
+ Hash alg - SHA1(hash 2)
+ Hash left 2 bytes - 51 81
+ DSA r(158 bits) - ...
+ DSA s(160 bits) - ...
+ -> hash(160 bits)
File renamed without changes.

0 comments on commit ebf621d

Please sign in to comment.