11.12.3.4.189. Function sss_derive_key_go

11.12.3.4.189.1. Function Documentation

sss_status_t sss_derive_key_go(sss_derive_key_t *context, const uint8_t *saltData, size_t saltLen, const uint8_t *info, size_t infoLen, sss_object_t *derivedKeyObject, uint16_t deriveDataLen, uint8_t *hkdfOutput, size_t *hkdfOutputLen)

Symmetric key derivation The function cryptographically derives a key from another key. For example MIFARE key derivation, PRF, HKDF-Extract.

Return

Status of the operation

Parameters
  • context: Pointer to derive key context.

  • saltData: Input data buffer, typically with some random data.

  • saltLen: Length of saltData buffer in bytes.

  • info: Input data buffer, typically with some fixed info.

  • infoLen: Length of info buffer in bytes.

  • [inout] derivedKeyObject: Reference to a derived key

  • deriveDataLen: Requested length of output

  • hkdfOutput: Output buffer containing key derivation output

  • hkdfOutputLen: Output containing length of hkdfOutput

Return Value