Skip to main content

otPlatCryptoIsKeyRefValid

Function otPlatCryptoIsKeyRefValid 

Source
pub unsafe extern "C" fn otPlatCryptoIsKeyRefValid(
    aKeyRef: otCryptoKeyRef,
) -> bool
Expand description

Check whether a given key reference is valid.

This API does not check whether a key is currently stored under @p aKeyRef. Instead, use otPlatCryptoHasKey() for existence checks.

@note This API is only used by OT core when OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE is enabled.

@param[in] aKeyRef The Key Ref to check.

@retval TRUE @p aKeyRef is valid. @retval FALSE @p aKeyRef is not valid.