Re: [PATCH v3] KEYS: add SP800-56A KDF support for DH

2016-08-10 Thread Stephan Mueller
Am Dienstag, 9. August 2016, 15:48:00 CEST schrieb Mat Martineau: Hi Mat, > On Sat, 6 Aug 2016, Stephan Mueller wrote: > > diff --git a/security/keys/internal.h b/security/keys/internal.h > > index a705a7d..7659b52 100644 > > --- a/security/keys/internal.h > > +++ b/security/keys/internal.h > > @

Re: [PATCH v3] KEYS: add SP800-56A KDF support for DH

2016-08-09 Thread Mat Martineau
On Sat, 6 Aug 2016, Stephan Mueller wrote: diff --git a/security/keys/internal.h b/security/keys/internal.h index a705a7d..7659b52 100644 --- a/security/keys/internal.h +++ b/security/keys/internal.h @@ -259,15 +259,32 @@ static inline long keyctl_get_persistent(uid_t uid, key_serial_t destrin

[PATCH v3] KEYS: add SP800-56A KDF support for DH

2016-08-06 Thread Stephan Mueller
SP800-56A defines the use of DH with key derivation function based on a counter. The input to the KDF is defined as (DH shared secret || other information). The value for the "other information" is to be provided by the caller. The KDF is provided by the kernel crypto API. The SP800-56A KDF is equ