File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -74,19 +74,19 @@ private static byte[] generateTestData(int size) {
74
74
return new byte [size ];
75
75
}
76
76
77
+ /* Bytes sizes from WC_*_DIGEST_SIZE for corresponding algorithm in text.c */
77
78
private static int getHmacKeySize (String algorithm ) {
78
- // Key sizes in bytes based on hash block sizes
79
79
switch (algorithm ) {
80
80
case "HmacMD5" :
81
- return 64 ;
81
+ return 16 ;
82
82
case "HmacSHA1" :
83
- return 64 ;
83
+ return 20 ;
84
84
case "HmacSHA256" :
85
- return 64 ;
85
+ return 32 ;
86
86
case "HmacSHA384" :
87
- return 128 ;
87
+ return 48 ;
88
88
case "HmacSHA512" :
89
- return 128 ;
89
+ return 64 ;
90
90
default :
91
91
throw new IllegalArgumentException ("Unsupported HMAC algorithm: " + algorithm );
92
92
}
@@ -176,7 +176,7 @@ private static void printDeltaTable() {
176
176
}
177
177
}
178
178
System .out .println ("--------------------------------------------------------------------------------" );
179
- System .out .println ("* Delta Value: MiB/s for symmetric ciphers, operations/second for RSA" );
179
+ System .out .println ("* Delta Value: MiB/s for symmetric ciphers, operations/second for RSA and ECC " );
180
180
}
181
181
182
182
/* Run symmetric encryption/decryption benchmarks */
You can’t perform that action at this time.
0 commit comments