Skip to content
Snippets Groups Projects
Commit 618df7f4 authored by Winston Hudson's avatar Winston Hudson Committed by Jason Liu
Browse files

MLK-9769-19 Add ARC4-ECB support for CAAM in i.MX6 family


Adds ARC4-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: default avatarWinston Hudson (b45308) <winston.h.hudson@freescale.com>
Signed-off-by: default avatarDan Douglass <dan.douglass@freescale.com>
parent 70b88340
No related branches found
No related tags found
No related merge requests found
......@@ -1962,6 +1962,23 @@ static struct caam_alg_template driver_algs[] = {
},
.class1_alg_type = OP_ALG_ALGSEL_AES | OP_ALG_AAI_XTS,
},
{
.name = "ecb(arc4)",
.driver_name = "ecb-arc4-caam",
.blocksize = ARC4_BLOCK_SIZE,
.type = CRYPTO_ALG_TYPE_ABLKCIPHER,
.template_ablkcipher = {
.setkey = ablkcipher_setkey,
.encrypt = ablkcipher_encrypt,
.decrypt = ablkcipher_decrypt,
.geniv = "eseqiv",
.min_keysize = ARC4_MIN_KEY_SIZE,
.max_keysize = ARC4_MAX_KEY_SIZE,
.ivsize = ARC4_BLOCK_SIZE,
},
.class1_alg_type = OP_ALG_ALGSEL_ARC4 | OP_ALG_AAI_ECB
},
};
static struct caam_aead_alg driver_aeads[] = {
......
......@@ -1645,4 +1645,8 @@
/* Frame Descriptor Command for Replacement Job Descriptor */
#define FD_CMD_REPLACE_JOB_DESC 0x20000000
#define ARC4_BLOCK_SIZE 1
#define ARC4_MAX_KEY_SIZE 256
#define ARC4_MIN_KEY_SIZE 1
#endif /* DESC_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment