finished mostly. code at:
https://github.com/Pascal-J/BN-openssl-bindings-for-J
New sample functions I added since yesterday are a lcg and blum blum shub RNGs.
In J and explicit and tacit BN code
the creation parameters for lcg are: PrimeModulus Addition and seed
2986174237592875979498935014
More timings, not dumping the file just yet, but showing interface samples. I
made a direct pointer locale that still manages memory. Its much faster than
managing J objects, but will segfault if you think you are passing a pointer
when you are not. The J object version gives an innocent loca
Posting results and work in process for just the add function. Sample code
fully goes from Jxints to BN garbage collected objects and back to a Jxint
result. library attached at bottom.
Uses a class based approach to facilitate memory management/cleanup, and
inherritance for secure contexts, a
thank you Bill, things are working will post results later.
- Original Message -
From: bill lam
To: Programming forum
Cc:
Sent: Wednesday, September 2, 2015 7:51 PM
Subject: Re: [Jprogramming] BigNum library from openssl
I think most of your prototypes are incorrect. Since BIGNUM is
I think most of your prototypes are incorrect. Since BIGNUM is opaque and
you only have to deal with BIGNUM* so that you can use x for all BIGNUM*,
consequently *x for BIGNUM**, also int is i in both 32 and 64-bìt.
revise your prototypes and try something similar to
NB. BIGNUM *BN_new(void);
vbn=.
mming forum
Cc:
Sent: Wednesday, September 2, 2015 4:04 PM
Subject: Re: [Jprogramming] BigNum library from openssl
On Wed, Sep 2, 2015 at 3:28 PM, 'Pascal Jasmin' via Programming
wrote:
> I don't really know what gets returned yet, but what is worrysome is that
> repeated ca
On Wed, Sep 2, 2015 at 3:28 PM, 'Pascal Jasmin' via Programming
wrote:
> I don't really know what gets returned yet, but what is worrysome is that
> repeated calls return slightly different values.
This crashes J
bn2dec a
So it's wrong, and if you get a result at all you shouldn't be
surpris
rethreading, to address Raul's comment, the first line in old thread was
harmless and reassigned following it, but removed here.
part of J8 is openssl libeay on windows, and I believe its either also
distributed or presumed on other platforms. It includes a BN library. As a
start,
I need so