gnu-crypto-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNU Crypto] Re: Bug in BasePad.selfTest()


From: Raif S. Naffah
Subject: [GNU Crypto] Re: Bug in BasePad.selfTest()
Date: Mon, 26 May 2003 07:03:07 +1000
User-agent: KMail/1.5.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hello Barry,

On Mon, 26 May 2003 06:32 am, baz wrote:
> Hi,
>
> When using the PadFactory to create a padding scheme, it first
> instantiates a concrete padding class and then calls the selfTest()
> method.
>
> To use the padding scheme a user calls init() with the desired
> blocksize.
>
> However, init() will fail if it has already been called or if the
> object has not been reset since the last call. The init() method
> throws an exception if blockSize is not -1. Unfortunately the
> selfTest() method calls init many times and fails to call reset() at
> the end of it. This means that if a user gets a padding object from
> the factory they will first have to reset it before initialising it.
>
> May I suggest adding a call to reset() at the end of
> BasePad.selfTest()?

are you using the CVS HEAD version?  i remember fixing this.


> Regards,
> barry

- -- 
cheers;
rsn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Que du magnifique

iD8DBQE+0S+L+e1AKnsTRiERA27HAKDxeU9qwjKmGTumLOX2PuUo2i4T/wCg5vzN
rndh9OTKbKqUvp1DCHAFaQk=
=tkmg
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]