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

[iaik-ssl]cu|| appletedition (random and ssl problem)


i've a problem with iaik jce and isasilk appleteditions. the first
problem is when creating an SSLClientContext like this:

CipherSuite[] cs = new CipherSuite[] {

SSLClientContext context = new SSLClientContext();

the browsers throws a security exception, because it tries to read some
private properties, for example:

netscape 4.77:
  JavaScript Error: uncaught Java exception

uncaught exception: java.security.PrivilegedActionException:

Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission isasilk.send_empty_fragment read)

i've solved this problem in netscpae 4.77 by granting permisions to the
applet to read all properties. i've have used netscape specific classes
to do this using PrivilegeManager (more info in

do i have to do anything special?

the other problem is when generating randoms. i've used the BigInteger

BigInteger(int bits, SecureRandom rndSrc)

the random source i've used is:  SecRandom.getDefault()

the problem is that it doesn't generate the number with the number of
bits i've asked for. sometimes it does but sometimes it doesn't. isn't
it suppose to force the bit length? so, if i ask a 112 bit length number
it returns a number of 112 bits?

any help would be appreciated.

best regards,

Mailinglist-archive at http://jcewww.iaik.at/mailarchive/iaik-ssl/sslthreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content: UNSUBSCRIBE iaik-ssl