Home
last modified time | relevance | path

Searched refs:cmd_ctx (Results 1 – 25 of 31) sorted by relevance

12

/hal_silabs-3.7.0/gecko/se_manager/src/
Dsl_se_manager_util.c107 sl_status_t sl_se_check_se_image(sl_se_command_context_t *cmd_ctx, in sl_se_check_se_image() argument
110 if (cmd_ctx == NULL || image_addr == NULL) { in sl_se_check_se_image()
114 SE_Command_t *se_cmd = &cmd_ctx->command; in sl_se_check_se_image()
116 sli_se_command_init(cmd_ctx, SLI_SE_COMMAND_CHECK_SE_IMAGE); in sl_se_check_se_image()
120 return sli_se_execute_and_wait(cmd_ctx); in sl_se_check_se_image()
126 sl_status_t sl_se_apply_se_image(sl_se_command_context_t *cmd_ctx, in sl_se_apply_se_image() argument
129 if (cmd_ctx == NULL || image_addr == NULL) { in sl_se_apply_se_image()
133 SE_Command_t *se_cmd = &cmd_ctx->command; in sl_se_apply_se_image()
135 sli_se_command_init(cmd_ctx, SLI_SE_COMMAND_APPLY_SE_IMAGE); in sl_se_apply_se_image()
139 return sli_se_execute_and_wait(cmd_ctx); in sl_se_apply_se_image()
[all …]
Dsl_se_manager_cipher.c60 sl_status_t sl_se_aes_crypt_ecb(sl_se_command_context_t *cmd_ctx, in sl_se_aes_crypt_ecb() argument
67 if (cmd_ctx == NULL || key == NULL || input == NULL || output == NULL in sl_se_aes_crypt_ecb()
72 SE_Command_t *se_cmd = &cmd_ctx->command; in sl_se_aes_crypt_ecb()
75 sli_se_command_init(cmd_ctx, in sl_se_aes_crypt_ecb()
82 sli_add_key_parameters(cmd_ctx, key, status); in sl_se_aes_crypt_ecb()
87 sli_add_key_metadata(cmd_ctx, key, status); in sl_se_aes_crypt_ecb()
89 sli_add_key_input(cmd_ctx, key, status); in sl_se_aes_crypt_ecb()
97 return sli_se_execute_and_wait(cmd_ctx); in sl_se_aes_crypt_ecb()
103 sl_status_t sl_se_aes_crypt_cbc(sl_se_command_context_t *cmd_ctx, in sl_se_aes_crypt_cbc() argument
111 if (cmd_ctx == NULL || key == NULL || input == NULL || output == NULL in sl_se_aes_crypt_cbc()
[all …]
Dsl_se_manager_key_derivation.c70 sl_status_t sl_se_ecdh_compute_shared_secret(sl_se_command_context_t *cmd_ctx, in sl_se_ecdh_compute_shared_secret() argument
82 if (cmd_ctx == NULL in sl_se_ecdh_compute_shared_secret()
128 sli_se_command_init(cmd_ctx, SLI_SE_COMMAND_DH); in sl_se_ecdh_compute_shared_secret()
136 SE_addParameter(&cmd_ctx->command, keyspec_in); in sl_se_ecdh_compute_shared_secret()
142 SE_addParameter(&cmd_ctx->command, keyspec_out); in sl_se_ecdh_compute_shared_secret()
145 sli_add_key_metadata(cmd_ctx, key_in_priv, status); in sl_se_ecdh_compute_shared_secret()
147 sli_add_key_input(cmd_ctx, key_in_priv, status); in sl_se_ecdh_compute_shared_secret()
155 SE_addDataInput(&cmd_ctx->command, &auth_buffer_out); in sl_se_ecdh_compute_shared_secret()
178 SE_addDataInput(&cmd_ctx->command, &pubkey_input_buffer); in sl_se_ecdh_compute_shared_secret()
181 sli_add_key_output(cmd_ctx, key_out, status); in sl_se_ecdh_compute_shared_secret()
[all …]
Dsl_se_manager_hash.c52 sl_se_command_context_t *cmd_ctx) in sl_se_hash_sha1_multipart_starts() argument
65 if (cmd_ctx == NULL || sha1_ctx == NULL) { in sl_se_hash_sha1_multipart_starts()
83 sl_se_command_context_t *cmd_ctx) in sl_se_hash_sha224_multipart_starts() argument
96 if (cmd_ctx == NULL || sha224_ctx == NULL) { in sl_se_hash_sha224_multipart_starts()
114 sl_se_command_context_t *cmd_ctx) in sl_se_hash_sha256_multipart_starts() argument
127 if (cmd_ctx == NULL || sha256_ctx == NULL) { in sl_se_hash_sha256_multipart_starts()
146 sl_se_command_context_t *cmd_ctx) in sl_se_hash_sha384_multipart_starts() argument
159 if (cmd_ctx == NULL || sha384_ctx == NULL) { in sl_se_hash_sha384_multipart_starts()
178 …12_multipart_starts(sl_se_sha512_multipart_context_t *sha512_ctx, sl_se_command_context_t *cmd_ctx) in sl_se_hash_sha512_multipart_starts() argument
191 if (cmd_ctx == NULL || sha512_ctx == NULL) { in sl_se_hash_sha512_multipart_starts()
[all …]
Dsl_se_manager.c306 sl_status_t sl_se_set_yield(sl_se_command_context_t *cmd_ctx, in sl_se_set_yield() argument
309 if (cmd_ctx == NULL) { in sl_se_set_yield()
314 cmd_ctx->yield = yield; in sl_se_set_yield()
320 (void) cmd_ctx; in sl_se_set_yield()
334 sl_status_t sli_se_execute_and_wait(sl_se_command_context_t *cmd_ctx) in sli_se_execute_and_wait() argument
339 if (cmd_ctx == NULL) { in sli_se_execute_and_wait()
350 SE_executeCommand(&cmd_ctx->command); in sli_se_execute_and_wait()
353 if (cmd_ctx->yield) { in sli_se_execute_and_wait()
398 sl_status_t sli_se_execute_and_wait(sl_se_command_context_t *cmd_ctx) in sli_se_execute_and_wait() argument
402 if (cmd_ctx == NULL) { in sli_se_execute_and_wait()
[all …]
Dsl_se_manager_attestation.c113 static sl_status_t get_attestation_token_size(sl_se_command_context_t *cmd_ctx, in get_attestation_token_size() argument
119 if (cmd_ctx == NULL || token_size == NULL) { in get_attestation_token_size()
135 SE_Command_t *se_cmd = &cmd_ctx->command; in get_attestation_token_size()
137 sli_se_command_init(cmd_ctx, command_word | 0x01UL); in get_attestation_token_size()
145 return sli_se_execute_and_wait(cmd_ctx); in get_attestation_token_size()
176 static sl_status_t get_attestation_token(sl_se_command_context_t *cmd_ctx, in get_attestation_token() argument
185 if (cmd_ctx == NULL in get_attestation_token()
200 status = get_attestation_token_size(cmd_ctx, in get_attestation_token()
212 SE_Command_t *se_cmd = &cmd_ctx->command; in get_attestation_token()
213 sli_se_command_init(cmd_ctx, command_word); in get_attestation_token()
[all …]
Dsl_se_manager_key_handling.c791 sl_status_t sl_se_generate_key(sl_se_command_context_t *cmd_ctx, in sl_se_generate_key() argument
796 if (cmd_ctx == NULL || key_out == NULL) { in sl_se_generate_key()
801 sli_se_command_init(cmd_ctx, SLI_SE_COMMAND_CREATE_KEY); in sl_se_generate_key()
804 sli_add_key_parameters(cmd_ctx, key_out, status); in sl_se_generate_key()
807 SE_Command_t *se_cmd = &cmd_ctx->command; in sl_se_generate_key()
857 sli_add_key_metadata(cmd_ctx, key_out, status); in sl_se_generate_key()
859 sli_add_key_output(cmd_ctx, key_out, status); in sl_se_generate_key()
862 status = sli_se_execute_and_wait(cmd_ctx); in sl_se_generate_key()
877 sl_status_t sl_se_export_public_key(sl_se_command_context_t *cmd_ctx, in sl_se_export_public_key() argument
881 if (cmd_ctx == NULL || key_in == NULL || key_out == NULL) { in sl_se_export_public_key()
[all …]
Dsl_se_manager_signature.c49 sl_status_t sl_se_ecc_sign(sl_se_command_context_t *cmd_ctx, in sl_se_ecc_sign() argument
58 if (cmd_ctx == NULL || key == NULL || message == NULL || signature == NULL) { in sl_se_ecc_sign()
62 SE_Command_t *se_cmd = &cmd_ctx->command; in sl_se_ecc_sign()
100 sli_se_command_init(cmd_ctx, command_word); in sl_se_ecc_sign()
102 sli_add_key_parameters(cmd_ctx, key, status); in sl_se_ecc_sign()
106 sli_add_key_metadata(cmd_ctx, key, status); in sl_se_ecc_sign()
108 sli_add_key_input(cmd_ctx, key, status); in sl_se_ecc_sign()
122 return sli_se_execute_and_wait(cmd_ctx); in sl_se_ecc_sign()
128 sl_status_t sl_se_ecc_verify(sl_se_command_context_t *cmd_ctx, in sl_se_ecc_verify() argument
137 if (cmd_ctx == NULL || key == NULL || message == NULL || signature == NULL) { in sl_se_ecc_verify()
[all …]
Dsl_se_manager_entropy.c48 sl_status_t sl_se_get_random(sl_se_command_context_t *cmd_ctx, in sl_se_get_random() argument
57 if (cmd_ctx == NULL || (num_bytes != 0 && data == NULL)) { in sl_se_get_random()
61 se_cmd = &cmd_ctx->command; in sl_se_get_random()
66 sli_se_command_init(cmd_ctx, SLI_SE_COMMAND_TRNG_GET_RANDOM); in sl_se_get_random()
73 if ((ret = sli_se_execute_and_wait(cmd_ctx)) != SL_STATUS_OK) { in sl_se_get_random()
80 sli_se_command_init(cmd_ctx, SLI_SE_COMMAND_TRNG_GET_RANDOM); in sl_se_get_random()
87 if ((ret = sli_se_execute_and_wait(cmd_ctx)) != SL_STATUS_OK) { in sl_se_get_random()
/hal_silabs-3.7.0/gecko/se_manager/inc/
Dsl_se_manager_util.h89 sl_status_t sl_se_check_se_image(sl_se_command_context_t *cmd_ctx,
110 sl_status_t sl_se_apply_se_image(sl_se_command_context_t *cmd_ctx,
131 sl_status_t sl_se_get_upgrade_status_se_image(sl_se_command_context_t *cmd_ctx,
157 sl_status_t sl_se_check_host_image(sl_se_command_context_t *cmd_ctx,
182 sl_status_t sl_se_apply_host_image(sl_se_command_context_t *cmd_ctx,
205 sl_se_get_upgrade_status_host_image(sl_se_command_context_t *cmd_ctx,
242 sl_status_t sl_se_init_otp_key(sl_se_command_context_t *cmd_ctx,
274 sl_status_t sl_se_read_pubkey(sl_se_command_context_t *cmd_ctx,
295 sl_status_t sl_se_init_otp(sl_se_command_context_t *cmd_ctx,
315 sl_status_t sl_se_get_otp_version(sl_se_command_context_t *cmd_ctx,
[all …]
Dsl_se_manager_cipher.h94 sl_status_t sl_se_aes_crypt_ecb(sl_se_command_context_t *cmd_ctx,
132 sl_status_t sl_se_aes_crypt_cbc(sl_se_command_context_t *cmd_ctx,
171 sl_status_t sl_se_aes_crypt_cfb128(sl_se_command_context_t *cmd_ctx,
208 sl_status_t sl_se_aes_crypt_cfb8(sl_se_command_context_t *cmd_ctx,
254 sl_status_t sl_se_aes_crypt_ctr(sl_se_command_context_t *cmd_ctx,
303 sl_status_t sl_se_ccm_encrypt_and_tag(sl_se_command_context_t *cmd_ctx,
352 sl_status_t sl_se_ccm_auth_decrypt(sl_se_command_context_t *cmd_ctx,
404 sl_se_command_context_t *cmd_ctx,
448 sl_se_command_context_t *cmd_ctx,
492 sl_se_command_context_t *cmd_ctx,
[all …]
Dsli_se_manager_internal.h296 #define sli_se_command_init(cmd_ctx, command_word) \ argument
297 cmd_ctx->command.command = command_word; \
298 cmd_ctx->command.data_in = NULL; \
299 cmd_ctx->command.data_out = NULL; \
300 cmd_ctx->command.num_parameters = 0;
317 #define sli_add_key_parameters(cmd_ctx, key, status) { \ argument
323 SE_addParameter(&cmd_ctx->command, keyspec); \
327 #define sli_add_key_metadata(cmd_ctx, key, status) \ argument
334 SE_addDataInput(&cmd_ctx->command, &auth_buffer);
337 #define sli_add_key_metadata_custom(cmd_ctx, auth_data_buf, key, status) \ argument
[all …]
Dsl_se_manager_hash.h99 sl_status_t sl_se_hash(sl_se_command_context_t *cmd_ctx,
125 sl_se_command_context_t *cmd_ctx);
146 sl_se_command_context_t *cmd_ctx);
167 sl_se_command_context_t *cmd_ctx);
189 sl_se_command_context_t *cmd_ctx);
210 sl_se_command_context_t *cmd_ctx);
238 sl_se_command_context_t *cmd_ctx,
266 sl_se_command_context_t *cmd_ctx,
295 sl_se_command_context_t *cmd_ctx,
Dsl_se_manager_key_handling.h103 sl_status_t sl_se_generate_key(sl_se_command_context_t *cmd_ctx,
126 sl_status_t sl_se_import_key(sl_se_command_context_t *cmd_ctx,
151 sl_status_t sl_se_export_key(sl_se_command_context_t *cmd_ctx,
180 sl_status_t sl_se_transfer_key(sl_se_command_context_t *cmd_ctx,
204 sl_status_t sl_se_export_public_key(sl_se_command_context_t *cmd_ctx,
225 sl_status_t sl_se_delete_key(sl_se_command_context_t *cmd_ctx,
Dsl_se_manager.h119 sl_status_t sl_se_set_yield(sl_se_command_context_t *cmd_ctx,
135 sl_status_t sl_se_read_executed_command(sl_se_command_context_t *cmd_ctx);
153 sl_status_t sl_se_ack_command(sl_se_command_context_t *cmd_ctx);
177 sl_status_t sl_se_init_command_context(sl_se_command_context_t *cmd_ctx);
192 sl_status_t sl_se_deinit_command_context(sl_se_command_context_t *cmd_ctx);
Dsl_se_manager_attestation.h112 sl_status_t sl_se_attestation_get_psa_iat_token(sl_se_command_context_t *cmd_ctx,
135 sl_status_t sl_se_attestation_get_psa_iat_token_size(sl_se_command_context_t *cmd_ctx,
173 sl_status_t sl_se_attestation_get_config_token(sl_se_command_context_t *cmd_ctx,
196 sl_status_t sl_se_attestation_get_config_token_size(sl_se_command_context_t *cmd_ctx,
/hal_silabs-3.7.0/gecko/util/se_manager/inc/
Dsl_se_manager_util.h89 sl_status_t sl_se_check_se_image(sl_se_command_context_t *cmd_ctx,
110 sl_status_t sl_se_apply_se_image(sl_se_command_context_t *cmd_ctx,
131 sl_status_t sl_se_get_upgrade_status_se_image(sl_se_command_context_t *cmd_ctx,
157 sl_status_t sl_se_check_host_image(sl_se_command_context_t *cmd_ctx,
182 sl_status_t sl_se_apply_host_image(sl_se_command_context_t *cmd_ctx,
205 sl_se_get_upgrade_status_host_image(sl_se_command_context_t *cmd_ctx,
242 sl_status_t sl_se_init_otp_key(sl_se_command_context_t *cmd_ctx,
274 sl_status_t sl_se_read_pubkey(sl_se_command_context_t *cmd_ctx,
295 sl_status_t sl_se_init_otp(sl_se_command_context_t *cmd_ctx,
314 sl_status_t sl_se_read_otp(sl_se_command_context_t *cmd_ctx,
[all …]
Dsl_se_manager_cipher.h94 sl_status_t sl_se_aes_crypt_ecb(sl_se_command_context_t *cmd_ctx,
132 sl_status_t sl_se_aes_crypt_cbc(sl_se_command_context_t *cmd_ctx,
171 sl_status_t sl_se_aes_crypt_cfb128(sl_se_command_context_t *cmd_ctx,
208 sl_status_t sl_se_aes_crypt_cfb8(sl_se_command_context_t *cmd_ctx,
249 sl_status_t sl_se_aes_crypt_ctr(sl_se_command_context_t *cmd_ctx,
298 sl_status_t sl_se_ccm_encrypt_and_tag(sl_se_command_context_t *cmd_ctx,
347 sl_status_t sl_se_ccm_auth_decrypt(sl_se_command_context_t *cmd_ctx,
399 sl_se_command_context_t *cmd_ctx,
443 sl_se_command_context_t *cmd_ctx,
487 sl_se_command_context_t *cmd_ctx,
[all …]
Dsli_se_manager_internal.h299 #define sli_se_command_init(cmd_ctx, command_word) \ argument
300 cmd_ctx->command.command = command_word; \
301 cmd_ctx->command.data_in = NULL; \
302 cmd_ctx->command.data_out = NULL; \
303 cmd_ctx->command.num_parameters = 0;
320 #define sli_add_key_parameters(cmd_ctx, key, status) { \ argument
326 SE_addParameter(&cmd_ctx->command, keyspec); \
330 #define sli_add_key_metadata(cmd_ctx, key, status) \ argument
337 SE_addDataInput(&cmd_ctx->command, &auth_buffer);
340 #define sli_add_key_metadata_custom(cmd_ctx, auth_data_buf, key, status) \ argument
[all …]
Dsl_se_manager_key_handling.h103 sl_status_t sl_se_generate_key(sl_se_command_context_t *cmd_ctx,
126 sl_status_t sl_se_import_key(sl_se_command_context_t *cmd_ctx,
151 sl_status_t sl_se_export_key(sl_se_command_context_t *cmd_ctx,
180 sl_status_t sl_se_transfer_key(sl_se_command_context_t *cmd_ctx,
204 sl_status_t sl_se_export_public_key(sl_se_command_context_t *cmd_ctx,
225 sl_status_t sl_se_delete_key(sl_se_command_context_t *cmd_ctx,
Dsl_se_manager.h119 sl_status_t sl_se_set_yield(sl_se_command_context_t *cmd_ctx,
135 sl_status_t sl_se_read_executed_command(sl_se_command_context_t *cmd_ctx);
153 sl_status_t sl_se_ack_command(sl_se_command_context_t *cmd_ctx);
177 sl_status_t sl_se_init_command_context(sl_se_command_context_t *cmd_ctx);
192 sl_status_t sl_se_deinit_command_context(sl_se_command_context_t *cmd_ctx);
Dsl_se_manager_attestation.h113 sl_status_t sl_se_attestation_get_psa_iat_token(sl_se_command_context_t *cmd_ctx,
136 sl_status_t sl_se_attestation_get_psa_iat_token_size(sl_se_command_context_t *cmd_ctx,
174 sl_status_t sl_se_attestation_get_config_token(sl_se_command_context_t *cmd_ctx,
197 sl_status_t sl_se_attestation_get_config_token_size(sl_se_command_context_t *cmd_ctx,
/hal_silabs-3.7.0/gecko/util/se_manager/src/
Dsl_se_manager.c305 sl_status_t sl_se_set_yield(sl_se_command_context_t *cmd_ctx, in sl_se_set_yield() argument
308 if (cmd_ctx == NULL) { in sl_se_set_yield()
313 cmd_ctx->yield = yield; in sl_se_set_yield()
319 (void) cmd_ctx; in sl_se_set_yield()
333 sl_status_t sli_se_execute_and_wait(sl_se_command_context_t *cmd_ctx) in sli_se_execute_and_wait() argument
338 if (cmd_ctx == NULL) { in sli_se_execute_and_wait()
349 SE_executeCommand(&cmd_ctx->command); in sli_se_execute_and_wait()
352 if (cmd_ctx->yield) { in sli_se_execute_and_wait()
397 sl_status_t sli_se_execute_and_wait(sl_se_command_context_t *cmd_ctx) in sli_se_execute_and_wait() argument
401 if (cmd_ctx == NULL) { in sli_se_execute_and_wait()
[all …]
Dsl_se_manager_attestation.c116 static sl_status_t get_attestation_token_size(sl_se_command_context_t *cmd_ctx, in get_attestation_token_size() argument
122 if (cmd_ctx == NULL || token_size == NULL) { in get_attestation_token_size()
138 SE_Command_t *se_cmd = &cmd_ctx->command; in get_attestation_token_size()
140 sli_se_command_init(cmd_ctx, command_word | 0x01UL); in get_attestation_token_size()
148 return sli_se_execute_and_wait(cmd_ctx); in get_attestation_token_size()
179 static sl_status_t get_attestation_token(sl_se_command_context_t *cmd_ctx, in get_attestation_token() argument
188 if (cmd_ctx == NULL in get_attestation_token()
203 status = get_attestation_token_size(cmd_ctx, in get_attestation_token()
215 SE_Command_t *se_cmd = &cmd_ctx->command; in get_attestation_token()
216 sli_se_command_init(cmd_ctx, command_word); in get_attestation_token()
[all …]
Dsl_se_manager_entropy.c49 sl_status_t sl_se_get_random(sl_se_command_context_t *cmd_ctx, in sl_se_get_random() argument
58 if (cmd_ctx == NULL || (num_bytes != 0 && data == NULL)) { in sl_se_get_random()
62 se_cmd = &cmd_ctx->command; in sl_se_get_random()
67 sli_se_command_init(cmd_ctx, SLI_SE_COMMAND_TRNG_GET_RANDOM); in sl_se_get_random()
74 if ((ret = sli_se_execute_and_wait(cmd_ctx)) != SL_STATUS_OK) { in sl_se_get_random()
81 sli_se_command_init(cmd_ctx, SLI_SE_COMMAND_TRNG_GET_RANDOM); in sl_se_get_random()
88 if ((ret = sli_se_execute_and_wait(cmd_ctx)) != SL_STATUS_OK) { in sl_se_get_random()

12