30d9261e6c
- Added increment-icastats-counter-for-aes-gcm.patch (bsc#1086756) - Updated boot.z90crypt script to fix a problem with the modprobe command not being found. (bsc#1040229). - Added "Recommends: libica-tools" (bsc#1046435). OBS-URL: https://build.opensuse.org/request/show/597615 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory/libica?expand=0&rev=21
26 lines
815 B
Diff
26 lines
815 B
Diff
From ae94822a5d949b45d5a5630ff2819b10e55f88d1 Mon Sep 17 00:00:00 2001
|
|
From: Joerg Schmidbauer <jschmidb@de.ibm.com>
|
|
Date: Mon, 13 Nov 2017 15:23:26 +0100
|
|
Subject: [PATCH] Bugfix: Increment icastats counter for AES-GCM.
|
|
Signed-off-by: Joerg Schmidbauer <jschmidb@de.ibm.com>
|
|
|
|
---
|
|
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;
|