Constructor
new PublicKeyEncryptedSessionKeyPacket()
Members
encrypted :Object
Type:
- Object
Methods
(async) decrypt(key) → {Boolean}
Decrypts the session key (only for public key encrypted session key packets (tag 1)
Parameters:
Name | Type | Description |
---|---|---|
key |
SecretKeyPacket | Private key with secret params unlocked |
Returns:
- Type
- Boolean
(async) encrypt(key) → {Boolean}
Encrypt session key packet
Parameters:
Name | Type | Description |
---|---|---|
key |
PublicKeyPacket | Public key |
Returns:
- Type
- Boolean
read(bytes)
Parsing function for a publickey encrypted session key packet (tag 1).
Parameters:
Name | Type | Description |
---|---|---|
bytes |
Uint8Array | Payload of a tag 1 packet |
write() → {Uint8Array}
Create a binary representation of a tag 1 packet
Returns:
The Uint8Array representation.
- Type
- Uint8Array