Re: GPGME question about ciphertext and plaintext sizes

2023-05-10 Thread Dim Xr via Gnupg-users
Thank you Werner. You need to use a low level crypto library > for that (e.g. Libgcrypt) and decide which algorithm, mode and > additional information you use. > OK I'll check it out. Searching on the mailing list responses I came across with Libgcrypt again, but I've read that it is quite low-le

GPGME question about ciphertext and plaintext sizes

2023-05-09 Thread Dim Xr via Gnupg-users
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 Encrypti