From ae94822a5d949b45d5a5630ff2819b10e55f88d1 Mon Sep 17 00:00:00 2001 From: Joerg Schmidbauer Date: Mon, 13 Nov 2017 15:23:26 +0100 Subject: [PATCH] Bugfix: Increment icastats counter for AES-GCM. Signed-off-by: Joerg Schmidbauer --- src/include/s390_gcm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/include/s390_gcm.h b/src/include/s390_gcm.h index 4f1d853..e856a1c 100644 --- a/src/include/s390_gcm.h +++ b/src/include/s390_gcm.h @@ -749,6 +749,10 @@ static inline int s390_aes_gcm_kma(const unsigned char *in_data, if (rc >= 0) { ctx->subkey_provided = 1; + if (ctx->direction) + stats_increment(ICA_STATS_AES_GCM, ALGO_HW, ENCRYPT); + else + stats_increment(ICA_STATS_AES_GCM, ALGO_HW, DECRYPT); return 0; } else return EIO;