Commit c822cb99 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

dssenh: Implement CPGenRandom.

parent e32b29a3
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
@ stub CPEncrypt @ stub CPEncrypt
@ stdcall CPExportKey(ptr ptr ptr long long ptr ptr) @ stdcall CPExportKey(ptr ptr ptr long long ptr ptr)
@ stdcall CPGenKey(ptr long long ptr) @ stdcall CPGenKey(ptr long long ptr)
@ stub CPGenRandom @ stdcall CPGenRandom(ptr long ptr)
@ stdcall CPGetHashParam(ptr ptr long ptr ptr long) @ stdcall CPGetHashParam(ptr ptr long ptr ptr long)
@ stub CPGetKeyParam @ stub CPGetKeyParam
@ stdcall CPGetProvParam(ptr long ptr ptr long) @ stdcall CPGetProvParam(ptr long ptr ptr long)
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "bcrypt.h" #include "bcrypt.h"
#include "objbase.h" #include "objbase.h"
#include "rpcproxy.h" #include "rpcproxy.h"
#include "ntsecapi.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/heap.h" #include "wine/heap.h"
...@@ -498,6 +499,17 @@ BOOL WINAPI CPDuplicateKey( HCRYPTPROV hprov, HCRYPTKEY hkey, DWORD *reserved, D ...@@ -498,6 +499,17 @@ BOOL WINAPI CPDuplicateKey( HCRYPTPROV hprov, HCRYPTKEY hkey, DWORD *reserved, D
return TRUE; return TRUE;
} }
BOOL WINAPI CPGenRandom( HCRYPTPROV hprov, DWORD len, BYTE *buffer )
{
struct container *container = (struct container *)hprov;
TRACE( "%p, %u, %p\n", (void *)hprov, len, buffer );
if (container->magic != MAGIC_CONTAINER) return FALSE;
return RtlGenRandom( buffer, len );
}
static struct hash *create_hash( ALG_ID algid ) static struct hash *create_hash( ALG_ID algid )
{ {
struct hash *ret; struct hash *ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment