Commit 52aca431 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

bcrypt: Add BCryptGenRandom stub.

parent 97505a74
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
@ stub BCryptFinalizeKeyPair @ stub BCryptFinalizeKeyPair
@ stub BCryptFinishHash @ stub BCryptFinishHash
@ stub BCryptFreeBuffer @ stub BCryptFreeBuffer
@ stub BCryptGenRandom @ stdcall BCryptGenRandom(ptr ptr long long)
@ stub BCryptGenerateKeyPair @ stub BCryptGenerateKeyPair
@ stub BCryptGenerateSymmetricKey @ stub BCryptGenerateSymmetricKey
@ stub BCryptGetFipsAlgorithmMode @ stub BCryptGetFipsAlgorithmMode
......
...@@ -18,11 +18,15 @@ ...@@ -18,11 +18,15 @@
*/ */
#include "config.h" #include "config.h"
#include "wine/port.h"
#include "wine/debug.h"
#include <stdarg.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "bcrypt.h" #include "bcrypt.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(bcrypt); WINE_DEFAULT_DEBUG_CHANNEL(bcrypt);
...@@ -48,5 +52,12 @@ NTSTATUS WINAPI BCryptEnumAlgorithms(ULONG dwAlgOperations, ULONG *pAlgCount, ...@@ -48,5 +52,12 @@ NTSTATUS WINAPI BCryptEnumAlgorithms(ULONG dwAlgOperations, ULONG *pAlgCount,
*ppAlgList=NULL; *ppAlgList=NULL;
*pAlgCount=0; *pAlgCount=0;
return ERROR_CALL_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
}
NTSTATUS WINAPI BCryptGenRandom(BCRYPT_ALG_HANDLE algorithm, UCHAR *buffer, ULONG count, ULONG flags)
{
FIXME("%p, %p, %u, %08x - stub\n", algorithm, buffer, count, flags);
return STATUS_NOT_IMPLEMENTED;
} }
...@@ -47,4 +47,9 @@ typedef struct _BCRYPT_ALGORITHM_IDENTIFIER ...@@ -47,4 +47,9 @@ typedef struct _BCRYPT_ALGORITHM_IDENTIFIER
ULONG dwFlags; ULONG dwFlags;
} BCRYPT_ALGORITHM_IDENTIFIER; } BCRYPT_ALGORITHM_IDENTIFIER;
typedef PVOID BCRYPT_ALG_HANDLE;
#define BCRYPT_RNG_USE_ENTROPY_IN_BUFFER 0x00000001
#define BCRYPT_USE_SYSTEM_PREFERRED_RNG 0x00000002
#endif /* __WINE_BCRYPT_H */ #endif /* __WINE_BCRYPT_H */
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