John Paul Hayes II
2018-08-27 16:49:39 UTC
Hey all,
I can provide a code example, but I don't consider it immediately necessary.
I am successfully decrypting ciphertext using a HMAC HashVerificationFilter
and the THROW_EXCEPTION filter. It's awesome. If the data is manipulated at
all, an exception is thrown. This is expected behavior.
However, if I provide my decryption routine with obviously poor data such
as an empty string or a few characters, then a SIGSEGV or SIGABRT signal is
raised during the HashVerificationFilter pipeline. I am developing on
CentOS 7 and debugging using GDB and all the debuginfo I could find.
What can I check for in my decryption routine to prevent the
HashVerificationFilter from failing so? It's not that I expect it to
succeed, but either there are some internals that could check for obviously
bad data or I can check for it myself.
Alternatively, what kinda of data can I be certain will not break the
HashVerificationFilter? Strings with length > 64 and multiple of 32? Hard
for me to tell.
Any advice is welcome. Best regards,
John Paul
I can provide a code example, but I don't consider it immediately necessary.
I am successfully decrypting ciphertext using a HMAC HashVerificationFilter
and the THROW_EXCEPTION filter. It's awesome. If the data is manipulated at
all, an exception is thrown. This is expected behavior.
However, if I provide my decryption routine with obviously poor data such
as an empty string or a few characters, then a SIGSEGV or SIGABRT signal is
raised during the HashVerificationFilter pipeline. I am developing on
CentOS 7 and debugging using GDB and all the debuginfo I could find.
What can I check for in my decryption routine to prevent the
HashVerificationFilter from failing so? It's not that I expect it to
succeed, but either there are some internals that could check for obviously
bad data or I can check for it myself.
Alternatively, what kinda of data can I be certain will not break the
HashVerificationFilter? Strings with length > 64 and multiple of 32? Hard
for me to tell.
Any advice is welcome. Best regards,
John Paul
--
You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.