bug-classpath
[Top][All Lists]
Advanced

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

[Bug crypto/28204] PBEKeySpec incorrectly deletes the originally passed


From: raif at swiftdsl dot com dot au
Subject: [Bug crypto/28204] PBEKeySpec incorrectly deletes the originally passed password array
Date: 30 Jun 2006 09:53:55 -0000


------- Comment #4 from raif at swiftdsl dot com dot au  2006-06-30 09:53 
-------
(In reply to comment #2)
> (In reply to comment #0)
> 
> > For Example:
> > 
> > char[] password = "foobar".toCharArray();
> > PBEKeySpec keySpec = new PBEKeySpec(password); 
> > keySpec.clearPassword();
> > System.out.println (password);
> > 
> > The char array printed will be empty, when it should still contain 'foobar'.
> 
> I would like to add a mauve test for this, but I am unclear as to where it
> should be added. Any ideas?
> 

the convention is to:

a. name it TestOfPR28204,
b. place it in gnu.testlet.javax.crypto.spec --i.e. the package of the
offending class under the gnu.testlet hierarchy.

if you need any help writing the testlet feel free to contact me off the list.

thanks for doing this btw!


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28204





reply via email to

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