Skip to content

Commit

Permalink
Merge pull request softhsm#482 from rnpgp/dewyatt-botan-exception-class
Browse files Browse the repository at this point in the history
Remove direct use of Exception class to work with modern Botan.
  • Loading branch information
halderen authored Aug 28, 2019
2 parents c752605 + bb08bd4 commit 18bf4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/crypto/Botan_ecb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void ECB_Encryption::finish(secure_vector<byte>& buffer, size_t offset)
padding().add_padding(buffer, bytes_in_final_block, BS);

if(buffer.size() % BS)
throw Exception("Did not pad to full block size in " + name());
throw Encoding_Error("Did not pad to full block size in " + name());

update(buffer, offset);
}
Expand Down

0 comments on commit 18bf4ee

Please sign in to comment.