pub unsafe extern "C" fn esp_aes_gcm_setkey(
    ctx: *mut esp_gcm_context,
    cipher: mbedtls_cipher_id_t,
    key: *const c_uchar,
    keybits: c_uint
) -> c_int
Expand description

\brief This function associates a GCM context with a key.

\param ctx The GCM context to initialize. \param cipher The 128-bit block cipher to use. \param key The encryption key. \param keybits The key size in bits. Valid options are:

  • 128 bits
  • 192 bits
  • 256 bits

\return \c 0 on success. \return A cipher-specific error code on failure.