forked from I2P_Developers/i2p.i2p
Merge branch 'padding-fix-2' into 'master'
Data: Fix KeysAndCert.equals() See merge request i2p-hackers/i2p.i2p!229
This commit is contained in:
@ -267,8 +267,11 @@ public class KeysAndCert extends DataStructureImpl {
|
||||
return
|
||||
DataHelper.eq(_signingKey, ident._signingKey)
|
||||
&& DataHelper.eq(_publicKey, ident._publicKey)
|
||||
&& Arrays.equals(_padding, ident._padding)
|
||||
&& DataHelper.eq(_certificate, ident._certificate);
|
||||
&& DataHelper.eq(_certificate, ident._certificate)
|
||||
&& (Arrays.equals(_padding, ident._padding) ||
|
||||
// failsafe as some code paths may not compress padding
|
||||
((_paddingBlocks > 1 || ident._paddingBlocks > 1) &&
|
||||
Arrays.equals(getPadding(), ident.getPadding())));
|
||||
}
|
||||
|
||||
/** the signing key has enough randomness in it to use it by itself for speed */
|
||||
|
Reference in New Issue
Block a user