The intended use is to store the generic reference in a typed pointer, currently
requiring a cast for every use.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Add auth support and beginning of MM procedure management.
Unfinished, but working well enough for an initial commit.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Currently the parameters of the registered primitive callbacks are allocated
on the stack, meaning they can only be used in the callback itself and are
destroyed immediately after it returns.
This is unsuitable in combination with MM procedurs, which might interrupt
or delay other procedures, which later on need to be resumed, presumably
with the original parameters.
Introduce a common dynamically allocated and reference counted container
(struct dect_ie_collection) for collections of IEs/IE lists and use it
for callback parameters.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Add the A{11,12,21,22} wrappers around the authentication algorithm, as
well as some key derivation helpers and some DSAA/DSC test vectors from
Annex K.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Use a single linked list for easy copying by assignment, which is not
possible when a node points back to the head.
Signed-off-by: Patrick McHardy <kaber@trash.net>