Thread (15 messages) read the whole thread 15 messages, 3 authors, 2014-10-24

Re: [PATCH 1/2] crypto: caam - add support for gcm(aes)

From: Kim Phillips <hidden>
Date: 2014-10-10 00:48:32

On Thu, 9 Oct 2014 17:54:09 +0300
Tudor Ambarus [off-list ref] wrote:
+	/*
+	 * Job Descriptor and Shared Descriptors
+	 * must all fit into the 64-word Descriptor h/w Buffer
+	 */
+	if (DESC_GCM_DEC_LEN + DESC_JOB_IO_LEN +
+	    ctx->enckeylen <= CAAM_DESC_BYTES_MAX)
+		keys_fit_inline = true;
we need to reset the encrypt descriptor's keys_fit_inline setting to
false before re-evaluating for decrypt.
+	/* Galois Counter Mode */
+	{
+		.name = "gcm(aes)",
+		.driver_name = "gcm-aes-caam",
+		.blocksize = 1,
+		.type = CRYPTO_ALG_TYPE_AEAD,
+		.template_aead = {
+			.setkey = gcm_setkey,
+			.setauthsize = gcm_setauthsize,
+			.encrypt = aead_encrypt,
+			.decrypt = aead_decrypt,
+			.givencrypt = NULL,
+			.geniv = "<built-in>",
+			.ivsize = 12,
+			.maxauthsize = 16,
AES_BLOCK_SIZE

Thanks,

Kim
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help