From: <ed...@mx...> - 2003-02-04 13:12:22
|
edwin 03/02/04 08:20:26 Modified: openpgp/src/cryptix/openpgp/provider PGPKeyIDImpl.java Log: Bytes instead of bits. Oops! Revision Changes Path 1.3 +6 -6 projects/openpgp/src/cryptix/openpgp/provider/PGPKeyIDImpl.java Index: PGPKeyIDImpl.java =================================================================== RCS file: /home/cryptix-cvs/cvsroot/projects/openpgp/src/cryptix/openpgp/provider/PGPKeyIDImpl.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- PGPKeyIDImpl.java 23 Aug 2001 22:24:38 -0000 1.2 +++ PGPKeyIDImpl.java 4 Feb 2003 13:20:25 -0000 1.3 @@ -1,4 +1,4 @@ -/* $Id: PGPKeyIDImpl.java,v 1.2 2001/08/23 22:24:38 edwin Exp $ +/* $Id: PGPKeyIDImpl.java,v 1.3 2003/02/04 13:20:25 edwin Exp $ * * Copyright (C) 1999-2001 The Cryptix Foundation Limited. * All rights reserved. @@ -31,7 +31,7 @@ * An OpenPGP KeyID. * * @author Edwin Woudt <ed...@cr...> - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ */ public class PGPKeyIDImpl extends KeyID { @@ -112,7 +112,7 @@ if (hash != null) { - if (hash.length != 160) + if (hash.length != 20) throw new IllegalArgumentException( "Hash length should be 160 bits"); @@ -120,7 +120,7 @@ } else { - if ((keyid.length != 64) && (keyid.length != 32)) + if ((keyid.length != 8) && (keyid.length != 4)) throw new IllegalArgumentException( "KeyID length should be 32 or 64 bits"); @@ -133,7 +133,7 @@ throw new IllegalArgumentException( "keyid should not be null for V3"); - if ((keyid.length != 64) && (keyid.length != 32)) + if ((keyid.length != 8) && (keyid.length != 4)) throw new IllegalArgumentException( "KeyID length should be 32 or 64 bits"); @@ -141,7 +141,7 @@ if (hash != null) { - if (hash.length != 128) + if (hash.length != 16) throw new IllegalArgumentException( "Hash length should be 128 bits"); |