aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/iso9796
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pk_pad/iso9796')
-rw-r--r--src/lib/pk_pad/iso9796/iso9796.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pk_pad/iso9796/iso9796.cpp b/src/lib/pk_pad/iso9796/iso9796.cpp
index 6dcae799a..8608e7239 100644
--- a/src/lib/pk_pad/iso9796/iso9796.cpp
+++ b/src/lib/pk_pad/iso9796/iso9796.cpp
@@ -202,7 +202,7 @@ bool iso9796_verification(const secure_vector<uint8_t>& const_coded,
secure_vector<uint8_t> H2 = hash->final();
//check if H3 == H2
- bad_input |= CT::is_equal<uint8_t>(same_mem(H3.data(), H2.data(), HASH_SIZE), false);
+ bad_input |= CT::is_equal<uint8_t>(constant_time_compare(H3.data(), H2.data(), HASH_SIZE), false);
CT::unpoison(bad_input);
return (bad_input == 0);