Re: Get required size of signature before signing.
Werner Koch via Gcrypt-devel <[email protected]> Mon, 11 May 2026 09:50:29 +0200
| Newsgroups | gmane.comp.encryption.gpg.libgcrypt.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============6144649102647634816== Content-Type: multipart/signed; boundary="=TRD_spy_Syria_Facility_Bush_Wired_William_Gates_Task_Force_Vinnell=E"; micalg=pgp-sha512; protocol="application/pgp-signature" --=TRD_spy_Syria_Facility_Bush_Wired_William_Gates_Task_Force_Vinnell=E Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi! On Sun, 10 May 2026 07:51, Stef Bon said: > I'm using gcry_pk_sign, and I want the code to get the size of the > signature before using the sign function. Is there a way to do this? The size of the signature depends on the algorithm and its parameters. In general the size of a signature is fixed. It is best to do trial signing to find out which signature size is yielded for your algorithm. There is no dummy signing, sorry. Shalom-Salam, Werner =2D-=20 The pioneers of a warless world are the youth that refuse military service. - A. Einstein --=TRD_spy_Syria_Facility_Bush_Wired_William_Gates_Task_Force_Vinnell=E Content-Type: application/pgp-signature; name="openpgp-digital-signature.asc" -----BEGIN PGP SIGNATURE----- iJ8EARYKAEcWIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCagGKRRsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMSwyLDINHHdrQGdudXBnLm9yZwAKCRAZzByeCFsQerzlAP9U FfV5Plbz1kHV3fFhRg8KjJg5Nr7J46ZvCpGkAz9YJgD6AjkQn5aaDOofYxIND+Bq LpxX+HpIZ2Uw965ddbUytgI= =L3iY -----END PGP SIGNATURE----- --=TRD_spy_Syria_Facility_Bush_Wired_William_Gates_Task_Force_Vinnell=E-- --===============6144649102647634816== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gcrypt-devel mailing list [email protected] https://lists.gnupg.org/mailman/listinfo/gcrypt-devel --===============6144649102647634816==--