-
<inner> decrypt
-
Decrypts the session key (only for public key encrypted session key
packets (tag 1)
Parameters:
- Source:
Returns:
the unencrypted session key
-
Type
-
String
-
<inner> read_pub_key_packet
-
parsing function for a publickey encrypted session key packet (tag 1).
Parameters:
Name |
Type |
Description |
input |
string
|
payload of a tag 1 packet |
position |
integer
|
position to start reading from the input string |
len |
integer
|
length of the packet or the remaining length of
input at position |
- Source:
Returns:
object representation
-
Type
-
openpgp_packet_encrypteddata
-
<inner> read_symmetric_key_packet
-
parsing function for a symmetric encrypted session key packet (tag 3).
Parameters:
Name |
Type |
Description |
input |
string
|
payload of a tag 1 packet |
position |
integer
|
position to start reading from the input string |
len |
integer
|
length of the packet or the remaining length of
input at position |
- Source:
Returns:
object representation
-
Type
-
openpgp_packet_encrypteddata
-
<inner> toString
-
Creates a string representation of this object (useful for debug
purposes)
- Source:
Returns:
the string containing a openpgp description
-
<inner> write_pub_key_packet
-
create a string representation of a tag 1 packet
Parameters:
Name |
Type |
Description |
publicKeyId |
String
|
the public key id corresponding to publicMPIs key as string |
publicMPIs |
Array[openpgp_type_mpi]
|
multiprecision integer objects describing the public key |
pubalgo |
integer
|
the corresponding public key algorithm // See RFC4880 9.1 |
symmalgo |
integer
|
the symmetric cipher algorithm used to encrypt the data within
an encrypteddatapacket or encryptedintegrityprotecteddatapacket
following this packet //See RFC4880 9.2 |
sessionkey |
String
|
a string of randombytes representing the session key |
- Source:
Returns:
the string representation
-
Type
-
String