mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 02:13:38 +00:00
dssenh: Implement CPSetHashParam.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
554e315bcf
commit
1b1637fc1f
|
@ -18,7 +18,7 @@
|
|||
@ stub CPHashSessionKey
|
||||
@ stdcall CPImportKey(ptr ptr long ptr long ptr)
|
||||
@ stdcall CPReleaseContext(ptr long)
|
||||
@ stub CPSetHashParam
|
||||
@ stdcall CPSetHashParam(ptr ptr long ptr long)
|
||||
@ stub CPSetKeyParam
|
||||
@ stub CPSetProvParam
|
||||
@ stdcall CPSignHash(ptr ptr long wstr long ptr ptr)
|
||||
|
|
|
@ -837,6 +837,27 @@ BOOL WINAPI CPGetHashParam( HCRYPTPROV hprov, HCRYPTHASH hhash, DWORD param, BYT
|
|||
}
|
||||
}
|
||||
|
||||
BOOL WINAPI CPSetHashParam( HCRYPTPROV hprov, HCRYPTHASH hhash, DWORD param, const BYTE *data, DWORD flags )
|
||||
{
|
||||
struct hash *hash = (struct hash *)hhash;
|
||||
|
||||
TRACE( "%p, %p, %08x, %p, %08x\n", (void *)hprov, (void *)hhash, param, data, flags );
|
||||
|
||||
if (hash->magic != MAGIC_HASH) return FALSE;
|
||||
|
||||
switch (param)
|
||||
{
|
||||
case HP_HASHVAL:
|
||||
memcpy( hash->value, data, hash->len );
|
||||
return TRUE;
|
||||
|
||||
default:
|
||||
FIXME( "param %u not supported\n", param );
|
||||
SetLastError( NTE_BAD_TYPE );
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
BOOL WINAPI CPDeriveKey( HCRYPTPROV hprov, ALG_ID algid, HCRYPTHASH hhash, DWORD flags, HCRYPTKEY *ret_key )
|
||||
{
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue