From b62a31a9069b7aa3b01ee08361b683eff4351415 Mon Sep 17 00:00:00 2001 From: Steffen Trumtrar Date: Mon, 15 Feb 2016 11:27:11 +0100 Subject: crypto: add new imx-scc driver The Security Controller (SCC) is found on (at least) i.MX25 SoCs. It is not a crypto engine in the usual sense. The only supported algorithm in hardware is 3DES and the key is not configurable, but is fused in the hardware. The SCC can be handed some block of data in the red memory space and it will return the encrypted data in the black memory space and vice versa. The API for this driver are the functions - mxc_scc_cbc_des_encrypt - mxc_scc_cbc_des_decrypt Along with this driver a blobgen implementation is provided. Signed-off-by: Steffen Trumtrar Signed-off-by: Sascha Hauer --- drivers/crypto/imx-scc/scc.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 drivers/crypto/imx-scc/scc.h (limited to 'drivers/crypto/imx-scc/scc.h') diff --git a/drivers/crypto/imx-scc/scc.h b/drivers/crypto/imx-scc/scc.h new file mode 100644 index 0000000000..5c5c25c4a0 --- /dev/null +++ b/drivers/crypto/imx-scc/scc.h @@ -0,0 +1,13 @@ +/* + * Copyright (C) 2016 Pengutronix, Steffen Trumtrar + * + * This program is free software; you can redistribute it and/or modify it under + * the terms of the GNU General Public License version 2 as published by the + * Free Software Foundation. + */ + +struct ablkcipher_request; + +int imx_scc_cbc_des_encrypt(struct ablkcipher_request *req); +int imx_scc_cbc_des_decrypt(struct ablkcipher_request *req); +int imx_scc_blob_gen_probe(struct device_d *dev); -- cgit v1.2.3