



@deftypefun {int} {gnutls_pubkey_export_mldsa_raw} (gnutls_pubkey_t @var{key}, gnutls_datum_t * @var{pub})
@var{key}: Holds the public key

@var{pub}: will hold the raw public key (may be @code{NULL} )

This function will export the ML-DSA public key found in  @code{key} as a
raw octet string (FIPS 204 / NIST ML-DSA public key encoding).  The
buffer is allocated using @code{gnutls_malloc()}  and stored in  @code{pub} .  The
ML-DSA parameter set can be obtained with
@code{gnutls_pubkey_get_pk_algorithm()} .

This is intended for applications such as DNSSEC that need the raw
public key material rather than a SubjectPublicKeyInfo encoding.

@strong{Returns:} @code{GNUTLS_E_SUCCESS}  on success, otherwise a negative error code.

@strong{Since:} 3.8.14
@end deftypefun
