This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
(define random-gen :: <java.security.SecureRandom> (invoke-static <java.security.SecureRandom> 'getInstance "SHA1PRNG")) (define (foo key-gen :: <java.security.KeyPairGenerator>) (invoke key-gen 'initialize (as <int> 1024) random-gen))
I don't know why the cast of 1024 to <int> is needed. Probably Kawa could be smarter here.
-- --Per Bothner per@bothner.com http://per.bothner.com/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |