From 037a579d6af0ef1313e53c9141d637ee1760faa6 Mon Sep 17 00:00:00 2001 From: Janne Peltonen Date: Mon, 20 Feb 2023 19:29:35 +0200 Subject: api: crypto: clarify that algorithm order is ignored with null algs When either the cipher or the authentication algorithm is null, the auth_cipher_text session parameter that specifies the processing order of the algorithms does not have any effect but both orders are supposed to work. Clarify the semantics by stating that the parameter is ignored when one of the algorithms is null. Signed-off-by: Janne Peltonen Reviewed-by: Anoob Joseph Reviewed-by: Petri Savolainen --- include/odp/api/spec/crypto_types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/odp/api/spec/crypto_types.h b/include/odp/api/spec/crypto_types.h index 7ddb7b19f..0a5051d07 100644 --- a/include/odp/api/spec/crypto_types.h +++ b/include/odp/api/spec/crypto_types.h @@ -578,7 +578,8 @@ typedef struct odp_crypto_session_param_t { * indicates the reverse order of operation. * * The value is ignored with authenticated encryption algorithms - * such as AES-GCM. + * such as AES-GCM. The value is also ignored when one of the + * algorithms is null. * * true: Authenticate cipher text * false: Authenticate plain text -- cgit v1.2.3