Re: [twsocket] AV in EncryptPublicRSA()

2010-01-05 Thread Arno Garrels
Paul wrote:
BlockSize := f_EVP_PKEY_size(PubKey);   == multiple AV's here

Is f_EVP_PKEY_size assigned, correct function pointer?

--
Arno Garrels



--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] AV in EncryptPublicRSA()

2010-01-05 Thread Paul


- Original Message - 
From: Arno Garrels arno.garr...@gmx.de

Is f_EVP_PKEY_size assigned, correct function pointer?


why shouldn't it, it's declared in OverbyteIcsLibeayEx or should I 
explicitly call LoadLibeayEx?


Paul 


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] AV in EncryptPublicRSA()

2010-01-05 Thread Arno Garrels
Paul wrote:
 - Original Message -
 From: Arno Garrels arno.garr...@gmx.de
 Is f_EVP_PKEY_size assigned, correct function pointer?
 
 why shouldn't it, it's declared in OverbyteIcsLibeayEx or should I
 explicitly call LoadLibeayEx?

Yes, LoadLibeayEx has to be called at least once to load Openssl,
and the original EncryptPublicRSA() takes care of this.
 
BTW: In latest V7 (20th Dec) I moved f_EVP_PKEY_size to 
OverbyteIcsLIBEAY.pas. 

--
Arno Garrels

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] AV in EncryptPublicRSA()

2010-01-05 Thread Paul



Yes, LoadLibeayEx has to be called at least once to load Openssl,
and the original EncryptPublicRSA() takes care of this.


Ok, no AV's ,but I'm still not where I want :-(
I'm using OpenSSL to encrypt a text ..

Paul
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] AV in EncryptPublicRSA()

2010-01-05 Thread Paul

I got it working now, but had to add the namespace:

OverbyteIcsSslX509Utils.CreateSelfSignedCert()

Paul

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] AV in EncryptPublicRSA()

2010-01-05 Thread Arno Garrels
Paul wrote:
 Yes, LoadLibeayEx has to be called at least once to load Openssl,
 and the original EncryptPublicRSA() takes care of this.
 
 Ok, no AV's ,but I'm still not where I want :-(
 I'm using OpenSSL to encrypt a text ..

Look at the PemTool demo in folder SslInternet it works!
It uses StrEncRsa() and StrDecRsa() located in OverbyteIcsSslUtils.
Both functions were changed to take and return AnsiString instead
of string, I know that's not perfect however backwards compatible. 

--
Arno Garrels
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] AV in EncryptPublicRSA()

2010-01-05 Thread Paul

Hi Arno,

I got it working now (see my previous mail)

Thanks,

Paul
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be