Lines Matching refs:key_len
219 size_t key_len; in hwkey_get_derived_key() local
221 data->retriever(data, key_buffer, sizeof(key_buffer), &key_len); in hwkey_get_derived_key()
227 switch (key_len) { in hwkey_get_derived_key()
235 TLOGE("invalid key length: (%zd)\n", key_len); in hwkey_get_derived_key()
342 size_t key_len) { in hwkey_handle_derive_key_impl() argument
348 if (!context || !key || key_len == 0) { in hwkey_handle_derive_key_impl()
354 return derive_key_v1(uuid, context, context_len, key, key_len); in hwkey_handle_derive_key_impl()
370 size_t key_len = ikm_len; in hwkey_handle_derive_key_cmd() local
371 if (key_len > HWKEY_MAX_MSG_SIZE - sizeof(*hdr)) { in hwkey_handle_derive_key_cmd()
372 TLOGE("Key length exceeds message size: %zu\n", key_len); in hwkey_handle_derive_key_cmd()
373 key_len = 0; in hwkey_handle_derive_key_cmd()
379 &hdr->arg1, &ctx->uuid, ikm_data, ikm_len, key_data, key_len); in hwkey_handle_derive_key_cmd()
382 rc = hwkey_send_rsp(ctx, hdr, key_data, key_len); in hwkey_handle_derive_key_cmd()
383 if (key_len) { in hwkey_handle_derive_key_cmd()
422 size_t key_len; in hwkey_handle_derive_versioned_key_cmd() local
424 key_len = msg->key_len; in hwkey_handle_derive_versioned_key_cmd()
425 if (key_len > HWKEY_MAX_MSG_SIZE - sizeof(*msg)) { in hwkey_handle_derive_versioned_key_cmd()
426 TLOGE("Key length (%zu) exceeds buffer length\n", key_len); in hwkey_handle_derive_versioned_key_cmd()
462 key_len); in hwkey_handle_derive_versioned_key_cmd()
463 if (key_len == 0) { in hwkey_handle_derive_versioned_key_cmd()
484 context_len, key_data, key_len); in hwkey_handle_derive_versioned_key_cmd()
494 msg->key_len = 0; in hwkey_handle_derive_versioned_key_cmd()
499 rc = tipc_send2(ctx->chan, msg, sizeof(*msg), key_data, msg->key_len); in hwkey_handle_derive_versioned_key_cmd()
500 if (msg->key_len) { in hwkey_handle_derive_versioned_key_cmd()