api: crypto: decouple key length from algorithm enumeration
api: crypto: decouple key length from algorithm enumeration

Enumerations for cipher and authentication algorithms grow
fast if key and digest lengths are included into the enum.
Decoupled lengths from algorithm names, only exception is
SHA-2 family of authentication algorithms which has established
naming convention with digest lengths (SHA-224, SHA-256, ...).
Old enumerations are still functional but deprecated.

Algotrithm level capability functions provide a flexible way to
handle all possible key/digest/iv length combinations.

Signed-off-by: Petri Savolainen <d528fd253b9aaf78fa72edbcc6249e82047f6ce6@nokia.com>
Reviewed-by: Bill Fischofer <52f3c909d51cc5d355a68a403df6906b3c1a8f83@linaro.org>
Reviewed-by: Balasubramanian Manoharan <affd9aba178b6c6e9aaff69252817fd03d71ae35@linaro.org>
Reviewed-by: Nikhil Agarwal <9f0a6a282cf92289ac89d0b0d2672ea738b6959b@linaro.org>
Signed-off-by: Maxim Uvarov <db4d16e02ae2d7493db430203537da8b2e34f290@linaro.org>

nmorey/odp,ravineet-singh/odp,erachmi/odp,dkrot/odp,erachmi/odp,dkrot/odp,nmorey/odp,dkrot/odp,erachmi/odp,mike-holmes-linaro/odp,mike-holmes-linaro/odp,ravineet-singh/odp,nmorey/odp,erachmi/odp,ravineet-singh/odp,ravineet-singh/odp,dkrot/odp,nmorey/odp,mike-holmes-linaro/odp,mike-holmes-linaro/odp