I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 5b623e09 authored by zzz's avatar zzz
Browse files

Merge branch 'padding-fix-2' into 'master'

Data: Fix KeysAndCert.equals()

See merge request !229
parents f34da8eb 198f89bc
No related branches found
No related tags found
1 merge request!229Data: Fix KeysAndCert.equals()
Pipeline #2187 passed
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment