Hi all,
I am trying to use DSA_sign and DSA_verify functions to generate a signature
and verify it. If I do this in the same file, that is signing and then
verifying using the public key, things go on smoothly. However, if I try to
save the DSA structure, that is by saving each of the values other
>
>
> i = PEM_write_DSAPublicKey(fptr, dsa_E );
>
>
>
> /* Transfer the public key file to the remote */
>
> /* where the remote does the following assuming that fptr references the
> public key file */
>
>
>
> dsa_E = PEM_read_DSAPublicK
I will try the method that Bill just mentioned and hope that it works,
Thanks again, but I would still like to know the problem with the way I am
trying to do stuff.
Thanks
On Fri, Jun 20, 2008 at 4:58 PM, Siddhartha Chhabra <
[EMAIL PROTECTED]> wrote:
> Thanks for your quick replies
This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
I believe its more of a coding problem now, to typecast the pointers
properly rather than anything else, but still I am wondering if you faced
the same issues or not ?
On Fri, Jun 20, 2008 at 5:00 PM, Siddhartha
>
>
>
> Bill
> ------
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Siddhartha Chhabra
> *Sent:* June 20, 2008 8:39 PM
> *To:* openssl-users@openssl.org
> *Subject:* Re: DSA signing and verification
>
>
What version of the library are you using ?
On Fri, Jun 20, 2008 at 9:01 PM, Siddhartha Chhabra <
[EMAIL PROTECTED]> wrote:
> I tried that but I think it has to do with the cast applied to the
> functions as it says
>
> cannot convert parameter 1 from 'int (__cdecl *)
roblems with the code that I have above?
Thanks again
On Sat, Jun 21, 2008 at 8:15 AM, Bill Colvin <[EMAIL PROTECTED]>
wrote:
> 0.9.8 have used it with f, g and h
>
>
>
> Bill
>
>
> ------
>
> *From:* [EMAIL PROTECTED] [mailto:
&g
the problem is the line
> EVP_PKEY_assign_DSA(pkey, dsa);
> you should use
> EVP_PKEY_set1_DSA()
> if you want to use the DSA structure later on.
> Why don't you write out the keys directly with
> PEM_write_DSAPrivateKey() and PEM_write_DSA_PUBKEY() ?
>
> Thom
at 1:57 PM, Siddhartha Chhabra <
[EMAIL PROTECTED]> wrote:
> Hi Thomas,
>
> Thanks for your email, I tried using EVP_PKEY_set1_DSA(), that doesnt work
> either. I also tried using thePEM_write_DSAPrivateKey() and
> PEM_write_DSA_PUBKEY() functions, however the files still stay
at 2:13 PM, Siddhartha Chhabra <
[EMAIL PROTECTED]> wrote:
> I just tried redirecting the output of the write functions to stdout, it
> dumped the private and public keys, atleast I hope it did, I have nt had any
> luck with these functions so I am not sure if this is the correct
Hi All,
I was using DH_generate_key yo generate a shared key and it works well. I
had a question regarding the implementation of DH_generate_key. In my
project, I cannot link to any of the default C libraries etc., so when I do
DH_generate_key in my project it doesnt work, does it use some I/O (Fi
11 matches
Mail list logo