From d308d7da974d82a857a91788df31db4fd2c40621 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Sun, 5 Jun 2011 11:19:32 +0000 Subject: [PATCH] remove unnecessary zeroing code, javadoc --- core/java/src/net/i2p/data/Signature.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/java/src/net/i2p/data/Signature.java b/core/java/src/net/i2p/data/Signature.java index 282517007..0e6af4c04 100644 --- a/core/java/src/net/i2p/data/Signature.java +++ b/core/java/src/net/i2p/data/Signature.java @@ -11,18 +11,18 @@ package net.i2p.data; /** * Defines the signature as defined by the I2P data structure spec. - * A signature is a 40byte Integer verifying the authenticity of some data - * using the algorithm defined in the crypto spec. + * A signature is a 40-byte array verifying the authenticity of some data + * using the DSA-SHA1 algorithm. + * + * The signature is the 20-byte R followed by the 20-byte S, + * both are unsigned integers. * * @author jrandom */ public class Signature extends SimpleDataStructure { public final static int SIGNATURE_BYTES = 40; + /** all zeros */ public final static byte[] FAKE_SIGNATURE = new byte[SIGNATURE_BYTES]; - static { - for (int i = 0; i < SIGNATURE_BYTES; i++) - FAKE_SIGNATURE[i] = 0x00; - } public Signature() { super(); -- GitLab