Class: SymEncryptedSessionKey

packet/sym_encrypted_session_key~ SymEncryptedSessionKey

new SymEncryptedSessionKey()

Source:

Methods

decrypt() → {String}

Decrypts the session key (only for public key encrypted session key packets (tag 1)
Source:
Returns:
The unencrypted session key
Type
String

read(input, position, len) → {module:packet/sym_encrypted_session_key}

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
module:packet/sym_encrypted_session_key