/
packet.rb
55 lines (46 loc) · 2.36 KB
/
packet.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'pgp/packet/packet'
require 'pgp/packet/publickeyencryptedsessionkeyrsa' # Tag 1
require 'pgp/packet/signature' # Tag 2
require 'pgp/packet/sigsubpacket' # (sub packet)
# Symmetric-Key Encrypted Session Key Packets (Tag 3)
# One-Pass Signature Packets (Tag 4)
require 'pgp/packet/secretkeyrsa' # Tag 5 (RSA)
require 'pgp/packet/secretkeydsa' # (DSA)
require 'pgp/packet/secretkeyelgamal' # (Elgamal)
require 'pgp/packet/publickeyrsa' # Tag 6 (RSA)
require 'pgp/packet/publickeydsa' # (DSA)
require 'pgp/packet/publickeyelgamal' # (Elgamal)
require 'pgp/packet/secretsubkeyrsa' # Tag 7 (RSA)
require 'pgp/packet/secretsubkeydsa' # (DSA)
require 'pgp/packet/secretsubkeyelgamal' # (Elgamal)
require 'pgp/packet/compresseddata' # Tag 8
# Symmetrically Encrypted Data Packet (Tag 9)
require 'pgp/packet/marker' # Tag 10
require 'pgp/packet/literaldata' # Tag 11
require 'pgp/packet/trust' # Tag 12
require 'pgp/packet/userid' # Tag 13
require 'pgp/packet/publicsubkeyrsa' # Tag 14 (RSA)
require 'pgp/packet/publicsubkeydsa' # (DSA)
require 'pgp/packet/publicsubkeyelgamal' # (Elgamal)
require 'pgp/packet/userattribute' # Tag 17
require 'pgp/packet/symencryptedintegrityprotecteddata' # Tag 18 and 19
module PGP
module Packet
def self.load(port, verbose = false)
PGP::Packet::Packet.load(port, verbose)
end
end
end