Constructors

Methods

  • Host-only API to check whether the NCP uses key storage.

    Parameters

    Returns Promise<boolean>

    false if keys are in classic key storage, and true if they are located in PSA key storage.

  • Restores tokens. Only for NVM3-based NCP. XXX: If a previous backup from an NVM3 NCP is attempted on a non-NVM3 NCP, it should just fail (LIBRARY_NOT_PRESENT all on token-related functions).

    Parameters

    • ezsp: Ezsp
    • inBuffer: Buffer

    Returns Promise<SLStatus>

    SLStatus status code

    EmberTokensManager.saveTokens() for format

  • Saves tokens. Only for NVM3-based NCP.

    The binary file format to save the tokens are

    Number of Tokens (1 byte) Token0 (4 bytes) Token0Size(1 byte) Token0ArraySize(1 byte) Token0Data(Token0Size * Token0ArraySize) : : TokenM (4 bytes) TokenMSize(1 byte) TokenMArraySize(1 byte) TokenMData(TokenMSize * TokenMArraySize)

    Parameters

    • ezsp: Ezsp
    • localEui64: Buffer

      Used in place of blank restoredEui64 keys

    Returns Promise<undefined | Buffer>

    Saved tokens buffer or null.