Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 100) sorted by relevance

1234

/optee_os-3.20.0/core/drivers/scmi-msg/
A Dvoltage_domain.c116 if (msg->in_size != sizeof(*in_args)) { in report_message_attributes()
138 if (msg->in_size != sizeof(*in_args)) { in scmi_voltd_domain_attributes()
182 if (msg->in_size != sizeof(*in_args)) { in scmi_voltd_describe_levels()
192 if (msg->out_size < sizeof(out_args)) { in scmi_voltd_describe_levels()
261 scmi_status_response(msg, status); in scmi_voltd_describe_levels()
265 msg->out_size_out = sizeof(out_args) + in scmi_voltd_describe_levels()
277 if (msg->in_size != sizeof(*in_args)) { in scmi_voltd_config_set()
294 scmi_status_response(msg, status); in scmi_voltd_config_set()
303 if (msg->in_size != sizeof(*in_args)) { in scmi_voltd_config_get()
347 scmi_status_response(msg, status); in scmi_voltd_level_set()
[all …]
A Dclock.c78 if (msg->in_size) { in report_version()
94 if (msg->in_size) { in report_attributes()
111 if (msg->in_size != sizeof(*in_args)) { in report_message_attributes()
133 if (msg->in_size != sizeof(*in_args)) { in scmi_clock_attributes()
167 if (msg->in_size != sizeof(*in_args)) { in scmi_clock_rate_get()
195 if (msg->in_size != sizeof(*in_args)) { in scmi_clock_rate_set()
213 scmi_status_response(msg, status); in scmi_clock_rate_set()
240 scmi_status_response(msg, status); in scmi_clock_config_set()
351 scmi_status_response(msg, status); in scmi_clock_describe_rates()
354 memcpy(msg->out, &p2a, sizeof(p2a)); in scmi_clock_describe_rates()
[all …]
A Dreset_domain.c50 if (msg->in_size) { in report_version()
65 if (msg->in_size) { in report_attributes()
82 if (msg->in_size != sizeof(*in_args)) { in report_message_attributes()
88 scmi_status_response(msg, SCMI_NOT_FOUND); in report_message_attributes()
102 if (msg->in_size != sizeof(*in_args)) { in reset_domain_attributes()
113 plat_scmi_rd_count(msg->channel_id)); in reset_domain_attributes()
117 scmi_status_response(msg, SCMI_NOT_FOUND); in reset_domain_attributes()
138 plat_scmi_rd_count(msg->channel_id)); in reset_request()
140 if (msg->in_size != sizeof(*in_args)) { in reset_request()
146 scmi_status_response(msg, SCMI_NOT_FOUND); in reset_request()
[all …]
A Dbase.c26 if (msg->in_size) { in report_version()
43 if (msg->in_size) { in report_attributes()
60 if (msg->in_size != sizeof(*in_args)) { in report_message_attributes()
66 scmi_status_response(msg, SCMI_NOT_FOUND); in report_message_attributes()
80 if (msg->in_size) { in discover_vendor()
97 if (msg->in_size) { in discover_sub_vendor()
114 if (msg->in_size) { in discover_implementation_version()
142 if (msg->in_size != sizeof(*a2p)) { in discover_list_protocols()
147 a2p = (void *)msg->in; in discover_list_protocols()
158 memcpy(msg->out, &p2a, sizeof(p2a)); in discover_list_protocols()
[all …]
A Dentry.c57 assert(msg->out && msg->out_size >= sizeof(int32_t)); in scmi_status_response()
59 memcpy(msg->out, &status, sizeof(int32_t)); in scmi_status_response()
60 msg->out_size_out = sizeof(int32_t); in scmi_status_response()
65 if (msg->out_size < size) { in scmi_write_response()
69 memcpy(msg->out, payload, size); in scmi_write_response()
70 msg->out_size_out = size; in scmi_write_response()
78 switch (msg->protocol_id) { in scmi_process_message()
80 handler = scmi_msg_get_base_handler(msg); in scmi_process_message()
86 handler = scmi_msg_get_rd_handler(msg); in scmi_process_message()
96 handler(msg); in scmi_process_message()
[all …]
A Dshm_msg.c49 struct scmi_msg msg = { }; in scmi_entry_msg() local
78 msg.protocol_id = MSG_PROT_ID(msg_header); in scmi_entry_msg()
79 msg.message_id = MSG_ID(msg_header); in scmi_entry_msg()
80 msg.channel_id = channel_id; in scmi_entry_msg()
82 msg.in = (char *)sec_buf; in scmi_entry_msg()
83 msg.in_size = in_size - sizeof(struct msg_header); in scmi_entry_msg()
84 memcpy(msg.in, hdr->payload, msg.in_size); in scmi_entry_msg()
89 msg.out = (char *)hdr->payload; in scmi_entry_msg()
90 msg.out_size = *out_size - sizeof(struct msg_header); in scmi_entry_msg()
92 scmi_process_message(&msg); in scmi_entry_msg()
[all …]
A Dsmt.c74 struct scmi_msg msg = { }; in scmi_entry_smt() local
111 msg.in = (char *)payload_buf; in scmi_entry_smt()
112 msg.in_size = in_payload_size; in scmi_entry_smt()
113 msg.out = (char *)smt_hdr->payload; in scmi_entry_smt()
114 msg.out_size = channel->shm_size - sizeof(*smt_hdr); in scmi_entry_smt()
116 assert(msg.out && msg.out_size >= sizeof(int32_t)); in scmi_entry_smt()
119 memcpy(msg.in, smt_hdr->payload, in_payload_size); in scmi_entry_smt()
121 msg.protocol_id = SMT_HDR_PROT_ID(smt_hdr->message_header); in scmi_entry_smt()
122 msg.message_id = SMT_HDR_MSG_ID(smt_hdr->message_header); in scmi_entry_smt()
123 msg.channel_id = channel_id; in scmi_entry_smt()
[all …]
A Dcommon.h91 typedef void (*scmi_msg_handler_t)(struct scmi_msg *msg);
98 void scmi_process_message(struct scmi_msg *msg);
107 void scmi_write_response(struct scmi_msg *msg, void *payload, size_t size);
115 void scmi_status_response(struct scmi_msg *msg, int32_t status);
/optee_os-3.20.0/core/drivers/imx/mu/
A Dimx_mu.c24 uint32_t msg __unused) in imx_mu_plat_send()
31 uint32_t *msg __unused) in imx_mu_plat_receive()
50 assert(base && msg); in imx_mu_receive_msg()
64 if (msg->header.size > IMX_MU_MSG_SIZE) { in imx_mu_receive_msg()
73 &msg->data.u32[count - 1]); in imx_mu_receive_msg()
94 assert(base && msg); in imx_mu_send_msg()
96 if (msg->header.size > IMX_MU_MSG_SIZE) { in imx_mu_send_msg()
110 msg->data.u32[count - 1]); in imx_mu_send_msg()
140 if (!base || !msg) in imx_mu_call()
145 res = imx_mu_send_msg(base, msg); in imx_mu_call()
[all …]
A Dimx_mu_8ulp.c50 TEE_Result imx_mu_plat_send(vaddr_t base, unsigned int index, uint32_t msg) in imx_mu_plat_send() argument
58 io_write32(base + MU_TR(index), msg); in imx_mu_plat_send()
63 TEE_Result imx_mu_plat_receive(vaddr_t base, unsigned int index, uint32_t *msg) in imx_mu_plat_receive() argument
71 *msg = io_read32(base + MU_RR(index)); in imx_mu_plat_receive()
A Dimx_mu_8q.c62 TEE_Result imx_mu_plat_send(vaddr_t base, unsigned int index, uint32_t msg) in imx_mu_plat_send() argument
71 io_write32(base + MU_ATR(index), msg); in imx_mu_plat_send()
76 TEE_Result imx_mu_plat_receive(vaddr_t base, unsigned int index, uint32_t *msg) in imx_mu_plat_receive() argument
85 *msg = io_read32(base + MU_ARR(index)); in imx_mu_plat_receive()
/optee_os-3.20.0/core/kernel/
A Dpanic.c15 const char *msg __maybe_unused) in __do_panic()
23 if (!file && !func && !msg) in __do_panic()
27 msg ? "'" : "", msg ? msg : "", msg ? "' " : "", in __do_panic()
A Dearly_ta.c47 char __maybe_unused msg[60] = { '\0', }; in early_ta_init() local
51 snprintf(msg, sizeof(msg), in early_ta_init()
55 msg[0] = '\0'; in early_ta_init()
57 msg); in early_ta_init()
/optee_os-3.20.0/core/drivers/
A Dimx_sc_api.c99 struct imx_mu_msg msg = { in sc_rm_get_partition() local
112 err = msg.header.command; in sc_rm_get_partition()
118 *partition = IMX_MU_DATA_U8(&msg, 0); in sc_rm_get_partition()
134 struct imx_mu_msg msg = { in sc_pm_set_resource_power_mode() local
142 IMX_MU_DATA_U8(&msg, 2) = (uint8_t)mode; in sc_pm_set_resource_power_mode()
150 scu_error = msg.header.command; in sc_pm_set_resource_power_mode()
170 struct imx_mu_msg msg = { in sc_rm_assign_resource() local
192 err = msg.header.command; in sc_rm_assign_resource()
268 struct imx_mu_msg msg = { in imx_sc_seco_start_rng() local
282 err = msg.header.command; in imx_sc_seco_start_rng()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/pkcs1/
A Dpkcs_1_v1_5_decode.c24 int pkcs_1_v1_5_decode(const unsigned char *msg, in pkcs_1_v1_5_decode() argument
50 if ((msg[0] != 0x00) || (msg[1] != (unsigned char)block_type)) { in pkcs_1_v1_5_decode()
57 if (msg[i] == 0x00) { break; } in pkcs_1_v1_5_decode()
68 if (msg[i] != 0xFF) { break; } in pkcs_1_v1_5_decode()
72 if (msg[i] != 0) { in pkcs_1_v1_5_decode()
93 XMEMCPY(out, &msg[2 + ps_len + 1], *outlen); in pkcs_1_v1_5_decode()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ed25519/
A Ded25519_sign.c12 static int s_ed25519_sign(const unsigned char *msg, unsigned long msglen, in s_ed25519_sign() argument
21 LTC_ARGCHK(msg != NULL); in s_ed25519_sign()
39 msg, msglen, in s_ed25519_sign()
64 int ed25519ctx_sign(const unsigned char *msg, unsigned long msglen, in ed25519ctx_sign() argument
78 return s_ed25519_sign(msg, msglen, sig, siglen, ctx_prefix, ctx_prefix_size, private_key); in ed25519ctx_sign()
91 int ed25519ph_sign(const unsigned char *msg, unsigned long msglen, in ed25519ph_sign() argument
104 if ((err = tweetnacl_crypto_ph(msg_hash, msg, msglen)) != CRYPT_OK) in ed25519ph_sign()
119 int ed25519_sign(const unsigned char *msg, unsigned long msglen, in ed25519_sign() argument
123 return s_ed25519_sign(msg, msglen, sig, siglen, NULL, 0, private_key); in ed25519_sign()
A Ded25519_verify.c12 static int s_ed25519_verify(const unsigned char *msg, unsigned long msglen, in s_ed25519_verify() argument
22 LTC_ARGCHK(msg != NULL); in s_ed25519_verify()
39 XMEMCPY(m + siglen, msg, msglen); in s_ed25519_verify()
67 int ed25519ctx_verify(const unsigned char *msg, unsigned long msglen, in ed25519ctx_verify() argument
81 return s_ed25519_verify(msg, msglen, sig, siglen, ctx_prefix, ctx_prefix_size, stat, public_key); in ed25519ctx_verify()
96 int ed25519ph_verify(const unsigned char *msg, unsigned long msglen, in ed25519ph_verify() argument
110 if ((err = tweetnacl_crypto_ph(msg_hash, msg, msglen)) != CRYPT_OK) in ed25519ph_verify()
126 int ed25519_verify(const unsigned char *msg, unsigned long msglen, in ed25519_verify() argument
131 return s_ed25519_verify(msg, msglen, sig, siglen, NULL, 0, stat, public_key); in ed25519_verify()
/optee_os-3.20.0/core/arch/arm/plat-k3/drivers/
A Dsec_proxy.c139 if (msg->len > SEC_PROXY_MAX_MSG_SIZE) { in k3_sec_proxy_send()
141 spt->name, msg->len, SEC_PROXY_MAX_MSG_SIZE); in k3_sec_proxy_send()
147 num_words = msg->len / sizeof(uint32_t); in k3_sec_proxy_send()
149 memcpy(&data_word, &msg->buf[i * 4], sizeof(uint32_t)); in k3_sec_proxy_send()
154 trail_bytes = msg->len % sizeof(uint32_t); in k3_sec_proxy_send()
158 i = msg->len - trail_bytes; in k3_sec_proxy_send()
161 data_trail |= msg->buf[i++]; in k3_sec_proxy_send()
202 num_words = msg->len / sizeof(uint32_t); in k3_sec_proxy_recv()
209 trail_bytes = msg->len % sizeof(uint32_t); in k3_sec_proxy_recv()
214 i = msg->len - trail_bytes; in k3_sec_proxy_recv()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/
A Ded25519.c62 const uint8_t *msg, size_t msg_len, in crypto_acipher_ed25519_sign() argument
80 err = ed25519_sign(msg, msg_len, sig, &siglen, &private_key); in crypto_acipher_ed25519_sign()
91 const uint8_t *msg, size_t msg_len, in crypto_acipher_ed25519ctx_sign() argument
112 err = ed25519ph_sign(msg, msg_len, sig, &siglen, in crypto_acipher_ed25519ctx_sign()
115 err = ed25519ctx_sign(msg, msg_len, sig, &siglen, in crypto_acipher_ed25519ctx_sign()
128 const uint8_t *msg, size_t msg_len, in crypto_acipher_ed25519_verify() argument
142 if (ed25519_verify(msg, msg_len, sig, sig_len, &stat, in crypto_acipher_ed25519_verify()
153 const uint8_t *msg, size_t msg_len, in crypto_acipher_ed25519ctx_verify() argument
170 if (ed25519ph_verify(msg, msg_len, sig, sig_len, ctx, ctxlen, in crypto_acipher_ed25519ctx_verify()
174 if (ed25519ctx_verify(msg, msg_len, sig, sig_len, ctx, ctxlen, in crypto_acipher_ed25519ctx_verify()
/optee_os-3.20.0/core/drivers/crypto/crypto_api/acipher/
A Drsa.c109 size_t cipher_len, uint8_t *msg, in crypto_acipher_rsanopad_decrypt() argument
120 key, msg, msg_len ? *msg_len : 0, in crypto_acipher_rsanopad_decrypt()
132 rsa_data.message.data = msg; in crypto_acipher_rsanopad_decrypt()
155 if (!key || !msg || !cipher_len) { in crypto_acipher_rsanopad_encrypt()
159 key, msg, msg_len, in crypto_acipher_rsanopad_encrypt()
203 size_t cipher_len, uint8_t *msg, in crypto_acipher_rsaes_decrypt() argument
241 rsa_data.message.data = msg; in crypto_acipher_rsaes_decrypt()
276 key, msg, msg_len, in crypto_acipher_rsaes_encrypt()
356 if (!key || !msg || !sig_len) { in crypto_acipher_rsassa_sign()
430 int salt_len, const uint8_t *msg, in crypto_acipher_rsassa_verify() argument
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/salsa20/
A Dxsalsa20_test.c37 const void *msg = "Kilroy was here!"; in xsalsa20_test()
46 if ((err = salsa20_crypt(&st, msg, msglen, ciphertext)) != CRYPT_OK) return err; in xsalsa20_test()
53 …if (compare_testvector(msg, msglen, msg2, msglen, "XSALSA20-TV1", 1)) return CRYPT_FAIL_TESTVECTO… in xsalsa20_test()
57 …if ((err = xsalsa20_memory(key, sizeof(key), 20, nonce, sizeof(nonce), msg, msglen, ciphertext)) … in xsalsa20_test()
59 …if (compare_testvector(msg, msglen, msg2, msglen, "XSALSA20-TV2", 1)) return CRYPT_FAIL_TESTVECTO… in xsalsa20_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_pkcs.h31 int pkcs_1_v1_5_encode(const unsigned char *msg,
40 int pkcs_1_v1_5_decode(const unsigned char *msg,
49 int pkcs_1_oaep_encode(const unsigned char *msg, unsigned long msglen,
55 int pkcs_1_oaep_decode(const unsigned char *msg, unsigned long msglen,
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/
A Dblake2b.c446 const char *msg; in blake2b_512_test()
475 for (i = 0; tests[i].msg != NULL; i++) { in blake2b_512_test()
477 blake2b_process(&md, (unsigned char *)tests[i].msg, (unsigned long)XSTRLEN(tests[i].msg)); in blake2b_512_test()
497 const char *msg; in blake2b_384_test()
522 for (i = 0; tests[i].msg != NULL; i++) { in blake2b_384_test()
524 blake2b_process(&md, (unsigned char *)tests[i].msg, (unsigned long)XSTRLEN(tests[i].msg)); in blake2b_384_test()
544 const char *msg; in blake2b_256_test()
575 for (i = 0; tests[i].msg != NULL; i++) { in blake2b_256_test()
577 blake2b_process(&md, (unsigned char *)tests[i].msg, (unsigned long)XSTRLEN(tests[i].msg)); in blake2b_256_test()
597 const char *msg; in blake2b_160_test()
[all …]
A Dblake2s.c434 const char *msg; in blake2s_256_test()
465 for (i = 0; tests[i].msg != NULL; i++) { in blake2s_256_test()
467 blake2s_process(&md, (unsigned char *)tests[i].msg, (unsigned long)XSTRLEN(tests[i].msg)); in blake2s_256_test()
488 const char *msg; in blake2s_224_test()
509 for (i = 0; tests[i].msg != NULL; i++) { in blake2s_224_test()
511 blake2s_process(&md, (unsigned char *)tests[i].msg, (unsigned long)XSTRLEN(tests[i].msg)); in blake2s_224_test()
532 const char *msg; in blake2s_160_test()
551 for (i = 0; tests[i].msg != NULL; i++) { in blake2s_160_test()
553 blake2s_process(&md, (unsigned char *)tests[i].msg, (unsigned long)XSTRLEN(tests[i].msg)); in blake2s_160_test()
574 const char *msg; in blake2s_128_test()
[all …]
/optee_os-3.20.0/core/drivers/crypto/se050/glue/
A Duser.c29 sss_status_t glue_mac_update(void *mac, const uint8_t *msg, size_t len) in glue_mac_update() argument
31 if (crypto_mac_update(mac, msg, len)) in glue_mac_update()
45 sss_status_t glue_mac_one_go(void *mac, const uint8_t *msg, size_t msg_len, in glue_mac_one_go() argument
48 if (crypto_mac_update(mac, msg, msg_len)) in glue_mac_one_go()

Completed in 39 milliseconds

1234