| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
i guess the next thing will be to write a wrapper for libgcrypt
|
| |
|
| |
|
|
|
|
|
| |
has to be calculated since all length info is encrypted together with
the secret key.
|
|
|
|
| |
parsing packets is now done useing bindata gem
|
| |
|
| |
|
| |
|
|
|
|
| |
packet receives a parse message
|
| |
|
| |
|
|
|
|
|
|
|
| |
this will simplify the parsing since e.g. Packet can already determine
the size of itself while removeing all intermediate size headers. a
subclass can then just read from the stream without having to care abouth
headers or gaps in the data stream.
|
| |
|
|
|
|
| |
implemented with_tag protocol to select a subclass depending on a tag.
|
| |
|
| |
|
|
|
|
|
|
| |
use new header format and partial size headers :/ -> added all that stuff
gpg mixes old and new header format ...
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
apparently gpg uses old header format. so for now just implement this.
the size type is encoded in the two lsb of the header
we can now already find all the packets in:
FPG::Parse::Parser.parse( File.open( "spec/fixtures/test.bin.pub" ) )
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the plan is to have classes fore every packet type and (in a separate
module) the same classes again, but extended by a parsing module such that
each packet can parse itself.
detect first packet headers and parse its size.
can be used e.g. with:
FPG::Parse::Parser.parse( File.open( "spec/fixtures/test.bin.pub" ) )
will create a Signature Packet with size 13
|
|
|