



@deftypefun {int} {gnutls_hpke_import_pubkey} (const gnutls_hpke_context_t @var{ctx}, gnutls_pubkey_t @var{pubkey}, const gnutls_datum_t * @var{pubkey_raw})
@var{ctx}: The HPKE context to use for exporting the public key.

@var{pubkey}: An initialized public key.

@var{pubkey_raw}: A raw public key data in a gnutls_datum_t structure.

This function imports raw public key data from  @code{pubkey_raw} , which
must be compatible with the HPKE context  @code{ctx} .

@strong{Returns:} 0 on success, or a negative error code on failure

@strong{Since:} 3.8.14
@end deftypefun
