GPGME question about ciphertext and plaintext sizes

Dim Xr dimxrss at gmail.com
Tue May 9 16:48:31 CEST 2023


Hello all,
I'm currently working on a userspace block device driver. I want to add
encryption on it,
and that's how I came across GPGME.

My question is: is there a way to encrypt a plaintext and get a ciphertext
of **exactly** the
same size? Is there any way to have FPE (Format Preserving Encryption) via
GPGME?


>From my research so far, it doesn't seem to exist one. Even symmetric
algorithms are using
metadata on the ciphertext so the size is always bigger than the
corresponding plaintext.

All suggestions are welcome!

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20230509/724bf18f/attachment.html>


More information about the Gnupg-users mailing list