M
M
mngen2017-01-26 20:02:55
C++ / C#
mngen, 2017-01-26 20:02:55

How to check if the key is correct when decrypting?

Hello, I use the Blowfish algorithm in CFB mode to encrypt / decrypt messages, how do I check the correctness of the key and initialization vector when decrypting?
Programming language: C++
Library: OpenSSL
Thanks in advance for your help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2017-01-26
@usdglander

I didn’t quite understand the question, but usually, so that there are no false positives due to incorrect key entry, its checksum is stored somewhere and, before decryption, the checksum of the entered key is compared with the stored one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question