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

List:       ms-cryptoapi
Subject:    Re: Is it possible to verify sign with hash and certificate only?
From:       "Paul G. Davydov" <pad () MGR ! RU>
Date:       2003-05-23 13:07:04
[Download RAW message or body]

Are you sure?
As I can see CertGetCertificateContextProperty with
CERT_KEY_PROV_INFO_PROP_ID returns CRYPT_KEY_PROV_INFO structure, but
CryptVerifySignature needs HCRYPTKEY (i.e. pointer to key BLOB)...


> -----Original Message-----
> From: Miro Masnoglav [mailto:miro.masnoglav@ADACTA.SI]
> Sent: Friday, May 23, 2003 4:38 PM
> To: CryptoAPI@DISCUSS.MICROSOFT.COM
> Subject: Re: Is it possible to verify sign with hash and certificate
> only?
>
>
> Use CertGetCertificateContextProperty with CERT_KEY_PROV_INFO_PROP_ID
>
> Miro
>
> -----Original Message-----
> From: Microsoft Cryptographic API
> [mailto:CryptoAPI@DISCUSS.MICROSOFT.COM]On
> Behalf Of Paul G. Davydov
> Sent: Friday, May 23, 2003 2:29 PM
> To: CryptoAPI@DISCUSS.MICROSOFT.COM
> Subject: Re: Is it possible to verify sign with hash and
> certificate only?
>
>
> Thanks.
> Is there any function to get this handle from cert?
> I couldn't find any.
>
> > -----Original Message-----
> > From: Miro Masnoglav [mailto:miro.masnoglav@ADACTA.SI]
> > Sent: Friday, May 23, 2003 4:23 PM
> > To: CryptoAPI@DISCUSS.MICROSOFT.COM
> > Subject: Re: Is it possible to verify sign with hash and certificate
> > only?
> >
> >
> > Get the handle to public key from cert then use CryptVerifySignature
> > function.
> >
> > Regards
> > Miro
> >
> > -----Original Message-----
> > From: Microsoft Cryptographic API
> > [mailto:CryptoAPI@DISCUSS.MICROSOFT.COM]On
> > Behalf Of Paul G. Davydov
> > Sent: Friday, May 23, 2003 1:47 PM
> > To: CryptoAPI@DISCUSS.MICROSOFT.COM
> > Subject: Is it possible to verify sign with hash and
> certificate only?
> >
> >
> > Is there any way to verify sign if I've got:
> >
> > 1. The hash (the hash only! Not the message itself);
> > 2. Certificate of the signer.
> >
> > Pavel G. Davydov
> > mailto:pad@mgr.ru
> >
> > ----------------------------------------------------------------
> > 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
>

----------------------------------------------------------------
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

----------------------------------------------------------------
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