A class representing a public-key encryption instance.
This implements the encryption part of the m.megolm_backup.v1.curve25519-aes-sha2 algorithm described in the Matrix spec.
m.megolm_backup.v1.curve25519-aes-sha2
PkDecryption
More details can be found in the official vodozemac documentation.
Encrypts a byte message and returns an encrypted PkMessage.
Encrypts a string message and returns an encrypted PkMessage.
Static
Creates a new PkEncryption instance from a public key.
PkEncryption
A class representing a public-key encryption instance.
This implements the encryption part of the
m.megolm_backup.v1.curve25519-aes-sha2
algorithm described in the Matrix spec.See
PkDecryption
More details can be found in the official vodozemac documentation.