Repository navigation
Conversation
jpboivin
force-pushed
the
dev/blowfish_interoperability
branch
from
February 9, 2024 02:44
dd78574 to
48fa32e
Compare
cipherboy
self-requested a review
February 9, 2024 02:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As discussed in #407, this is a proposal to support non-standard key sizes in the
BlowfishEngine, for interoperability with other cryptographic libraries like OpenSSL and Nettle.I want with an approach were by default, the key is still validated to be standard, but using the new
BlowfishParameters, it is possible to lift the check for the engine to handle extended keys. If a key exceeds 576 bits, only the first 576 bits of the data will be used to compute the P box. This is in line with the OpenSSL and Nettle implementations.I've generated test vectors using OpenSSL and Nettle. I couldn't find any online (even these libs do not seem to test larger keys):
test_vectors.cpp.txt