# Functions
DecodeField decodes a x25519 session key encryption as ephemeral x25519 public key | follow byte length | cipherFunction (v3 only) | encryptedSessionKey.
Decrypt decrypts a session key stored in ciphertext with the provided x25519 private key and ephemeral public key.
EncodeFieldsLength returns the length of the ciphertext encoding given the encrypted session key.
EncodeField encodes x25519 session key encryption fields as ephemeral x25519 public key | follow byte length | cipherFunction (v3 only) | encryptedSessionKey and writes it to writer.
Encrypt encrypts a sessionKey with x25519 according to the OpenPGP crypto refresh specification section 5.1.6.
GenerateKey generates a new x25519 key pair.
NewPrivateKey creates a new empty private key including the public key.
Validate validates that the provided public key matches the private key.
# Constants
The size of a public or private key in bytes.