aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/modes
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-03-12 13:08:48 +0000
committerlloyd <[email protected]>2015-03-12 13:08:48 +0000
commit3700e0b76dfa169a3af0545f2eda33437e3e5d61 (patch)
tree407148091aa759cfa596198b381f5244ba7f1332 /src/lib/modes
parentff26efb1c4b8530024dc9b42d75e39536ece6e11 (diff)
Fix clmul which was broken by amalgamation ISA split.
Change GCM update granularity to BS (16) which is sufficient for GCM and more convenient to callers
Diffstat (limited to 'src/lib/modes')
-rw-r--r--src/lib/modes/aead/gcm/clmul/info.txt2
-rw-r--r--src/lib/modes/aead/gcm/gcm.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/modes/aead/gcm/clmul/info.txt b/src/lib/modes/aead/gcm/clmul/info.txt
index 8a21b6ac2..b568c6b01 100644
--- a/src/lib/modes/aead/gcm/clmul/info.txt
+++ b/src/lib/modes/aead/gcm/clmul/info.txt
@@ -1,7 +1,7 @@
define GCM_CLMUL 20131227
-need_isa clmul,ssse3
+need_isa aesni,ssse3
<header:internal>
clmul.h
diff --git a/src/lib/modes/aead/gcm/gcm.cpp b/src/lib/modes/aead/gcm/gcm.cpp
index e4a2ad85c..049df4686 100644
--- a/src/lib/modes/aead/gcm/gcm.cpp
+++ b/src/lib/modes/aead/gcm/gcm.cpp
@@ -182,7 +182,7 @@ std::string GCM_Mode::name() const
size_t GCM_Mode::update_granularity() const
{
- return 4096; // CTR-BE's internal block size
+ return BS;
}
Key_Length_Specification GCM_Mode::key_spec() const