]> git.tuebingen.mpg.de Git - paraslash.git/commit
gcrypt: Fix return value of apc_get_pubkey().
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 8 May 2023 19:25:30 +0000 (21:25 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 11 May 2023 17:43:09 +0000 (19:43 +0200)
commitac2b74b691bd19544660df8b69f89cd6f5323735
treec12b26b15017fc8029e51fa6cfd25d6c226fff05
parent5364bf49a734ba76400d3eb31f42f6a861e64bef
gcrypt: Fix return value of apc_get_pubkey().

The function is supposed to return the key size in bytes, but it
returns the number of *bits*. A consequence of this bug is that
RSA keys which are too short to encrypt our 128 byte buffer are not
rejected as they should be. This is not too serious because we'll fail
later during the encryption step. Fix the bug anyway and clarify the
documentation of apc_get_pubkey().
crypt.h
gcrypt.c