aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/spec/crypto.h
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2023-03-30 16:03:45 +0300
committerMatias Elo <matias.elo@nokia.com>2023-04-13 08:20:13 +0300
commitf16cfb0b059c27a70d8c5b4f0f6293f3c9a18037 (patch)
tree44c70e62c97a3b23b3b6008302d07ba4c69a2166 /include/odp/api/spec/crypto.h
parent0cad1d396a12982d38f7836f42984dd694ccc394 (diff)
api: crypto: clarify that parse flags are not affected
Mention explicitly that crypto operations do not affect parse flags in packet metadata and thus odp_packet_has_error() cannot be used for checking operation result. This is already the intended behaviour and implied by the API text but not currently fully checked by crypto validation tests. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Anoob Joseph <anoobj@marvell.com>
Diffstat (limited to 'include/odp/api/spec/crypto.h')
-rw-r--r--include/odp/api/spec/crypto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h
index a75f3be70..1c477336e 100644
--- a/include/odp/api/spec/crypto.h
+++ b/include/odp/api/spec/crypto.h
@@ -200,6 +200,11 @@ int odp_crypto_result(odp_crypto_packet_result_t *result,
* Performs the SYNC cryptographic operations specified during session creation
* on the packets. All arrays should be of num_pkt size.
*
+ * Result of the crypto operation can be checked using odp_crypto_result().
+ * Parse flags in packet metadata are not affected by the crypto operation.
+ * In particular, odp_packet_has_error() can not be used for checking if the
+ * crypto operation succeeded.
+ *
* Use of the pkt_out parameter depends on the configured crypto operation
* type as described below.
*