Re: [PATCH v6] crypto: af_alg - add extra parameters for DRBG interface

2020-09-08 Thread Eric Biggers
On Tue, Sep 08, 2020 at 06:04:03PM +0100, Elena Petrova wrote: > Extend the user-space RNG interface: > 1. Add entropy input via ALG_SET_DRBG_ENTROPY setsockopt option; > 2. Add additional data input via sendmsg syscall. > > This allows DRBG to be tested with test vectors, for example for the

Re: [PATCH 1/2] dt-bindings: crypto: sa2ul: fix a DT binding check warning

2020-09-08 Thread Rob Herring
On Tue, 25 Aug 2020 16:31:05 +0300, Tero Kristo wrote: > DT binding check produces a warning about bad cell size: > > Documentation/devicetree/bindings/crypto/ti,sa2ul.example.dt.yaml: example-0: > crypto@4e0:reg:0: [0, 81788928, 0, 4608] is too long > From schema: python3.6/site-packag

Re: [PATCH RESEND 1/9] crypto: caam/jr - add fallback for XTS with more than 8B IV

2020-09-08 Thread Herbert Xu
On Tue, Sep 08, 2020 at 01:35:04PM +0300, Horia Geantă wrote: > > > Just go with the get_unaligned unconditionally. > > Won't this lead to sub-optimal code for ARMv7 > in case the IV is aligned? If this should be optimised in ARMv7 then that should be done in get_unaligned itself and not open-code

RE: [EXT] Re: [PATCH v2 2/3] drivers: crypto: add support for OCTEONTX2 CPT engine

2020-09-08 Thread Srujana Challa
> Subject: Re: [EXT] Re: [PATCH v2 2/3] drivers: crypto: add support for > OCTEONTX2 CPT engine > > On Fri, Sep 04, 2020 at 04:36:29PM +, Sunil Kovvuri Goutham wrote: > > > > > > > -Original Message- > > > From: Herbert Xu > > > Sent: Friday, September 4, 2020 7:48 PM > > > To: Srujan

Re: [PATCH RESEND 1/9] crypto: caam/jr - add fallback for XTS with more than 8B IV

2020-09-08 Thread Horia Geantă
On 8/21/2020 6:47 AM, Herbert Xu wrote: > On Thu, Aug 06, 2020 at 07:35:43PM +0300, Andrei Botila wrote: >> >> +static bool xts_skcipher_ivsize(struct skcipher_request *req) >> +{ >> +struct crypto_skcipher *skcipher = crypto_skcipher_reqtfm(req); >> +unsigned int ivsize = crypto_skcipher_i

[PATCH] crypto: inside-secure - Prevent missing of processing errors

2020-09-08 Thread Pascal van Leeuwen
On systems with coherence issues, packet processed could succeed while it should have failed, e.g. because of an authentication fail. This is because the driver would read stale status information that had all error bits initialised to zero = no error. Since this is potential a security risk, we wa