Re: [PATCH v3] crypto: caam: Drop leading zero from input buffer

2018-04-15 Thread Martin Townsend
On Sun, Apr 15, 2018 at 3:12 PM, Fabio Estevam wrote: > From: Fabio Estevam > > imx6ul and imx7 report the following error: > > caam_jr 2142000.jr1: 4789: DECO: desc idx 7: > Protocol Size Error - A protocol has seen an error in size. When > running RSA, pdb size N < (size of F) when no forma

Re: [PATCH v2] crypto: caam: Drop leading zero from input buffer

2018-04-15 Thread Fabio Estevam
On Sun, Apr 15, 2018 at 10:52 AM, Martin Townsend wrote: > Sorry to be a pain but looking at the other use cases for > caam_rsa_drop_leading_zeros they check len afterwards which makes more > sense to me as temp being NULL after this operation is very unlikely > :) and I suppose we are trying to

[PATCH v3] crypto: caam: Drop leading zero from input buffer

2018-04-15 Thread Fabio Estevam
From: Fabio Estevam imx6ul and imx7 report the following error: caam_jr 2142000.jr1: 4789: DECO: desc idx 7: Protocol Size Error - A protocol has seen an error in size. When running RSA, pdb size N < (size of F) when no formatting is used; or pdb size N < (F + 11) when formatting is used. -

Re: [PATCH v2] crypto: caam: Drop leading zero from input buffer

2018-04-15 Thread Martin Townsend
On Sun, Apr 15, 2018 at 12:03 PM, Fabio Estevam wrote: > From: Fabio Estevam > > imx6ul and imx7 report the following error: > > caam_jr 2142000.jr1: 4789: DECO: desc idx 7: > Protocol Size Error - A protocol has seen an error in size. When > running RSA, pdb size N < (size of F) when no form

Re: [PATCH] crypto: caam: Drop leading zero from input buffer

2018-04-15 Thread Fabio Estevam
Hi Martin, On Sun, Apr 15, 2018 at 5:01 AM, Martin Townsend wrote: > Fixing these things I have tested the patch on my board and have not > seen any issues yet and it has booted to the prompt and I've checked > /sys/kernel/security/ima/ascii_runtime_measurements and can see all > the files that

[PATCH v2] crypto: caam: Drop leading zero from input buffer

2018-04-15 Thread Fabio Estevam
From: Fabio Estevam imx6ul and imx7 report the following error: caam_jr 2142000.jr1: 4789: DECO: desc idx 7: Protocol Size Error - A protocol has seen an error in size. When running RSA, pdb size N < (size of F) when no formatting is used; or pdb size N < (F + 11) when formatting is used. -

Re: [PATCH] crypto: caam: Drop leading zero from input buffer

2018-04-15 Thread Martin Townsend
Hi Fabio On Sat, Apr 14, 2018 at 9:50 PM, Fabio Estevam wrote: > From: Fabio Estevam > > imx6ul and imx7 report the following error: > > caam_jr 2142000.jr1: 4789: DECO: desc idx 7: > Protocol Size Error - A protocol has seen an error in size. When > running RSA, pdb size N < (size of F) whe