aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/emsa1/emsa1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pk_pad/emsa1/emsa1.cpp')
-rw-r--r--src/pk_pad/emsa1/emsa1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pk_pad/emsa1/emsa1.cpp b/src/pk_pad/emsa1/emsa1.cpp
index 691f4b7e7..ba861898a 100644
--- a/src/pk_pad/emsa1/emsa1.cpp
+++ b/src/pk_pad/emsa1/emsa1.cpp
@@ -63,7 +63,7 @@ SecureVector<byte> EMSA1::encoding_of(const MemoryRegion<byte>& msg,
size_t output_bits,
RandomNumberGenerator&)
{
- if(msg.size() != hash->OUTPUT_LENGTH)
+ if(msg.size() != hash->output_length())
throw Encoding_Error("EMSA1::encoding_of: Invalid size for input");
return emsa1_encoding(msg, output_bits);
}
@@ -75,7 +75,7 @@ bool EMSA1::verify(const MemoryRegion<byte>& coded,
const MemoryRegion<byte>& raw, size_t key_bits)
{
try {
- if(raw.size() != hash->OUTPUT_LENGTH)
+ if(raw.size() != hash->output_length())
throw Encoding_Error("EMSA1::encoding_of: Invalid size for input");
SecureVector<byte> our_coding = emsa1_encoding(raw, key_bits);