aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/emsa1
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-16 14:45:52 -0400
committerJack Lloyd <[email protected]>2017-09-16 14:45:52 -0400
commit83932f30ff02d285c8a7e2a363601f460d55d268 (patch)
tree4bb4a54d89c8584bea8fa19774e9e22ae77278cf /src/lib/pk_pad/emsa1
parentf39aa7bb4e43e27b10d3f890da7ba1acba9f14ca (diff)
Use constant_time_compare instead of same_mem
New name, same great operation
Diffstat (limited to 'src/lib/pk_pad/emsa1')
-rw-r--r--src/lib/pk_pad/emsa1/emsa1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pk_pad/emsa1/emsa1.cpp b/src/lib/pk_pad/emsa1/emsa1.cpp
index 82c3b86a7..e3580ff93 100644
--- a/src/lib/pk_pad/emsa1/emsa1.cpp
+++ b/src/lib/pk_pad/emsa1/emsa1.cpp
@@ -85,7 +85,7 @@ bool EMSA1::verify(const secure_vector<uint8_t>& input,
if(our_coding[i] != 0)
return false;
- return same_mem(input.data(), &our_coding[offset], input.size());
+ return constant_time_compare(input.data(), &our_coding[offset], input.size());
}
catch(Invalid_Argument)
{