Adding new public key KEM API

Werner Koch wk at
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.



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: <>

More information about the Gcrypt-devel mailing list