[cp-patches] GNU Crypto ISO 10126 Padding

Raif S. Naffah raif at swiftdsl.com.au
Tue Jun 6 10:59:34 UTC 2006


On Tuesday 06 June 2006 01:25, Matthew Wringe wrote:
> On Fri, 2006-06-02 at 20:04 +1000, Raif S. Naffah wrote:
> > On Thursday 01 June 2006 09:52, Matthew Wringe wrote:
> > > GNU Crypto currently doesn't implement the ISO 10126-2 padding
> > > algorithm, this algorithm is used in xml encryption.
> > >
> > > The attached patch and java file will add ISO 10126 support to
> > > GNU Crypto.
> > >
> > > Thanks,
> >
> > thanks for your contribution.  2 comments though:
> >
> > * in the crypto backend, we prefer the use of the PRNG utility
> > class rather than SecureRandom --see
> > gnu.java.security.sig.BaseSignature.
> >
> > * the layout does not follow the style of GNU Classpath --see any
> > of the latest new classes in CVS.
>
> Ok, I have updated the class to use the PRNG utility class, and I
> have updated the class to better conform to the GNU Classpath coding
> style. If there is anything else I need to change please let me know.
>
> Also, has anyone gotten the eclipse checkstyle plugin
> (http://eclipse-cs.sourceforge.net/) to work with the classpath
> checkstyle-config.xml file? I keep on getting errors with the
> treewalker and the header.

i haven't;  but if you're using Eclipse, you don't need any additional 
plugins for formatting your code according to the project's style.  
just import the "eclipse-gnu.xml" profile (from the scripts folder) in 
the [Preferences/Java/Code Style/Formatter] panel and ensure it is the 
active formatter for the project.


cheers;
rsn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060606/38eda48f/attachment.pgp


More information about the Classpath-patches mailing list