-
Notifications
You must be signed in to change notification settings - Fork 605
Migrate remaining block ciphers #369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
public static Factory BlowfishCTR() { | ||
return new Factory(8, 256, "blowfish-ctr", "Blowfish", COUNTER_MODE); | ||
} | ||
public static Factory BlowfishCBC() { | ||
return new Factory(8, 128, "blowfish-cbc", "Blowfish", CIPHER_BLOCK_CHAINING_MODE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be increased to 256 to match BlowfishCTR
?
The value from BlowfishCBC.java
was 16, which I multiplied by 8 (like the rest).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think this should be the same as the BlowfishCTR
public static Factory BlowfishCTR() { | ||
return new Factory(8, 256, "blowfish-ctr", "Blowfish", COUNTER_MODE); | ||
} | ||
public static Factory BlowfishCBC() { | ||
return new Factory(8, 128, "blowfish-cbc", "Blowfish", CIPHER_BLOCK_CHAINING_MODE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think this should be the same as the BlowfishCTR
public static Factory BlowfishCTR() { | ||
return new Factory(8, 256, "blowfish-ctr", "Blowfish", COUNTER_MODE); | ||
} | ||
public static Factory BlowfishCBC() { | ||
return new Factory(8, 256, "blowfish-cbc", "Blowfish", CIPHER_BLOCK_CHAINING_MODE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, seems I was wrong:
(From: https://www.ietf.org/rfc/rfc4344.txt)
The "blowfish-ctr" method uses Blowfish with 256-bit keys [SCHNEIER].
The block size is 8 bytes. (Note that "blowfish-cbc" from [RFC4253]
uses 128-bit keys.)
So revert that commit... Sorry :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find...
No description provided.