Adding new public key KEM API

Werner Koch wk at gnupg.org
Wed Oct 18 19:19:36 CEST 2023


On Wed, 18 Oct 2023 15:35, Simon Josefsson said:

> callers.  Using 'void*' for things that always will be 'uint8_t*' loses
> type safety features of C.

A memory buffer has no defined type so you can't have type safety.

I also tend to use unsigned char * for memory buffers (and char * for
Nul-termnated string) but in Libgcrypt we have always used void* for
data and keys.  Adding something else would be surprising.


Shalom-Salam,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 247 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20231018/770bab4b/attachment.sig>


More information about the Gcrypt-devel mailing list