1.1.15.3 WDRV_WINC_EXTCRYPTOSignResult

C

WDRV_WINC_STATUS WDRV_WINC_EXTCRYPTOSignResult
(
    DRV_HANDLE handle,
    uintptr_t extCryptoCxt,
    bool status,
    const uint8_t *const pSignature,
    size_t lenSignature
)

Description

Provide the signature for a signing operation which has been performed externally, from the perspective of the WINC IC.

Precondition

WDRV_WINC_Initialize must have been called.

WDRV_WINC_Open must have been called to obtain a valid handle.

WDRV_WINC_TLSCtxOpen must have been called to obtain a valid TLS handle.

A request for an external signing operation must have been received via a WDRV_WINC_EXTCRYPTO_SIGN_CB function.

Parameters

ParametersDescription
handleClient handle obtained by a call to WDRV_WINC_Open.
extCryptoCxtContext provided in the request.
statusTrue if operation succeeded, false otherwise.
pSignaturePointer to the signature.
lenSignatureLength of the signature.

Returns

  • WDRV_WINC_STATUS_OK - The request has been accepted.

  • WDRV_WINC_STATUS_NOT_OPEN - The driver instance is not open.

  • WDRV_WINC_STATUS_INVALID_ARG - The parameters were incorrect.

  • WDRV_WINC_STATUS_REQUEST_ERROR - The request to the WINC was rejected.

Remarks

None.