If you have something that looks like '[2^i' in your source file, it means that there's probably an 'esc' character in there as well, and it looks like someone tried to use arrow keys on a VT102-akin terminal to edit it.
Delete your current tree, download the package again, unpack it, and try recompiling it. If it still shows the same error without you having added any patches to it, it's a build-breaking bug and needs to be reported in bugzilla. If it doesn't, then you broke it when you were playing around with it. (The best part, though, is that nobody here knows one way or the other -- and you don't have to tell us if you did make a mistake.) -Kyle H On 7/29/10 6:35 PM, Alexander V Vershilov wrote: > Hello. > > I'm trying to build package pki-utils-1.3.1. And it fails on building > cmsutils: > pki-util-1.3.1/src/com/netscape/cmsutil/crypto/CryptoUtil.java > at string: > org.mozilla.jss.crypto.KeyPairGeneratorSp[2^i.Usage[] usage_ops, > And at the class hierarchi on page > http://www.mozilla.org/projects/security/pki/jss/javadoc/org/mozilla/jss/crypto/package-tree.html > there is no such class. > So what should I do use another jss version or patch file > > > To build this file I've used this patch. It removes generateECCeyPair with > additional parameters > leaving only version without Usage class. And my second question is if it is > a normal patch and > how can I test if I have broked something or not. > > diff -ur pki-util-1.3.1.old/src/com/netscape/cmsutil/crypto/CryptoUtil.java > pki-util-1.3.1/src/com/netscape/cmsutil/crypto/CryptoUtil.java > --- pki-util-1.3.1/src/com/netscape/cmsutil/crypto/CryptoUtil.java.orig > 2009-08-25 16:41:02.000000000 +0000 > +++ pki-util-1.3.1/src/com/netscape/cmsutil/crypto/CryptoUtil.java > 2010-07-24 01:51:45.000000000 +0000 > @@ -18,6 +18,7 @@ > package com.netscape.cmsutil.crypto; > > > +import com.sun.crypto.provider.JceKeyStore; > import java.net.*; > import java.io.*; > import java.util.*; > @@ -147,9 +148,16 @@ > NoSuchTokenException, > NoSuchAlgorithmException, > TokenException { > - return generateECCKeyPair(token, keysize, null, null); > - } > + CryptoToken t = getTokenByName(token); > + KeyPairAlgorithm alg = KeyPairAlgorithm.EC; > + KeyPairGenerator g = t.getKeyPairGenerator(alg); > + > + g.initialize(keysize); > + KeyPair pair = g.genKeyPair(); > > + return pair; > + } > +/* > public static KeyPair generateECCKeyPair(String token, int keysize, > org.mozilla.jss.crypto.KeyPairGeneratorSpi.Usage[] usage_ops, > org.mozilla.jss.crypto.KeyPairGeneratorSpi.Usage[] usage_mask) > @@ -166,7 +174,7 @@ > KeyPair pair = g.genKeyPair(); > > return pair; > - } > + }*/ > > > > > -- > Best regards > Alexander V Vershilov
-- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto