-
<inner> encode_length
-
Encodes a given integer of length to the openpgp length specifier to a
string
Parameters:
Name |
Type |
Description |
length |
Integer
|
of the length to encode |
- Source:
Returns:
string with openpgp length representation
-
Type
-
string
-
<inner> read_packet
-
Generic static Packet Parser function
Parameters:
Name |
Type |
Description |
input |
String
|
input stream as string |
position |
integer
|
position to start parsing |
len |
integer
|
length of the input from position on |
- Source:
Returns:
returns a parsed openpgp_packet
-
Type
-
openpgp_packet_*
-
-
Writes a packet header Version 3 with the given tag_type and length to a
string
Parameters:
Name |
Type |
Description |
tag_type |
integer
|
tag type |
length |
integer
|
length of the payload |
- Source:
Returns:
string of the header
-
Type
-
string
-
-
Writes a packet header version 4 with the given tag_type and length to a
string
Parameters:
Name |
Type |
Description |
tag_type |
integer
|
tag type |
length |
integer
|
length of the payload |
- Source:
Returns:
string of the header
-
Type
-
string