Lines Matching refs:key
102 struct tls_credential *cert, *key, *temp; in test_credential_internal_iterate() local
105 key = credential_next_get(invalid_tag, NULL); in test_credential_internal_iterate()
106 zassert_is_null(key, "Should have return NULL for unknown credential"); in test_credential_internal_iterate()
112 key = credential_next_get(common_tag, cert); in test_credential_internal_iterate()
113 zassert_not_null(key, "Should have find a credential"); in test_credential_internal_iterate()
119 temp = key; in test_credential_internal_iterate()
120 key = cert; in test_credential_internal_iterate()
132 zassert_equal(key->type, TLS_CREDENTIAL_PRIVATE_KEY, in test_credential_internal_iterate()
134 zassert_equal(key->tag, common_tag, "Invalid tag for key"); in test_credential_internal_iterate()
135 zassert_equal(key->len, sizeof(test_server_key), "Invalid key length"); in test_credential_internal_iterate()
136 zassert_mem_equal(key->buf, test_server_key, sizeof(test_server_key), in test_credential_internal_iterate()
140 key = credential_next_get(common_tag, key); in test_credential_internal_iterate()
141 zassert_is_null(key, "Should have return NULL after last credential"); in test_credential_internal_iterate()