Lines Matching refs:hmac_cmd
1763 struct ccp_cmd hmac_cmd;
1804 memset(&hmac_cmd, 0, sizeof(hmac_cmd));
1805 hmac_cmd.engine = CCP_ENGINE_SHA;
1806 hmac_cmd.u.sha.type = sha->type;
1807 hmac_cmd.u.sha.ctx = sha->ctx;
1808 hmac_cmd.u.sha.ctx_len = sha->ctx_len;
1809 hmac_cmd.u.sha.src = &sg;
1810 hmac_cmd.u.sha.src_len = block_size + digest_size;
1811 hmac_cmd.u.sha.opad = NULL;
1812 hmac_cmd.u.sha.opad_len = 0;
1813 hmac_cmd.u.sha.first = 1;
1814 hmac_cmd.u.sha.final = 1;
1815 hmac_cmd.u.sha.msg_bits = (block_size + digest_size) << 3;
1817 ret = ccp_run_sha_cmd(cmd_q, &hmac_cmd);
1819 cmd->engine_error = hmac_cmd.engine_error;