summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorWinston Hudson <winston.h.hudson@freescale.com>2014-11-17 09:27:30 -0700
committerNitin Garg <nitin.garg@freescale.com>2015-01-15 21:19:56 -0600
commitbf77e9a1a00001eb1ed40f46502c36a26bf9d31a (patch)
treec8090cf1ffd5511c21d211b31680e624d8ead4e4 /drivers/crypto
parent5ea3e016591f536520db87f731b0ee2122642b1f (diff)
MLK-9769-16 Add DES-ECB support for CAAM in i.MX6 family
Adds DES-ECB Mode support to the CAAM crypto accelerator core in the i.MX6 family of SoC devices. Note that CAAM also goes by sec-4.0 or sec-5.0 in other product families (such as QorIQ). Thus the property names are often tied to the sec-4.0+ nomenclature. Signed-off-by: Winston Hudson (b45308) <winston.h.hudson@freescale.com>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/caam/caamalg.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/crypto/caam/caamalg.c b/drivers/crypto/caam/caamalg.c
index cc26d0459c41..1fb82f4f8701 100644
--- a/drivers/crypto/caam/caamalg.c
+++ b/drivers/crypto/caam/caamalg.c
@@ -2047,6 +2047,22 @@ static struct caam_alg_template driver_algs[] = {
},
/* ablkcipher descriptor */
{
+ .name = "ecb(des)",
+ .driver_name = "ecb-des-caam",
+ .blocksize = DES_BLOCK_SIZE,
+ .type = CRYPTO_ALG_TYPE_ABLKCIPHER,
+ .template_ablkcipher = {
+ .setkey = ablkcipher_setkey,
+ .encrypt = ablkcipher_encrypt,
+ .decrypt = ablkcipher_decrypt,
+ .geniv = "eseqiv",
+ .min_keysize = DES_KEY_SIZE,
+ .max_keysize = DES_KEY_SIZE,
+ .ivsize = DES_BLOCK_SIZE,
+ },
+ .class1_alg_type = OP_ALG_ALGSEL_DES | OP_ALG_AAI_ECB,
+ },
+ {
.name = "ctr(aes)",
.driver_name = "ctr-aes-caam",
.blocksize = AES_BLOCK_SIZE,