Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Gary R Hook <gary.hook@amd.com>
To: <linux-crypto@vger.kernel.org>
Cc: <thomas.lendacky@amd.com>, <herbert@gondor.apana.org.au>,
	<davem@davemloft.net>
Subject: [PATCH 2/4] crypto: ccp - Set the start-of-command bit
Date: Mon, 30 Jan 2017 08:28:34 -0600	[thread overview]
Message-ID: <20170130142834.8459.15278.stgit@taos> (raw)
In-Reply-To: <20170130142414.8459.71539.stgit@taos>

The start-of-command bit should be set for every sha
operation.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
---
 drivers/crypto/ccp/ccp-ops.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/crypto/ccp/ccp-ops.c b/drivers/crypto/ccp/ccp-ops.c
index 50fae44..1a27af3 100644
--- a/drivers/crypto/ccp/ccp-ops.c
+++ b/drivers/crypto/ccp/ccp-ops.c
@@ -1077,6 +1077,7 @@ static int ccp_run_sha_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd)
 		case CCP_SHA_TYPE_1:
 		case CCP_SHA_TYPE_224:
 		case CCP_SHA_TYPE_256:
+			op.soc = 1;
 			memcpy(ctx.address + ioffset, init, ctx_size);
 			break;
 		default:

  parent reply	other threads:[~2017-01-30 14:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-30 14:28 [PATCH 0/4] Minor CCP driver improvements and clean-up Gary R Hook
2017-01-30 14:28 ` [PATCH 1/4] crypto: ccp - Change mode for detailed CCP init messages Gary R Hook
2017-01-30 14:28 ` Gary R Hook [this message]
2017-01-30 17:59   ` [PATCH 2/4] crypto: ccp - Set the start-of-command bit Gary R Hook
2017-01-30 14:28 ` [PATCH 3/4] crypto: ccp - Update the command queue on errors Gary R Hook
2017-01-30 14:28 ` [PATCH 4/4] crypto: ccp - Simplify some buffer management routines Gary R Hook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170130142834.8459.15278.stgit@taos \
    --to=gary.hook@amd.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=thomas.lendacky@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox