diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..ea9620f
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,4 @@
+language: php
+php:
+ - 5.3
+ - 5.4
diff --git a/lib/openpgp.php b/lib/openpgp.php
index 956d089..327d7f7 100644
--- a/lib/openpgp.php
+++ b/lib/openpgp.php
@@ -533,6 +533,7 @@ class OpenPGP_SignaturePacket extends OpenPGP_Packet {
$input = substr($input, $length_of_length); // Chop off length header
$tag = ord($input[0]);
$class = self::class_for($tag);
+ $packet = NULL;
if($class) {
$packet = new $class();
$packet->tag = $tag;
@@ -592,7 +593,7 @@ class OpenPGP_SignaturePacket extends OpenPGP_Packet {
);
static function class_for($tag) {
- if(!self::$subpacket_types[$tag]) return NULL;
+ if(!isset(self::$subpacket_types[$tag])) return NULL;
return 'OpenPGP_SignaturePacket_'.self::$subpacket_types[$tag].'Packet';
}
@@ -827,7 +828,10 @@ class OpenPGP_PublicKeyPacket extends OpenPGP_Packet {
}
$this->timestamp = $timestamp ? $timestamp : time();
$this->version = $version;
- $this->key_id = substr($this->fingerprint(), -8);
+
+ if(count($this->key) > 0) {
+ $this->key_id = substr($this->fingerprint(), -8);
+ }
}
// Find self signatures in a message, these often contain metadata about the key
@@ -1186,9 +1190,9 @@ class OpenPGP_LiteralDataPacket extends OpenPGP_Packet {
function __construct($data=NULL, $opt=array()) {
parent::__construct();
$this->data = $data;
- $this->format = $opt['format'] ? $opt['format'] : 'b';
- $this->filename = $opt['filename'] ? $opt['filename'] : 'data';
- $this->timestamp = $opt['timestamp'] ? $opt['timestamp'] : time();
+ $this->format = isset($opt['format']) ? $opt['format'] : 'b';
+ $this->filename = isset($opt['filename']) ? $opt['filename'] : 'data';
+ $this->timestamp = isset($opt['timestamp']) ? $opt['timestamp'] : time();
}
function normalize() {
diff --git a/phpunit.xml b/phpunit.xml
new file mode 100644
index 0000000..375bb57
--- /dev/null
+++ b/phpunit.xml
@@ -0,0 +1,7 @@
+
+
+
+ tests/suite.php
+
+
+
diff --git a/tests/data/000001-006.public_key b/tests/data/000001-006.public_key
new file mode 100644
index 0000000..7cbab17
Binary files /dev/null and b/tests/data/000001-006.public_key differ
diff --git a/tests/data/000002-013.user_id b/tests/data/000002-013.user_id
new file mode 100644
index 0000000..759449b
--- /dev/null
+++ b/tests/data/000002-013.user_id
@@ -0,0 +1 @@
+´$Test Key (RSA)
\ No newline at end of file
diff --git a/tests/data/000003-002.sig b/tests/data/000003-002.sig
new file mode 100644
index 0000000..1e0656d
Binary files /dev/null and b/tests/data/000003-002.sig differ
diff --git a/tests/data/000004-012.ring_trust b/tests/data/000004-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000004-012.ring_trust differ
diff --git a/tests/data/000005-002.sig b/tests/data/000005-002.sig
new file mode 100644
index 0000000..108b998
Binary files /dev/null and b/tests/data/000005-002.sig differ
diff --git a/tests/data/000006-012.ring_trust b/tests/data/000006-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000006-012.ring_trust differ
diff --git a/tests/data/000007-002.sig b/tests/data/000007-002.sig
new file mode 100644
index 0000000..14276d0
Binary files /dev/null and b/tests/data/000007-002.sig differ
diff --git a/tests/data/000008-012.ring_trust b/tests/data/000008-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000008-012.ring_trust differ
diff --git a/tests/data/000009-002.sig b/tests/data/000009-002.sig
new file mode 100644
index 0000000..4a282dd
Binary files /dev/null and b/tests/data/000009-002.sig differ
diff --git a/tests/data/000010-012.ring_trust b/tests/data/000010-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000010-012.ring_trust differ
diff --git a/tests/data/000011-002.sig b/tests/data/000011-002.sig
new file mode 100644
index 0000000..cae1b73
Binary files /dev/null and b/tests/data/000011-002.sig differ
diff --git a/tests/data/000012-012.ring_trust b/tests/data/000012-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000012-012.ring_trust differ
diff --git a/tests/data/000013-014.public_subkey b/tests/data/000013-014.public_subkey
new file mode 100644
index 0000000..08676d0
Binary files /dev/null and b/tests/data/000013-014.public_subkey differ
diff --git a/tests/data/000014-002.sig b/tests/data/000014-002.sig
new file mode 100644
index 0000000..dd60180
Binary files /dev/null and b/tests/data/000014-002.sig differ
diff --git a/tests/data/000015-012.ring_trust b/tests/data/000015-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000015-012.ring_trust differ
diff --git a/tests/data/000016-006.public_key b/tests/data/000016-006.public_key
new file mode 100644
index 0000000..c9dccbf
Binary files /dev/null and b/tests/data/000016-006.public_key differ
diff --git a/tests/data/000017-002.sig b/tests/data/000017-002.sig
new file mode 100644
index 0000000..e734505
Binary files /dev/null and b/tests/data/000017-002.sig differ
diff --git a/tests/data/000018-012.ring_trust b/tests/data/000018-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000018-012.ring_trust differ
diff --git a/tests/data/000019-013.user_id b/tests/data/000019-013.user_id
new file mode 100644
index 0000000..ab3f51d
--- /dev/null
+++ b/tests/data/000019-013.user_id
@@ -0,0 +1 @@
+´$Test Key (DSA)
\ No newline at end of file
diff --git a/tests/data/000020-002.sig b/tests/data/000020-002.sig
new file mode 100644
index 0000000..8588489
Binary files /dev/null and b/tests/data/000020-002.sig differ
diff --git a/tests/data/000021-012.ring_trust b/tests/data/000021-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000021-012.ring_trust differ
diff --git a/tests/data/000022-002.sig b/tests/data/000022-002.sig
new file mode 100644
index 0000000..fefcb5f
Binary files /dev/null and b/tests/data/000022-002.sig differ
diff --git a/tests/data/000023-012.ring_trust b/tests/data/000023-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000023-012.ring_trust differ
diff --git a/tests/data/000024-014.public_subkey b/tests/data/000024-014.public_subkey
new file mode 100644
index 0000000..2e8deea
Binary files /dev/null and b/tests/data/000024-014.public_subkey differ
diff --git a/tests/data/000025-002.sig b/tests/data/000025-002.sig
new file mode 100644
index 0000000..a3eea0a
Binary files /dev/null and b/tests/data/000025-002.sig differ
diff --git a/tests/data/000026-012.ring_trust b/tests/data/000026-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000026-012.ring_trust differ
diff --git a/tests/data/000027-006.public_key b/tests/data/000027-006.public_key
new file mode 100644
index 0000000..5817e00
Binary files /dev/null and b/tests/data/000027-006.public_key differ
diff --git a/tests/data/000028-002.sig b/tests/data/000028-002.sig
new file mode 100644
index 0000000..5194b78
Binary files /dev/null and b/tests/data/000028-002.sig differ
diff --git a/tests/data/000029-012.ring_trust b/tests/data/000029-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000029-012.ring_trust differ
diff --git a/tests/data/000030-013.user_id b/tests/data/000030-013.user_id
new file mode 100644
index 0000000..fb3f49e
--- /dev/null
+++ b/tests/data/000030-013.user_id
@@ -0,0 +1 @@
+´+Test Key (DSA sign-only)
\ No newline at end of file
diff --git a/tests/data/000031-002.sig b/tests/data/000031-002.sig
new file mode 100644
index 0000000..f69f687
Binary files /dev/null and b/tests/data/000031-002.sig differ
diff --git a/tests/data/000032-012.ring_trust b/tests/data/000032-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000032-012.ring_trust differ
diff --git a/tests/data/000033-002.sig b/tests/data/000033-002.sig
new file mode 100644
index 0000000..2bb55d4
Binary files /dev/null and b/tests/data/000033-002.sig differ
diff --git a/tests/data/000034-012.ring_trust b/tests/data/000034-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000034-012.ring_trust differ
diff --git a/tests/data/000035-006.public_key b/tests/data/000035-006.public_key
new file mode 100644
index 0000000..5980638
Binary files /dev/null and b/tests/data/000035-006.public_key differ
diff --git a/tests/data/000036-013.user_id b/tests/data/000036-013.user_id
new file mode 100644
index 0000000..5d0d46e
--- /dev/null
+++ b/tests/data/000036-013.user_id
@@ -0,0 +1 @@
+´.Test Key (RSA sign-only)
\ No newline at end of file
diff --git a/tests/data/000037-002.sig b/tests/data/000037-002.sig
new file mode 100644
index 0000000..833b563
Binary files /dev/null and b/tests/data/000037-002.sig differ
diff --git a/tests/data/000038-012.ring_trust b/tests/data/000038-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000038-012.ring_trust differ
diff --git a/tests/data/000039-002.sig b/tests/data/000039-002.sig
new file mode 100644
index 0000000..89c34fa
Binary files /dev/null and b/tests/data/000039-002.sig differ
diff --git a/tests/data/000040-012.ring_trust b/tests/data/000040-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000040-012.ring_trust differ
diff --git a/tests/data/000041-017.attribute b/tests/data/000041-017.attribute
new file mode 100644
index 0000000..a21a82f
Binary files /dev/null and b/tests/data/000041-017.attribute differ
diff --git a/tests/data/000042-002.sig b/tests/data/000042-002.sig
new file mode 100644
index 0000000..fc6267f
Binary files /dev/null and b/tests/data/000042-002.sig differ
diff --git a/tests/data/000043-012.ring_trust b/tests/data/000043-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000043-012.ring_trust differ
diff --git a/tests/data/000044-014.public_subkey b/tests/data/000044-014.public_subkey
new file mode 100644
index 0000000..06bf50e
Binary files /dev/null and b/tests/data/000044-014.public_subkey differ
diff --git a/tests/data/000045-002.sig b/tests/data/000045-002.sig
new file mode 100644
index 0000000..336eb0f
Binary files /dev/null and b/tests/data/000045-002.sig differ
diff --git a/tests/data/000046-012.ring_trust b/tests/data/000046-012.ring_trust
new file mode 100644
index 0000000..ffa57e5
Binary files /dev/null and b/tests/data/000046-012.ring_trust differ
diff --git a/tests/data/000047-005.secret_key b/tests/data/000047-005.secret_key
new file mode 100644
index 0000000..77b5d42
Binary files /dev/null and b/tests/data/000047-005.secret_key differ
diff --git a/tests/data/000048-013.user_id b/tests/data/000048-013.user_id
new file mode 100644
index 0000000..759449b
--- /dev/null
+++ b/tests/data/000048-013.user_id
@@ -0,0 +1 @@
+´$Test Key (RSA)
\ No newline at end of file
diff --git a/tests/data/000049-002.sig b/tests/data/000049-002.sig
new file mode 100644
index 0000000..14276d0
Binary files /dev/null and b/tests/data/000049-002.sig differ
diff --git a/tests/data/000050-012.ring_trust b/tests/data/000050-012.ring_trust
new file mode 100644
index 0000000..b1eeabb
Binary files /dev/null and b/tests/data/000050-012.ring_trust differ
diff --git a/tests/data/000051-007.secret_subkey b/tests/data/000051-007.secret_subkey
new file mode 100644
index 0000000..b4e65c9
Binary files /dev/null and b/tests/data/000051-007.secret_subkey differ
diff --git a/tests/data/000052-002.sig b/tests/data/000052-002.sig
new file mode 100644
index 0000000..dd60180
Binary files /dev/null and b/tests/data/000052-002.sig differ
diff --git a/tests/data/000053-012.ring_trust b/tests/data/000053-012.ring_trust
new file mode 100644
index 0000000..b1eeabb
Binary files /dev/null and b/tests/data/000053-012.ring_trust differ
diff --git a/tests/data/000054-005.secret_key b/tests/data/000054-005.secret_key
new file mode 100644
index 0000000..f153e59
Binary files /dev/null and b/tests/data/000054-005.secret_key differ
diff --git a/tests/data/000055-002.sig b/tests/data/000055-002.sig
new file mode 100644
index 0000000..e734505
Binary files /dev/null and b/tests/data/000055-002.sig differ
diff --git a/tests/data/000056-012.ring_trust b/tests/data/000056-012.ring_trust
new file mode 100644
index 0000000..b1eeabb
Binary files /dev/null and b/tests/data/000056-012.ring_trust differ
diff --git a/tests/data/000057-013.user_id b/tests/data/000057-013.user_id
new file mode 100644
index 0000000..ab3f51d
--- /dev/null
+++ b/tests/data/000057-013.user_id
@@ -0,0 +1 @@
+´$Test Key (DSA)
\ No newline at end of file
diff --git a/tests/data/000058-002.sig b/tests/data/000058-002.sig
new file mode 100644
index 0000000..8588489
Binary files /dev/null and b/tests/data/000058-002.sig differ
diff --git a/tests/data/000059-012.ring_trust b/tests/data/000059-012.ring_trust
new file mode 100644
index 0000000..b1eeabb
Binary files /dev/null and b/tests/data/000059-012.ring_trust differ
diff --git a/tests/data/000060-007.secret_subkey b/tests/data/000060-007.secret_subkey
new file mode 100644
index 0000000..9df45f3
Binary files /dev/null and b/tests/data/000060-007.secret_subkey differ
diff --git a/tests/data/000061-002.sig b/tests/data/000061-002.sig
new file mode 100644
index 0000000..6394942
Binary files /dev/null and b/tests/data/000061-002.sig differ
diff --git a/tests/data/000062-012.ring_trust b/tests/data/000062-012.ring_trust
new file mode 100644
index 0000000..b1eeabb
Binary files /dev/null and b/tests/data/000062-012.ring_trust differ
diff --git a/tests/data/000063-005.secret_key b/tests/data/000063-005.secret_key
new file mode 100644
index 0000000..2f4268e
Binary files /dev/null and b/tests/data/000063-005.secret_key differ
diff --git a/tests/data/000064-002.sig b/tests/data/000064-002.sig
new file mode 100644
index 0000000..5194b78
Binary files /dev/null and b/tests/data/000064-002.sig differ
diff --git a/tests/data/000065-012.ring_trust b/tests/data/000065-012.ring_trust
new file mode 100644
index 0000000..b1eeabb
Binary files /dev/null and b/tests/data/000065-012.ring_trust differ
diff --git a/tests/data/000066-013.user_id b/tests/data/000066-013.user_id
new file mode 100644
index 0000000..fb3f49e
--- /dev/null
+++ b/tests/data/000066-013.user_id
@@ -0,0 +1 @@
+´+Test Key (DSA sign-only)
\ No newline at end of file
diff --git a/tests/data/000067-002.sig b/tests/data/000067-002.sig
new file mode 100644
index 0000000..d354e79
Binary files /dev/null and b/tests/data/000067-002.sig differ
diff --git a/tests/data/000068-012.ring_trust b/tests/data/000068-012.ring_trust
new file mode 100644
index 0000000..b1eeabb
Binary files /dev/null and b/tests/data/000068-012.ring_trust differ
diff --git a/tests/data/000069-005.secret_key b/tests/data/000069-005.secret_key
new file mode 100644
index 0000000..17a2c35
Binary files /dev/null and b/tests/data/000069-005.secret_key differ
diff --git a/tests/data/000070-013.user_id b/tests/data/000070-013.user_id
new file mode 100644
index 0000000..5d0d46e
--- /dev/null
+++ b/tests/data/000070-013.user_id
@@ -0,0 +1 @@
+´.Test Key (RSA sign-only)
\ No newline at end of file
diff --git a/tests/data/000071-002.sig b/tests/data/000071-002.sig
new file mode 100644
index 0000000..833b563
Binary files /dev/null and b/tests/data/000071-002.sig differ
diff --git a/tests/data/000072-012.ring_trust b/tests/data/000072-012.ring_trust
new file mode 100644
index 0000000..b1eeabb
Binary files /dev/null and b/tests/data/000072-012.ring_trust differ
diff --git a/tests/data/000073-017.attribute b/tests/data/000073-017.attribute
new file mode 100644
index 0000000..a21a82f
Binary files /dev/null and b/tests/data/000073-017.attribute differ
diff --git a/tests/data/000074-002.sig b/tests/data/000074-002.sig
new file mode 100644
index 0000000..fc6267f
Binary files /dev/null and b/tests/data/000074-002.sig differ
diff --git a/tests/data/000075-012.ring_trust b/tests/data/000075-012.ring_trust
new file mode 100644
index 0000000..b1eeabb
Binary files /dev/null and b/tests/data/000075-012.ring_trust differ
diff --git a/tests/data/000076-007.secret_subkey b/tests/data/000076-007.secret_subkey
new file mode 100644
index 0000000..b380339
Binary files /dev/null and b/tests/data/000076-007.secret_subkey differ
diff --git a/tests/data/000077-002.sig b/tests/data/000077-002.sig
new file mode 100644
index 0000000..336eb0f
Binary files /dev/null and b/tests/data/000077-002.sig differ
diff --git a/tests/data/000078-012.ring_trust b/tests/data/000078-012.ring_trust
new file mode 100644
index 0000000..b1eeabb
Binary files /dev/null and b/tests/data/000078-012.ring_trust differ
diff --git a/tests/data/002182-002.sig b/tests/data/002182-002.sig
new file mode 100644
index 0000000..2bc6679
Binary files /dev/null and b/tests/data/002182-002.sig differ
diff --git a/tests/data/compressedsig-bzip2.gpg b/tests/data/compressedsig-bzip2.gpg
new file mode 100644
index 0000000..87539db
Binary files /dev/null and b/tests/data/compressedsig-bzip2.gpg differ
diff --git a/tests/data/compressedsig-zlib.gpg b/tests/data/compressedsig-zlib.gpg
new file mode 100644
index 0000000..4da4dfa
Binary files /dev/null and b/tests/data/compressedsig-zlib.gpg differ
diff --git a/tests/data/compressedsig.gpg b/tests/data/compressedsig.gpg
new file mode 100644
index 0000000..dd617de
Binary files /dev/null and b/tests/data/compressedsig.gpg differ
diff --git a/tests/data/onepass_sig b/tests/data/onepass_sig
new file mode 100644
index 0000000..87b2895
Binary files /dev/null and b/tests/data/onepass_sig differ
diff --git a/tests/data/pubring.gpg b/tests/data/pubring.gpg
new file mode 100644
index 0000000..a1519ee
Binary files /dev/null and b/tests/data/pubring.gpg differ
diff --git a/tests/data/secring.gpg b/tests/data/secring.gpg
new file mode 100644
index 0000000..1359875
Binary files /dev/null and b/tests/data/secring.gpg differ
diff --git a/tests/data/symmetrically_encrypted b/tests/data/symmetrically_encrypted
new file mode 100644
index 0000000..129155a
Binary files /dev/null and b/tests/data/symmetrically_encrypted differ
diff --git a/tests/data/uncompressed-ops-dsa-sha384.txt.gpg b/tests/data/uncompressed-ops-dsa-sha384.txt.gpg
new file mode 100644
index 0000000..39828fc
Binary files /dev/null and b/tests/data/uncompressed-ops-dsa-sha384.txt.gpg differ
diff --git a/tests/data/uncompressed-ops-dsa.gpg b/tests/data/uncompressed-ops-dsa.gpg
new file mode 100644
index 0000000..97e7a26
Binary files /dev/null and b/tests/data/uncompressed-ops-dsa.gpg differ
diff --git a/tests/data/uncompressed-ops-rsa.gpg b/tests/data/uncompressed-ops-rsa.gpg
new file mode 100644
index 0000000..7ae453d
Binary files /dev/null and b/tests/data/uncompressed-ops-rsa.gpg differ
diff --git a/tests/suite.php b/tests/suite.php
new file mode 100644
index 0000000..a24b0b1
--- /dev/null
+++ b/tests/suite.php
@@ -0,0 +1,369 @@
+to_bytes();
+ //$out = OpenPGP_Message::parse($mid);
+ //$this->assertEquals($in, $out);
+ }
+
+ public function test000001006public_key() {
+ $this->oneSerialization("000001-006.public_key");
+ }
+
+
+ public function test000002013user_id() {
+ $this->oneSerialization("000002-013.user_id");
+ }
+
+ public function test000003002sig() {
+ $this->oneSerialization("000003-002.sig");
+ }
+
+ public function test000004012ring_trust() {
+ $this->oneSerialization("000004-012.ring_trust");
+ }
+
+ public function test000005002sig() {
+ $this->oneSerialization("000005-002.sig");
+ }
+
+ public function test000006012ring_trust() {
+ $this->oneSerialization("000006-012.ring_trust");
+ }
+
+ public function test000007002sig() {
+ $this->oneSerialization("000007-002.sig");
+ }
+
+ public function test000008012ring_trust() {
+ $this->oneSerialization("000008-012.ring_trust");
+ }
+
+ public function test000009002sig() {
+ $this->oneSerialization("000009-002.sig");
+ }
+
+ public function test000010012ring_trust() {
+ $this->oneSerialization("000010-012.ring_trust");
+ }
+
+ public function test000011002sig() {
+ $this->oneSerialization("000011-002.sig");
+ }
+
+ public function test000012012ring_trust() {
+ $this->oneSerialization("000012-012.ring_trust");
+ }
+
+ public function test000013014public_subkey() {
+ $this->oneSerialization("000013-014.public_subkey");
+ }
+
+ public function test000014002sig() {
+ $this->oneSerialization("000014-002.sig");
+ }
+
+ public function test000015012ring_trust() {
+ $this->oneSerialization("000015-012.ring_trust");
+ }
+
+ public function test000016006public_key() {
+ $this->oneSerialization("000016-006.public_key");
+ }
+
+ public function test000017002sig() {
+ $this->oneSerialization("000017-002.sig");
+ }
+
+ public function test000018012ring_trust() {
+ $this->oneSerialization("000018-012.ring_trust");
+ }
+
+ public function test000019013user_id() {
+ $this->oneSerialization("000019-013.user_id");
+ }
+
+ public function test000020002sig() {
+ $this->oneSerialization("000020-002.sig");
+ }
+
+ public function test000021012ring_trust() {
+ $this->oneSerialization("000021-012.ring_trust");
+ }
+
+ public function test000022002sig() {
+ $this->oneSerialization("000022-002.sig");
+ }
+
+ public function test000023012ring_trust() {
+ $this->oneSerialization("000023-012.ring_trust");
+ }
+
+ public function test000024014public_subkey() {
+ $this->oneSerialization("000024-014.public_subkey");
+ }
+
+ public function test000025002sig() {
+ $this->oneSerialization("000025-002.sig");
+ }
+
+ public function test000026012ring_trust() {
+ $this->oneSerialization("000026-012.ring_trust");
+ }
+
+ public function test000027006public_key() {
+ $this->oneSerialization("000027-006.public_key");
+ }
+
+ public function test000028002sig() {
+ $this->oneSerialization("000028-002.sig");
+ }
+
+ public function test000029012ring_trust() {
+ $this->oneSerialization("000029-012.ring_trust");
+ }
+
+ public function test000030013user_id() {
+ $this->oneSerialization("000030-013.user_id");
+ }
+
+ public function test000031002sig() {
+ $this->oneSerialization("000031-002.sig");
+ }
+
+ public function test000032012ring_trust() {
+ $this->oneSerialization("000032-012.ring_trust");
+ }
+
+ public function test000033002sig() {
+ $this->oneSerialization("000033-002.sig");
+ }
+
+ public function test000034012ring_trust() {
+ $this->oneSerialization("000034-012.ring_trust");
+ }
+
+ public function test000035006public_key() {
+ $this->oneSerialization("000035-006.public_key");
+ }
+
+ public function test000036013user_id() {
+ $this->oneSerialization("000036-013.user_id");
+ }
+
+ public function test000037002sig() {
+ $this->oneSerialization("000037-002.sig");
+ }
+
+ public function test000038012ring_trust() {
+ $this->oneSerialization("000038-012.ring_trust");
+ }
+
+ public function test000039002sig() {
+ $this->oneSerialization("000039-002.sig");
+ }
+
+ public function test000040012ring_trust() {
+ $this->oneSerialization("000040-012.ring_trust");
+ }
+
+ public function test000041017attribute() {
+ $this->oneSerialization("000041-017.attribute");
+ }
+
+ public function test000042002sig() {
+ $this->oneSerialization("000042-002.sig");
+ }
+
+ public function test000043012ring_trust() {
+ $this->oneSerialization("000043-012.ring_trust");
+ }
+
+ public function test000044014public_subkey() {
+ $this->oneSerialization("000044-014.public_subkey");
+ }
+
+ public function test000045002sig() {
+ $this->oneSerialization("000045-002.sig");
+ }
+
+ public function test000046012ring_trust() {
+ $this->oneSerialization("000046-012.ring_trust");
+ }
+
+ public function test000047005secret_key() {
+ $this->oneSerialization("000047-005.secret_key");
+ }
+
+ public function test000048013user_id() {
+ $this->oneSerialization("000048-013.user_id");
+ }
+
+ public function test000049002sig() {
+ $this->oneSerialization("000049-002.sig");
+ }
+
+ public function test000050012ring_trust() {
+ $this->oneSerialization("000050-012.ring_trust");
+ }
+
+ public function test000051007secret_subkey() {
+ $this->oneSerialization("000051-007.secret_subkey");
+ }
+
+ public function test000052002sig() {
+ $this->oneSerialization("000052-002.sig");
+ }
+
+ public function test000053012ring_trust() {
+ $this->oneSerialization("000053-012.ring_trust");
+ }
+
+ public function test000054005secret_key() {
+ $this->oneSerialization("000054-005.secret_key");
+ }
+
+ public function test000055002sig() {
+ $this->oneSerialization("000055-002.sig");
+ }
+
+ public function test000056012ring_trust() {
+ $this->oneSerialization("000056-012.ring_trust");
+ }
+
+ public function test000057013user_id() {
+ $this->oneSerialization("000057-013.user_id");
+ }
+
+ public function test000058002sig() {
+ $this->oneSerialization("000058-002.sig");
+ }
+
+ public function test000059012ring_trust() {
+ $this->oneSerialization("000059-012.ring_trust");
+ }
+
+ public function test000060007secret_subkey() {
+ $this->oneSerialization("000060-007.secret_subkey");
+ }
+
+ public function test000061002sig() {
+ $this->oneSerialization("000061-002.sig");
+ }
+
+ public function test000062012ring_trust() {
+ $this->oneSerialization("000062-012.ring_trust");
+ }
+
+ public function test000063005secret_key() {
+ $this->oneSerialization("000063-005.secret_key");
+ }
+
+ public function test000064002sig() {
+ $this->oneSerialization("000064-002.sig");
+ }
+
+ public function test000065012ring_trust() {
+ $this->oneSerialization("000065-012.ring_trust");
+ }
+
+ public function test000066013user_id() {
+ $this->oneSerialization("000066-013.user_id");
+ }
+
+ public function test000067002sig() {
+ $this->oneSerialization("000067-002.sig");
+ }
+
+ public function test000068012ring_trust() {
+ $this->oneSerialization("000068-012.ring_trust");
+ }
+
+ public function test000069005secret_key() {
+ $this->oneSerialization("000069-005.secret_key");
+ }
+
+ public function test000070013user_id() {
+ $this->oneSerialization("000070-013.user_id");
+ }
+
+ public function test000071002sig() {
+ $this->oneSerialization("000071-002.sig");
+ }
+
+ public function test000072012ring_trust() {
+ $this->oneSerialization("000072-012.ring_trust");
+ }
+
+ public function test000073017attribute() {
+ $this->oneSerialization("000073-017.attribute");
+ }
+
+ public function test000074002sig() {
+ $this->oneSerialization("000074-002.sig");
+ }
+
+ public function test000075012ring_trust() {
+ $this->oneSerialization("000075-012.ring_trust");
+ }
+
+ public function test000076007secret_subkey() {
+ $this->oneSerialization("000076-007.secret_subkey");
+ }
+
+ public function test000077002sig() {
+ $this->oneSerialization("000077-002.sig");
+ }
+
+ public function test000078012ring_trust() {
+ $this->oneSerialization("000078-012.ring_trust");
+ }
+
+ public function test002182002sig() {
+ $this->oneSerialization("002182-002.sig");
+ }
+
+ public function testpubringgpg() {
+ $this->oneSerialization("pubring.gpg");
+ }
+
+ public function testsecringgpg() {
+ $this->oneSerialization("secring.gpg");
+ }
+
+ public function testcompressedsiggpg() {
+ $this->oneSerialization("compressedsig.gpg");
+ }
+
+ public function testcompressedsigzlibgpg() {
+ $this->oneSerialization("compressedsig-zlib.gpg");
+ }
+
+ public function testcompressedsigbzip2gpg() {
+ $this->oneSerialization("compressedsig-bzip2.gpg");
+ }
+
+ public function testonepass_sig() {
+ $this->oneSerialization("onepass_sig");
+ }
+
+ public function testsymmetrically_encrypted() {
+ $this->oneSerialization("symmetrically_encrypted");
+ }
+
+ public function testuncompressedopsdsagpg() {
+ $this->oneSerialization("uncompressed-ops-dsa.gpg");
+ }
+
+ public function testuncompressedopsdsasha384txtgpg() {
+ $this->oneSerialization("uncompressed-ops-dsa-sha384.txt.gpg");
+ }
+
+ public function testuncompressedopsrsagpg() {
+ $this->oneSerialization("uncompressed-ops-rsa.gpg");
+ }
+}