Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Mon, 7 Jul 2008 02:48:03 -0700 (PDT),    group: microsoft.public.platformsdk.security        back       


How to make sure SSPI crypt/sign functions does not change the input data buffer?   
HI All

I'm playing with EncryptMessage/DecryptMessage/MakeSignature/
VerifySignature functions on SSPI/Kerberos. There seems quite a lot of
combination to arrange the SecBufferDest argument. Is there a way to
make sure that the input data (includes data and signature) are never
changed in-place?

Thanks
Speedo
date: Mon, 7 Jul 2008 02:48:03 -0700 (PDT)   author:   Speedo

Re: How to make sure SSPI crypt/sign functions does not change the input data buffer?   
On Jul 7, 2:48 am, Speedo  wrote:
> HI All
>
> I'm playing with EncryptMessage/DecryptMessage/MakeSignature/
> VerifySignature functions on SSPI/Kerberos. There seems quite a lot of
> combination to arrange the SecBufferDest argument. Is there a way to
> make sure that the input data (includes data and signature) are never
> changed in-place?
>
> Thanks
> Speedo

Nope, I don't think so. If it's important to preserve the encrypted
bytes just make a copy and either perform the decrypt on the copied
bytes or the original but save the copy.

HTH,
Dave
date: Thu, 10 Jul 2008 06:18:38 -0700 (PDT)   author:   DaveMo

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us