Add documentation for the Freescale Security Controller (SCC)
found on i.MX25 SoCs.
Signed-off-by: Steffen Trumtrar
Acked-by: Rob Herring
---
Changes in v2:
- add clocks to required properties
- add Acked-by
.../devicetree/bindings/crypto/fsl-imx-scc.txt | 21
information about this unit is gathered from the GPL'ed driver
from Freescale.
Signed-off-by: Steffen Trumtrar
---
Changes in v5:
- fix bug in mxc_scc_ablkcipher_req_complete call
Changes in v4:
- copy back IV on exit
- rebase to v4.6-rc1
Changes in v3:
- don't just unloc
Add the Security Controller (SCC) module to the dtsi.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boot/dts/imx25.dtsi | 9 +
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot/dts/imx25.dtsi
index 6b1f4bbe6ec6..af6af8741fe5 100644
--- a/arch/arm
information about this unit is gathered from the GPL'ed driver
from Freescale.
Signed-off-by: Steffen Trumtrar
---
Changes in v4:
- copy back IV on exit
- rebase to v4.6-rc1
Changes in v3:
- don't just unlock mutex in mxc_scc_ablkcipher_next, but also
return, too
- replace
Add documentation for the Freescale Security Controller (SCC)
found on i.MX25 SoCs.
Signed-off-by: Steffen Trumtrar
Acked-by: Rob Herring
---
Changes in v2:
- add clocks to required properties
- add Acked-by
.../devicetree/bindings/crypto/fsl-imx-scc.txt | 21
Add the Security Controller (SCC) module to the dtsi.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boot/dts/imx25.dtsi | 9 +
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot/dts/imx25.dtsi
index 6b1f4bbe6ec6..af6af8741fe5 100644
--- a/arch/arm
Add a devicetree entry for the Random Number Generator Version C (RNGC).
Signed-off-by: Steffen Trumtrar
---
Changes in v2:
- remove interrupt-names from dtsi
arch/arm/boot/dts/imx25.dtsi | 8
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot
it turns out, the driver for the RNGC
works fine on the (at least) i.MX25. So, they seem to be somewhat
compatible.
Signed-off-by: Steffen Trumtrar
---
Changes in v2:
- remove irq variable from private struct
- move devm_request_irq from mxc_rngc_init to probe
- return irq in case of error
Add binding documentation for the Freescale RNGC found on
some i.MX2/3/5 SoCs.
Signed-off-by: Steffen Trumtrar
---
Documentation/devicetree/bindings/rng/mxc_rngc.txt | 16
1 file changed, 16 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rng/mxc_rngc.txt
Fabio Estevam wrote:
> > >> On Mon, Feb 29, 2016 at 12:52 PM, Steffen Trumtrar
> > >> wrote:
> > >>
> > >> > + ret = clk_prepare_enable(rngc->clk);
> > >> > + if (ret)
> > >> > +
information about this unit is gathered from the GPL'ed driver
from Freescale.
Signed-off-by: Steffen Trumtrar
---
Changes in v3:
- don't just unlock mutex in mxc_scc_ablkcipher_next, but also
return, too
- replace mutex with bool to make lockdep happy
Changes in v2:
- minor cod
Add documentation for the Freescale Security Controller (SCC)
found on i.MX25 SoCs.
Signed-off-by: Steffen Trumtrar
Acked-by: Rob Herring
---
Changes in v2:
- add clocks to required properties
- add Acked-by
.../devicetree/bindings/crypto/fsl-imx-scc.txt | 21 +
1
Add the Security Controller (SCC) module to the dtsi.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boot/dts/imx25.dtsi | 9 +
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot/dts/imx25.dtsi
index cde329e9b9e3..73118aba4cc4 100644
--- a/arch/arm
it turns out, the driver for the RNGC
works fine on the (at least) i.MX25. So, they seem to be somewhat
compatible.
Signed-off-by: Steffen Trumtrar
---
drivers/char/hw_random/Kconfig| 13 ++
drivers/char/hw_random/Makefile | 1 +
drivers/char/hw_random/mxc-rngc.c | 400
Add binding documentation for the Freescale RNGC found on
some i.MX2/3/5 SoCs.
Signed-off-by: Steffen Trumtrar
---
Documentation/devicetree/bindings/rng/mxc_rngc.txt | 16
1 file changed, 16 insertions(+)
create mode 100644 Documentation/devicetree/bindings/rng/mxc_rngc.txt
Add a devicetree entry for the Random Number Generator Version C (RNGC).
Signed-off-by: Steffen Trumtrar
---
arch/arm/boot/dts/imx25.dtsi | 9 +
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot/dts/imx25.dtsi
index cde329e9b9e3..ec44ed125057
information about this unit is gathered from the GPL'ed driver
from Freescale.
Signed-off-by: Steffen Trumtrar
---
Changes since v1:
- minor code cleanups (double newlines, unnecessary parentesis, ...)
- mxc_scc_ablkcipher_next: complete request with error before
mutex_unlock
drivers/c
Add the Security Controller (SCC) module to the dtsi.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boot/dts/imx25.dtsi | 9 +
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot/dts/imx25.dtsi
index cde329e9b9e3..73118aba4cc4 100644
--- a/arch/arm
Add documentation for the Freescale Security Controller (SCC)
found on i.MX25 SoCs.
Signed-off-by: Steffen Trumtrar
Acked-by: Rob Herring
---
Changes since v1:
- add clocks to required properties
- add Acked-by
.../devicetree/bindings/crypto/fsl-imx-scc.txt | 21
Hi!
Shawn Guo writes:
> On Thu, Feb 11, 2016 at 03:04:43PM +0100, Steffen Trumtrar wrote:
>> Add documentation for the Freescale Security Controller (SCC)
>> found on i.MX25 SoCs.
>>
>> Signed-off-by: Steffen Trumtrar
>> ---
>> .../devicetree/bindin
Add the Security Controller (SCC) module to the dtsi.
Signed-off-by: Steffen Trumtrar
---
arch/arm/boot/dts/imx25.dtsi | 9 +
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot/dts/imx25.dtsi
index cde329e9b9e3..73118aba4cc4 100644
--- a/arch/arm
information about this unit is gathered from the GPL'ed driver
from Freescale.
Signed-off-by: Steffen Trumtrar
---
drivers/crypto/Kconfig | 9 +
drivers/crypto/Makefile | 1 +
drivers/crypto/mxc-scc.c | 756 +++
3 files changed, 766 inser
Add documentation for the Freescale Security Controller (SCC)
found on i.MX25 SoCs.
Signed-off-by: Steffen Trumtrar
---
.../devicetree/bindings/crypto/fsl-imx-scc.txt | 17 +
1 file changed, 17 insertions(+)
create mode 100644 Documentation/devicetree/bindings/crypto
Hi!
Mimi Zohar writes:
> On Mon, 2015-11-09 at 16:18 +0100, Steffen Trumtrar wrote:
>> Hi!
>>
>> The RFC Patch attached after this cover letter is mostly for illustration
>> purposes, so please don't waste too much time reviewing the code ;-)
>>
>>
able to encrypt the secret and store it somewhere
- to load the stored secret and decrypt it later
- initialize IMA/EVM with the secret
Would something like
- security/keys/encrypted-keys/encrypted.c
be the correct approach?
Thanks,
Steffen
Steffen Trumtrar (1):
crypto: caam - add red
Signed-off-by: Steffen Trumtrar
---
drivers/crypto/caam/Kconfig| 9 +
drivers/crypto/caam/Makefile | 1 +
drivers/crypto/caam/blob_gen.c | 528 +
3 files changed, 538 insertions(+)
create mode 100644 drivers/crypto/caam/blob_gen.c
diff --git a
On Mon, Jun 15, 2015 at 04:52:49PM -0700, Victoria Milhoan wrote:
> Freescale i.MX6 ARM platforms do not support hardware cache coherency. This
> patch adds cache coherency support to the CAAM driver.
>
> Signed-off-by: Victoria Milhoan
> ---
> drivers/crypto/caam/caamhash.c | 28
On Mon, Jun 15, 2015 at 04:52:53PM -0700, Victoria Milhoan wrote:
> Add cache coherency support to the CAAM scatterlist implementation.
>
> Signed-off-by: Victoria Milhoan
> ---
> drivers/crypto/caam/sg_sw_sec4.h | 12 ++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --g
On Mon, Jun 15, 2015 at 04:52:54PM -0700, Victoria Milhoan wrote:
> From: Steve Cornelius
>
> Allow CAAM to be selected in the kernel for Freescale i.MX6 devices if
> ARCH_MXC is enabled.
>
> Signed-off-by: Steve Cornelius
> Signed-off-by: Victoria Milhoan
> ---
> drivers/crypto/caam/Kconfig
Hi!
On Tue, Jun 16, 2015 at 03:27:54AM +, Victoria Milhoan wrote:
> All,
>
> Freescale has been adding i.MX6 support to the CAAM driver and testing on
> both i.MX6 and QorIQ platforms. The patch series is now available for review.
> Your feedback for the provided patches is appreciated.
>
: Steffen Trumtrar
---
This patch is only compile-tested for PowerPC and tested on ARM.
According to the datasheets for i.MX6 and P1010 this should be correct, though.
drivers/crypto/caam/regs.h | 38 +++---
1 file changed, 19 insertions(+), 19 deletions(-)
diff
Hi!
On Mon, Jun 15, 2015 at 05:28:16PM +0100, Russell King - ARM Linux wrote:
> On Mon, Jun 15, 2015 at 05:59:07PM +0200, Steffen Trumtrar wrote:
> > I'm working on CAAM support for the ARM-based i.MX6 SoCs. The current
> > drivers/crypto/caam driver only works for PowerPC
r anything else in the
jr driver, so maybe that is not optimal. On the other hand the sizeof(..)
solution would only catch little endian on 32bit and not big endian (?!)
I however don't know what combinations actually *have* to be caught, as I don't
know, which exist.
So,
Hi!
On Mon, Apr 27, 2015 at 07:16:22PM +0200, Martin Fuzzey wrote:
> Hi,
>
> I've been trying the Sahara crypto module on i.MX53 [mainline 3.19
> kernel + b251638c46a (crypto: sahara - use the backlog)]
>
> I tested using dm-crypt with AES-128:
> cryptsetup -v --key-size=128 luksFormat /dev/mmc
key is
to be set and use the first descriptor for data otherwise.
Signed-off-by: Steffen Trumtrar
---
drivers/crypto/sahara.c | 32 ++--
1 file changed, 18 insertions(+), 14 deletions(-)
diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c
index
With commit
7e77bdebff5cb1e9876c561f69710b9ab8fa1f7e crypto: af_alg - fix backlog
handling
in place, the backlog works under all circumstances where it previously failed,
atleast
for the sahara driver. Use it.
Signed-off-by: Steffen Trumtrar
---
drivers/crypto/sahara.c | 5 +
1
On Wed, Dec 03, 2014 at 10:34:16PM +0800, Herbert Xu wrote:
> On Mon, Dec 01, 2014 at 01:26:30PM +0100, Steffen Trumtrar wrote:
> > Hi!
> >
> > This series adds support for
> > - i.MX53 support
> > - SHA1/256
> > to the SAHARA driver.
> >
Hi all!
I have a question regarding the use of the backlog in a driver
using the crypto API.
In my driver ("crypto: sahara - SHA support") I had a problem with
using the backlog when I am using more than one thread to enqueue
the requests and have a queue depth of 1. What happens is, that I
run in
The Sahara on the i.MX53 is of version 4. Add support for probing the
device.
Signed-off-by: Steffen Trumtrar
---
.../devicetree/bindings/crypto/fsl-imx-sahara.txt| 2 +-
drivers/crypto/sahara.c | 20 +---
2 files changed, 18 insertions(+), 4
The driver uses a spinlock, but never initializes it.
Fix this.
Signed-off-by: Steffen Trumtrar
---
drivers/crypto/sahara.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c
index 164e1ec624e3..6fb16fe7eea5 100644
--- a/drivers/crypto
mechanism in the queue manager
thread.
This makes the control flow more obvious and guarantees, that only one
request is dequeued until the completion is completed.
Signed-off-by: Steffen Trumtrar
---
drivers/crypto/sahara.c | 152 +---
1 file changed
testprogram using AF_ALG with+without upto 128 pthreads on each AES and
SHA256 on i.MX53.
Signed-off-by: Steffen Trumtrar
---
drivers/crypto/sahara.c | 626 +++-
1 file changed, 621 insertions(+), 5 deletions(-)
diff --git a/drivers/crypto/sahara.c b/drivers
queued into
the device and makes sure that the requests from user-space processes are
correctly enqueued into the queue. This means, that the queue is responsible
for sequentializing accesses from userspace.
- The request is now saved into the sahara_sha_reqctx
Regards,
Steffen
Steffen
The Sahara on the i.MX53 is of version 4. Add support for probing the
device.
Signed-off-by: Steffen Trumtrar
---
.../devicetree/bindings/crypto/fsl-imx-sahara.txt | 2 +-
drivers/crypto/sahara.c | 17 ++---
2 files changed, 15 insertions(+), 4
testprogram using AF_ALG with+without pthreads on i.MX53.
Signed-off-by: Steffen Trumtrar
---
drivers/crypto/sahara.c | 712 ++--
1 file changed, 692 insertions(+), 20 deletions(-)
diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c
index
Hi!
Changes since v2:
- added a patch to fix a bug with the spinlock
- save the context in the request
- made the code threadsafe
Regards,
Steffen
Steffen Trumtrar (3):
crypto: sahara - initialize spinlock
crypto: sahara - add support for i.MX53
crypto: sahara
The driver uses a spinlock, but never initializes it.
Fix this.
Signed-off-by: Steffen Trumtrar
---
drivers/crypto/sahara.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c
index 164e1ec624e3..6fb16fe7eea5 100644
--- a/drivers/crypto
Hi!
On Fri, Oct 24, 2014 at 09:41:27PM +0800, Herbert Xu wrote:
> On Tue, Oct 07, 2014 at 08:47:05AM +0200, Steffen Trumtrar wrote:
> >
> > > This is still wrong since the context needs to be stored in the
> > > request. Otherwise multiple requests will corru
Hi!
On Tue, Oct 07, 2014 at 10:02:01AM +0800, Herbert Xu wrote:
> On Mon, Oct 06, 2014 at 04:43:45PM +0200, Steffen Trumtrar wrote:
> > Add support for the MDHA unit in the SAHARA core.
> > The MDHA can generate hash digests for MD5 and SHA1 in version 3 and
> > additionally
Hi!
This series adds support for the SAHARA crypto module on i.MX53 in 1/2
and than adds support for SHA1/256 in 2/2.
Changes since last version:
- save the hash state in the sahara request struct
- fixed the hash remainder calculation
Regards,
Steffen
Steffen Trumtrar (2
The Sahara on the i.MX53 is of version 4. Add support for probing the
device.
Signed-off-by: Steffen Trumtrar
---
.../devicetree/bindings/crypto/fsl-imx-sahara.txt | 2 +-
drivers/crypto/sahara.c | 17 ++---
2 files changed, 15 insertions(+), 4
.
Signed-off-by: Steffen Trumtrar
---
Changes since v1:
- save context in the sahara_ctx struct
- reworked the scatterlist/remainder calculation
drivers/crypto/sahara.c | 689 ++--
1 file changed, 669 insertions(+), 20 deletions(-)
diff
Hi!
On Fri, Aug 29, 2014 at 09:44:42PM +0800, Herbert Xu wrote:
> On Mon, Aug 18, 2014 at 03:13:39PM +0200, Steffen Trumtrar wrote:
> >
> > +struct sahara_sha_reqctx {
> > + unsigned int mode;
> > + unsigned int digest_size;
> > + unsigned
The Sahara on the i.MX53 is of version 4. Add support for probing the
device.
Signed-off-by: Steffen Trumtrar
---
.../devicetree/bindings/crypto/fsl-imx-sahara.txt | 2 +-
drivers/crypto/sahara.c | 17 ++---
2 files changed, 15 insertions(+), 4
.
Signed-off-by: Steffen Trumtrar
---
drivers/crypto/sahara.c | 637 ++--
1 file changed, 617 insertions(+), 20 deletions(-)
diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c
index 85df5b5..05be949 100644
--- a/drivers/crypto/sahara.c
+++ b
55 matches
Mail list logo