On 04.05.2017 15:55, Petri Savolainen wrote:
> Authentication capabilities list supported digest lengths
> per algorithm, but application did not have means to select which
> length is used.
> 
> Signed-off-by: Petri Savolainen <[email protected]>

Both patches:

Reviewed-by: Dmitry Eremin-Solenikov <[email protected]>

> ---
>  include/odp/api/spec/crypto.h | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h
> index 181c0cc4..76977204 100644
> --- a/include/odp/api/spec/crypto.h
> +++ b/include/odp/api/spec/crypto.h
> @@ -299,10 +299,16 @@ typedef struct odp_crypto_session_param_t {
>  
>       /** Authentication key
>        *
> -      *  Use odp_crypto_auth_capa() for supported digest and key lengths.
> +      *  Use odp_crypto_auth_capa() for supported key lengths.
>        */
>       odp_crypto_key_t auth_key;
>  
> +     /** Authentication digest length in bytes
> +      *
> +      *  Use odp_crypto_auth_capa() for supported digest lengths.
> +      */
> +     uint32_t auth_digest_len;
> +
>       /** Async mode completion event queue
>        *
>        *  When odp_crypto_operation() is asynchronous, the completion queue is
> 


-- 
With best wishes
Dmitry

Reply via email to