sc_sign_init()

Initialize a smart card in preparation to perform signing operations with the specified cryptographic system and key.

Synopsis:

#include <smartcard/sc_smart_card.h>
 
sc_response_code_t sc_sign_init(sc_context_t *context,                 
                                const sc_crypto_system_t *crypto_system,                 
                                const sc_crypto_token_t *key)

Since:

BlackBerry 10.2.0

Arguments:

context

The active smart card context. This value cannot be NULL.

crypto_system

The cryptographic system to use for the signing operation.

key

A cryptographic token the describes the key to use for the signing operation.

Library:

libscs (For the qcc command, use the -l scs option to link against this library)

Description:

A handle of type SC_HANDLE_CARD_CRYPTO_PROVIDER_X must be allocated before calling this function, otherwise an error is returned.

Returns:

SC_SCARD_S_SUCCESS upon success, an error code otherwise. See sc_response_code_t for defined error codes.