Set()
Sets the `Key` as a literal key from a given byte array and length.
GetBytes() const
Gets the pointer to the bye array containing the key. If `OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE` is enabled and `IsKeyRef()` returns `true`, then this method returns `nullptr`.
GetLength() const
Gets the key length (number of bytes). If `OPENTHREAD_CONFIG_PLATFORM_KEY_REFERENCES_ENABLE` is enabled and `IsKeyRef()` returns `true`, then this method returns zero.