Lines Matching refs:param_buffer

198 	uint8_t param_buffer[52];  in ataes132a_aes_ccm_decrypt()  local
265 param_buffer[0] = 0x0; in ataes132a_aes_ccm_decrypt()
266 param_buffer[1] = 0x0; in ataes132a_aes_ccm_decrypt()
267 param_buffer[2] = 0x0; in ataes132a_aes_ccm_decrypt()
268 param_buffer[3] = 0x0; in ataes132a_aes_ccm_decrypt()
269 memcpy(param_buffer + 4, nonce_buf, 12); in ataes132a_aes_ccm_decrypt()
272 0x0, param_buffer, 16, in ataes132a_aes_ccm_decrypt()
273 param_buffer, &out_len); in ataes132a_aes_ccm_decrypt()
282 if (param_buffer[0] != 0U) { in ataes132a_aes_ccm_decrypt()
284 " code %d", param_buffer[0]); in ataes132a_aes_ccm_decrypt()
304 param_buffer[0] = mac_packet->encryption_key_id; in ataes132a_aes_ccm_decrypt()
305 param_buffer[2] = mac_packet->encryption_mac_count; in ataes132a_aes_ccm_decrypt()
307 param_buffer[0] = 0x0; in ataes132a_aes_ccm_decrypt()
308 param_buffer[2] = 0x0; in ataes132a_aes_ccm_decrypt()
338 param_buffer[1] = key_id; in ataes132a_aes_ccm_decrypt()
339 param_buffer[3] = expected_out_len; in ataes132a_aes_ccm_decrypt()
341 memcpy(param_buffer + 4, aead_op->tag, 16); in ataes132a_aes_ccm_decrypt()
343 memcpy(param_buffer + 20, aead_op->pkt->in_buf, in_buf_len); in ataes132a_aes_ccm_decrypt()
346 command_mode, param_buffer, in ataes132a_aes_ccm_decrypt()
347 in_buf_len + 4, param_buffer, in ataes132a_aes_ccm_decrypt()
363 if (param_buffer[0] != 0U) { in ataes132a_aes_ccm_decrypt()
365 " code %d", param_buffer[0]); in ataes132a_aes_ccm_decrypt()
367 return -param_buffer[0]; in ataes132a_aes_ccm_decrypt()
378 memcpy(aead_op->pkt->out_buf, param_buffer + 1, out_len - 1); in ataes132a_aes_ccm_decrypt()
404 uint8_t param_buffer[key_id_len + buf_len_len + max_input_len + nonce_len + tag_len]; in ataes132a_aes_ccm_encrypt() local
463 param_buffer[0] = 0x0; in ataes132a_aes_ccm_encrypt()
464 param_buffer[1] = 0x0; in ataes132a_aes_ccm_encrypt()
465 param_buffer[2] = 0x0; in ataes132a_aes_ccm_encrypt()
466 param_buffer[3] = 0x0; in ataes132a_aes_ccm_encrypt()
467 memcpy(param_buffer + 4, nonce_buf, 12); in ataes132a_aes_ccm_encrypt()
470 0x0, param_buffer, 16, in ataes132a_aes_ccm_encrypt()
471 param_buffer, &out_len); in ataes132a_aes_ccm_encrypt()
480 if (param_buffer[0] != 0U) { in ataes132a_aes_ccm_encrypt()
482 " code %d", param_buffer[0]); in ataes132a_aes_ccm_encrypt()
520 param_buffer[0] = key_id; in ataes132a_aes_ccm_encrypt()
521 param_buffer[1] = buf_len; in ataes132a_aes_ccm_encrypt()
522 memcpy(param_buffer + 2, aead_op->pkt->in_buf, buf_len); in ataes132a_aes_ccm_encrypt()
525 command_mode, param_buffer, in ataes132a_aes_ccm_encrypt()
526 buf_len + 2, param_buffer, in ataes132a_aes_ccm_encrypt()
542 if (param_buffer[0] != 0U) { in ataes132a_aes_ccm_encrypt()
544 " code %d", param_buffer[0]); in ataes132a_aes_ccm_encrypt()
550 memcpy(aead_op->tag, param_buffer + 1, 16); in ataes132a_aes_ccm_encrypt()
553 memcpy(aead_op->pkt->out_buf, param_buffer + 17, out_len - 17U); in ataes132a_aes_ccm_encrypt()
557 param_buffer[0] = 0x0; in ataes132a_aes_ccm_encrypt()
558 param_buffer[1] = 0x0; in ataes132a_aes_ccm_encrypt()
559 param_buffer[2] = 0x0; in ataes132a_aes_ccm_encrypt()
560 param_buffer[3] = 0x0; in ataes132a_aes_ccm_encrypt()
562 param_buffer, 4, in ataes132a_aes_ccm_encrypt()
563 param_buffer, &out_len); in ataes132a_aes_ccm_encrypt()
564 if (param_buffer[0] != 0U) { in ataes132a_aes_ccm_encrypt()
566 " code %d", param_buffer[0]); in ataes132a_aes_ccm_encrypt()
571 *mac_count = param_buffer[2]; in ataes132a_aes_ccm_encrypt()
589 uint8_t param_buffer[19]; in ataes132a_aes_ecb_block() local
633 param_buffer[0] = 0x0; in ataes132a_aes_ecb_block()
634 param_buffer[1] = key_id; in ataes132a_aes_ecb_block()
635 param_buffer[2] = 0x0; in ataes132a_aes_ecb_block()
636 memcpy(param_buffer + 3, pkt->in_buf, buf_len); in ataes132a_aes_ecb_block()
637 (void)memset(param_buffer + 3 + buf_len, 0x0, 16 - buf_len); in ataes132a_aes_ecb_block()
640 param_buffer, buf_len + 3, in ataes132a_aes_ecb_block()
641 param_buffer, &out_len); in ataes132a_aes_ecb_block()
655 if (param_buffer[0] != 0U) { in ataes132a_aes_ecb_block()
657 " code %d", param_buffer[0]); in ataes132a_aes_ecb_block()
662 memcpy(pkt->out_buf, param_buffer + 1, 16); in ataes132a_aes_ecb_block()