[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cryptoapi
Subject:    Re: session key basics
From:       Joe Steele <steele () ADOBE ! COM>
Date:       2001-09-17 15:48:21
[Download RAW message or body]


Final update!

I traced the problem down to a bad copy-constructor in my code.  The keyspec
was being reset to 0 which caused the "invalid algorithm" return code. It
works great now.

Thanks to everyone who replied!

Joe

> -----Original Message-----
> From: Microsoft Cryptographic API
> [mailto:CryptoAPI@DISCUSS.MICROSOFT.COM]On Behalf Of Joe Steele
> Sent: Friday, September 14, 2001 3:11 PM
> To: CryptoAPI@DISCUSS.MICROSOFT.COM
> Subject: Re: session key basics
>
>
> Yes, I forgot to add that in.  I am doing a CryptHashData
> call with 20 bytes
> or so of data, in the right place.
>
> Possibly the certificate itself has some problem, but as I
> said earlier
> these are all valid certificates from commercial providers.
> I did not run
> into any problems installing them and they show "All"
> intended purposes
> turned on.  I am stumped!
>
> I am going to try creating a self-signed cert and see if that
> will work.
> Wish me luck...
>
> Joe
>
> > -----Original Message-----
> > From: Microsoft Cryptographic API
> > [mailto:CryptoAPI@DISCUSS.MICROSOFT.COM]On Behalf Of Alex Dron
> > Sent: Friday, September 14, 2001 2:59 PM
> > To: CryptoAPI@DISCUSS.MICROSOFT.COM
> > Subject: Re: session key basics
> >
> >
> > Joe,
> > I don't see function CryptHashData... what exactly you're
> > going to sign.
> > Assuming you have it in your code everything other looks
> > fine. So, maybe
> > problem is the certificate?
> >
> > Alex
>
> ----------------------------------------------------------------
> Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
> contains important info. Save time, search the archives at
> http://discuss.microsoft.com/archives/index.html .
> To unsubscribe, mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM
>

----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic