Function openthread_sys::otCoapSecureSetPsk
source ยท pub unsafe extern "C" fn otCoapSecureSetPsk(
aInstance: *mut otInstance,
aPsk: *const u8,
aPskLength: u16,
aPskIdentity: *const u8,
aPskIdLength: u16,
)
Expand description
Sets the Pre-Shared Key (PSK) and cipher suite DTLS_PSK_WITH_AES_128_CCM_8.
@note This function requires the build-time feature MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
to be enabled.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aPsk A pointer to the PSK. @param[in] aPskLength The PSK length. @param[in] aPskIdentity The Identity Name for the PSK. @param[in] aPskIdLength The PSK Identity Length.