Re: Get required size of signature before signing.

NIIBE Yutaka via Gcrypt-devel <[email protected]> Tue, 19 May 2026 10:16:33 +0900
Newsgroups gmane.comp.encryption.gpg.libgcrypt.devel
Message-ID <[email protected]>
Hello,

Stef Bon wrote:
> gcry_pk_algo_info can do this (using GCRY_GET_ALGO_SIGNSIZE for
> example)

We can't use the gcry_pk_algo_info API for this purpose, because the
size of signature depends on a key (in general).

For example, RSA-1024 and RSA-4096 have different signature size.
--