11.12.3.4.219. Function sss_key_store_set_key

11.12.3.4.219.1. Function Documentation

sss_status_t sss_key_store_set_key(sss_key_store_t *keyStore, sss_object_t *keyObject, const uint8_t *data, size_t dataLen, size_t keyBitLen, void *options, size_t optionsLen)

This function moves data[] from memory to the destination key store.

Return

Parameters
  • keyStore: Key store context

  • keyObject: Reference to a key and it’s properties

  • data: Data to be stored in Key. When setting ecc private key only, do not include key header.

  • dataLen: Length of the data

  • keyBitLen: Crypto algorithm key bit length

  • options: Pointer to implementation specific options

  • optionsLen: Length of the options in bytes